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

Diff for /src/usr.bin/rcs/diff3.c between version 1.32 and 1.33

version 1.32, 2011/04/20 19:34:16 version 1.33, 2012/03/04 04:05:15
Line 131 
Line 131 
 static int duplicate(struct range *, struct range *);  static int duplicate(struct range *, struct range *);
 static int edit(struct diff *, int, int);  static int edit(struct diff *, int, int);
 static char *getchange(FILE *);  static char *getchange(FILE *);
 static char *getline(FILE *, size_t *);  static char *get_line(FILE *, size_t *);
 static int number(char **);  static int number(char **);
 static ssize_t readin(char *, struct diff **);  static ssize_t readin(char *, struct diff **);
 static int skip(int, int, char *);  static int skip(int, int, char *);
Line 612 
Line 612 
 {  {
         char *line;          char *line;
   
         while ((line = getline(b, NULL))) {          while ((line = get_line(b, NULL))) {
                 if (isdigit((unsigned char)line[0]))                  if (isdigit((unsigned char)line[0]))
                         return (line);                          return (line);
         }          }
Line 621 
Line 621 
 }  }
   
 static char *  static char *
 getline(FILE *b, size_t *n)  get_line(FILE *b, size_t *n)
 {  {
         char *cp;          char *cp;
         size_t len;          size_t len;
Line 823 
Line 823 
         char *line;          char *line;
   
         for (n = 0; cline[i] < from - 1; n += j) {          for (n = 0; cline[i] < from - 1; n += j) {
                 if ((line = getline(fp[i], &j)) == NULL)                  if ((line = get_line(fp[i], &j)) == NULL)
                         return (-1);                          return (-1);
                 if (pr != NULL)                  if (pr != NULL)
                         diff_output("%s%s", pr, line);                          diff_output("%s%s", pr, line);

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33