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

version 1.3, 2007/10/09 21:41:41 version 1.4, 2008/12/04 12:17:13
Line 76  static int isCloseOutFile = 0; /* " */ Line 76  static int isCloseOutFile = 0; /* " */
 #endif /* " */  #endif /* " */
 int gifSize = 0; /* " #bytes comprising gif */  int gifSize = 0; /* " #bytes comprising gif */
 int maxgifSize = MAXGIFSZ; /* " 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 196  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.3  
changed lines
  Added in v.1.4


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