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

Diff for /src/usr.bin/indent/lexi.c between version 1.7 and 1.8

version 1.7, 2001/01/08 07:14:42 version 1.8, 2001/06/25 04:58:31
Line 590 
Line 590 
         maxspecials += maxspecials >> 2;          maxspecials += maxspecials >> 2;
         specials = (struct templ *)malloc(maxspecials * sizeof specials[0]);          specials = (struct templ *)malloc(maxspecials * sizeof specials[0]);
         if (specials == NULL)          if (specials == NULL)
             errx(1, "out of memory");              err(1, NULL);
         memmove(specials, specialsinit, sizeof specialsinit);          memmove(specials, specialsinit, sizeof specialsinit);
     } else if (nspecials >= maxspecials) {      } else if (nspecials >= maxspecials) {
         maxspecials += maxspecials >> 2;          maxspecials += maxspecials >> 2;
         specials = realloc(specials, maxspecials * sizeof specials[0]);          specials = realloc(specials, maxspecials * sizeof specials[0]);
         if (specials == NULL)          if (specials == NULL)
             errx(1, "out of memory");              err(1, NULL);
     }      }
   
     p = &specials[i];      p = &specials[i];

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8