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

Diff for /src/usr.bin/rcs/diff.c between version 1.24 and 1.25

version 1.24, 2007/07/03 00:56:23 version 1.25, 2007/09/11 15:47:17
Line 1155 
Line 1155 
         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 1167 
Line 1166 
                 nc = fread(buf, 1, nc, fp);                  nc = fread(buf, 1, nc, fp);
                 if (nc > 0) {                  if (nc > 0) {
                         buf[nc] = '\0';                          buf[nc] = '\0';
                         p = strchr((const char *)buf, '\n');  
                         if (p != NULL)                          buf[strcspn(buf, "\n")] = '\0';
                                 *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.24  
changed lines
  Added in v.1.25