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

Diff for /src/usr.bin/diff3/diff3prog.c between version 1.11 and 1.12

version 1.11, 2009/10/27 23:59:37 version 1.12, 2012/03/04 04:05:15
Line 124 
Line 124 
 int duplicate(struct range *, struct range *);  int duplicate(struct range *, struct range *);
 int edit(struct diff *, int, int);  int edit(struct diff *, int, int);
 char *getchange(FILE *);  char *getchange(FILE *);
 char *getline(FILE *, size_t *);  char *get_line(FILE *, size_t *);
 int number(char **);  int number(char **);
 int readin(char *, struct diff **);  int readin(char *, struct diff **);
 int skip(int, int, char *);  int skip(int, int, char *);
Line 253 
Line 253 
 {  {
         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 261 
Line 261 
 }  }
   
 char *  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 456 
Line 456 
         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)
                         trouble();                          trouble();
                 if (pr != NULL)                  if (pr != NULL)
                         printf("%s%s", pr, line);                          printf("%s%s", pr, line);

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12