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

Diff for /src/usr.bin/grep/grep.c between version 1.65 and 1.66

version 1.65, 2020/07/23 20:19:27 version 1.66, 2022/06/26 10:57:36
Line 80 
Line 80 
 int      wflag;         /* -w: pattern must start and end on word boundaries */  int      wflag;         /* -w: pattern must start and end on word boundaries */
 int      xflag;         /* -x: pattern must match entire line */  int      xflag;         /* -x: pattern must match entire line */
 int      lbflag;        /* --line-buffered */  int      lbflag;        /* --line-buffered */
   int      nullflag;      /* --null */
 const char *labelname;  /* --label=name */  const char *labelname;  /* --label=name */
   
 int binbehave = BIN_FILE_BIN;  int binbehave = BIN_FILE_BIN;
Line 89 
Line 90 
         HELP_OPT,          HELP_OPT,
         MMAP_OPT,          MMAP_OPT,
         LINEBUF_OPT,          LINEBUF_OPT,
           NULL_OPT,
         LABEL_OPT,          LABEL_OPT,
 };  };
   
Line 134 
Line 136 
         {"mmap",                no_argument,            NULL, MMAP_OPT},          {"mmap",                no_argument,            NULL, MMAP_OPT},
         {"label",               required_argument,      NULL, LABEL_OPT},          {"label",               required_argument,      NULL, LABEL_OPT},
         {"line-buffered",       no_argument,            NULL, LINEBUF_OPT},          {"line-buffered",       no_argument,            NULL, LINEBUF_OPT},
           {"null",                no_argument,            NULL, NULL_OPT},
         {"after-context",       required_argument,      NULL, 'A'},          {"after-context",       required_argument,      NULL, 'A'},
         {"before-context",      required_argument,      NULL, 'B'},          {"before-context",      required_argument,      NULL, 'B'},
         {"context",             optional_argument,      NULL, 'C'},          {"context",             optional_argument,      NULL, 'C'},
Line 435 
Line 438 
                         break;                          break;
                 case LINEBUF_OPT:                  case LINEBUF_OPT:
                         lbflag = 1;                          lbflag = 1;
                           break;
                   case NULL_OPT:
                           nullflag = 1;
                         break;                          break;
                 case HELP_OPT:                  case HELP_OPT:
                 default:                  default:

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66