Diff for /loncom/cgi/mimeTeX/gifsave.c between versions 1.2 and 1.4

version 1.2, 2006/03/24 23:08:33 version 1.4, 2008/12/04 12:17:13
Line 71  typedef unsigned char Byte;     /* exact Line 71  typedef unsigned char Byte;     /* exact
 static FILE *OutFile = NULL;    /* file to write to */  static FILE *OutFile = NULL;    /* file to write to */
 static Byte *OutBuffer = NULL; /* (added by j.forkosh) */  static Byte *OutBuffer = NULL; /* (added by j.forkosh) */
 static int isCloseOutFile = 0; /* " */  static int isCloseOutFile = 0; /* " */
   #if !defined(MAXGIFSZ) /* " */
     #define MAXGIFSZ 131072 /* " max #bytes comprising gif image */
   #endif /* " */
 int gifSize = 0; /* " #bytes comprising gif */  int gifSize = 0; /* " #bytes comprising gif */
 int maxgifSize = 64000; /* " max #bytes written to OutBuffer */  int maxgifSize = MAXGIFSZ; /* " max #bytes written to OutBuffer */
   extern int  iscachecontenttype; /* " true to cache mime content-type */
   extern char contenttype[2048]; /* " content-type:, etc. buffer */
   
 /* used when writing to a file bitwise */  /* used when writing to a file bitwise */
 static Byte Buffer[256];        /* there must be one more than `needed' */  static Byte Buffer[256];        /* there must be one more than `needed' */
Line 193  Create(const char *filename) Line 198  Create(const char *filename)
       if ( *filename != '\000' ) /* " */        if ( *filename != '\000' ) /* " */
  { if ((OutFile = fopen(filename, "wb")) == NULL)   { if ((OutFile = fopen(filename, "wb")) == NULL)
     return GIF_ERRCREATE;      return GIF_ERRCREATE;
   isCloseOutFile = 1; } /* (added by j.forkosh) */    isCloseOutFile = 1; /* (added by j.forkosh) */
             if ( iscachecontenttype ) /* " cache headers in file */
               if ( *contenttype != '\000' ) /* " have headers in buffer*/
                 fputs(contenttype,OutFile); } /* " write buffered headers*/
       else /* " */        else /* " */
  OutBuffer = (Byte *)filename; /* " */   OutBuffer = (Byte *)filename; /* " */
     return GIF_OK;      return GIF_OK;

Removed from v.1.2  
changed lines
  Added in v.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>