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

Diff for /src/usr.bin/indent/indent.c between version 1.26 and 1.27

version 1.26, 2015/01/16 06:40:08 version 1.27, 2015/08/20 22:32:41
Line 89 
Line 89 
     ps.last_nl = true;          /* this is true if the last thing scanned was      ps.last_nl = true;          /* this is true if the last thing scanned was
                                  * a newline */                                   * a newline */
     ps.last_token = semicolon;      ps.last_token = semicolon;
     combuf = (char *) malloc(bufsize);      combuf = malloc(bufsize);
     labbuf = (char *) malloc(bufsize);      labbuf = malloc(bufsize);
     codebuf = (char *) malloc(bufsize);      codebuf = malloc(bufsize);
     tokenbuf = (char *) malloc(bufsize);      tokenbuf = malloc(bufsize);
     if (combuf == NULL || labbuf == NULL || codebuf == NULL ||      if (combuf == NULL || labbuf == NULL || codebuf == NULL ||
         tokenbuf == NULL)          tokenbuf == NULL)
             err(1, NULL);              err(1, NULL);
Line 109 
Line 109 
     s_com = e_com = combuf + 1;      s_com = e_com = combuf + 1;
     s_token = e_token = tokenbuf + 1;      s_token = e_token = tokenbuf + 1;
   
     in_buffer = (char *) malloc(10);      in_buffer = malloc(10);
     if (in_buffer == NULL)      if (in_buffer == NULL)
             err(1, NULL);              err(1, NULL);
     in_buffer_limit = in_buffer + 8;      in_buffer_limit = in_buffer + 8;

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27