[BACK]Return to misc.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / m4

Diff for /src/usr.bin/m4/misc.c between version 1.38 and 1.39

version 1.38, 2008/08/16 12:21:46 version 1.39, 2008/08/16 12:23:50
Line 54 
Line 54 
 static size_t strsize = STRSPMAX;  static size_t strsize = STRSPMAX;
 static size_t bufsize = BUFSIZE;  static size_t bufsize = BUFSIZE;
   
 unsigned char *buf;                     /* push-back buffer            */  char *buf;                      /* push-back buffer            */
 unsigned char *bufbase;                 /* the base for current ilevel */  char *bufbase;                  /* the base for current ilevel */
 unsigned char *bbase[MAXINP];           /* the base for each ilevel    */  char *bbase[MAXINP];            /* the base for each ilevel    */
 unsigned char *bp;                      /* first available character   */  char *bp;                       /* first available character   */
 unsigned char *endpbb;                  /* end of push-back buffer     */  char *endpbb;                   /* end of push-back buffer     */
   
   
 /*  /*
Line 163 
Line 163 
         strspace = xalloc(strsize+1, NULL);          strspace = xalloc(strsize+1, NULL);
         ep = strspace;          ep = strspace;
         endest = strspace+strsize;          endest = strspace+strsize;
         buf = (unsigned char *)xalloc(bufsize, NULL);          buf = (char *)xalloc(bufsize, NULL);
         bufbase = buf;          bufbase = buf;
         bp = buf;          bp = buf;
         endpbb = buf + bufsize;          endpbb = buf + bufsize;
Line 195 
Line 195 
 void  void
 enlarge_bufspace()  enlarge_bufspace()
 {  {
         unsigned char *newbuf;          char *newbuf;
         int i;          int i;
   
         bufsize += bufsize/2;          bufsize += bufsize/2;
Line 418 
Line 418 
 void  void
 dump_buffer(FILE *f, size_t m)  dump_buffer(FILE *f, size_t m)
 {  {
         unsigned char *s;          char *s;
   
         for (s = bp; s-buf > m;)          for (s = bp; s-buf > m;)
                 fputc(*--s, f);                  fputc(*--s, f);

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39