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

Diff for /src/usr.bin/diff/diff.c between version 1.16 and 1.17

version 1.16, 2003/06/26 21:03:08 version 1.17, 2003/06/26 22:04:45
Line 62 
Line 62 
 int     rflag;                  /* recursively trace directories */  int     rflag;                  /* recursively trace directories */
 int     sflag;                  /* announce files which are same */  int     sflag;                  /* announce files which are same */
 char    *start;                 /* do file only if name >= this */  char    *start;                 /* do file only if name >= this */
 /* Variables for -I D_IFDEF option. */  /* Variables for -D D_IFDEF option. */
 int     wantelses;              /* -E */  char    *ifdefname;             /* What we will print for #ifdef/#endif */
 char    *ifdef1;                /* String for -1 */  
 char    *ifdef2;                /* String for -2 */  
 char    *endifname;             /* What we will print on next #endif */  
 int     inifdef;  int     inifdef;
 /* Variables for -c and -u context option. */  /* Variables for -c and -u context option. */
 int     context;                /* lines of context to be printed */  int     context;                /* lines of context to be printed */
Line 97 
Line 94 
 {  {
         int ch;          int ch;
   
         ifdef1 = "FILE1";  
         ifdef2 = "FILE2";  
         status = 2;          status = 2;
         diffargv = argv;          diffargv = argv;
   
Line 121 
Line 116 
                         context = 3;                          context = 3;
                         break;                          break;
                 case 'D':                  case 'D':
                         /* -Dfoo = -E -1 -2foo */  
                         opt = D_IFDEF;                          opt = D_IFDEF;
                         ifdef1 = "";                          ifdefname = optarg;
                         ifdef2 = optarg;  
                         wantelses++;  
                         break;                          break;
                 case 'e':                  case 'e':
                         opt = D_EDIT;                          opt = D_EDIT;

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17