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

Diff for /src/usr.bin/diff/diffreg.c between version 1.69 and 1.70

version 1.69, 2007/06/09 05:16:21 version 1.70, 2007/09/11 15:47:17
Line 1300 
Line 1300 
         unsigned char buf[FUNCTION_CONTEXT_SIZE];          unsigned char buf[FUNCTION_CONTEXT_SIZE];
         size_t nc;          size_t nc;
         int last = lastline;          int last = lastline;
         char *p;  
         char *state = NULL;          char *state = NULL;
   
         lastline = pos;          lastline = pos;
Line 1312 
Line 1311 
                 nc = fread(buf, 1, nc, file);                  nc = fread(buf, 1, nc, file);
                 if (nc > 0) {                  if (nc > 0) {
                         buf[nc] = '\0';                          buf[nc] = '\0';
                         p = strchr(buf, '\n');                          buf[strcspn(buf, "\n")] = '\0';
                         if (p != NULL)  
                                 *p = '\0';  
                         if (isalpha(buf[0]) || buf[0] == '_' || buf[0] == '$') {                          if (isalpha(buf[0]) || buf[0] == '_' || buf[0] == '$') {
                                 if (begins_with(buf, "private:")) {                                  if (begins_with(buf, "private:")) {
                                         if (!state)                                          if (!state)

Legend:
Removed from v.1.69  
changed lines
  Added in v.1.70