ref: 3562d014e6579746f1876a6952c6567f9294c5a4
parent: 69473e4efc4162cc837450e86b2621594e12af6e
author: Just van Rossum <[email protected]>
date: Tue Mar 28 14:41:56 EST 2000
minor improvements, mainly to the PFB testing code...
--- a/src/macfond/fonddrvr.c
+++ b/src/macfond/fonddrvr.c
@@ -291,15 +291,15 @@
if ( post_data == NULL ) break;
chunk_size = GetHandleSize( post_data ) - 2;
- *p++ = 128;
+ *p++ = 0x80;
code = (*post_data)[0];
if ( code == 5 )
- *p++ = 3;
+ *p++ = 0x03; /* the end */
else if ( code == 2 )
- *p++ = 2;
+ *p++ = 0x02; /* binary segment */
else
- *p++ = 1;
+ *p++ = 0x01; /* ASCII segment */
if ( code != 5 )
{
*p++ = chunk_size & 0xFF;
@@ -430,8 +430,11 @@
#if 0
{
FILE* f;
+ char * path;
- f = fopen("Test.PFB", "wb");
+ path = p2c_str( lwfn_file_name );
+ strcat( path, ".PFB" );
+ f = fopen(path, "wb");
if ( f )
{
fwrite( type1_data, 1, size, f );