/[grep]/grep/src/grep.c
ViewVC logotype

Diff of /grep/src/grep.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.106 by charles_levert, Tue Jun 21 14:58:50 2005 UTC revision 1.107 by charles_levert, Tue Jun 21 15:22:58 2005 UTC
# Line 85  static int pseudo_markup; Line 85  static int pseudo_markup;
85  /* If nonzero, show only the part of a line matching the expression. */  /* If nonzero, show only the part of a line matching the expression. */
86  static int only_matching;  static int only_matching;
87    
88    /* If nonzero, make sure first content char in a line is on a tab stop. */
89    static int align_tabs;
90    
91  /* The context and logic for choosing default --color screen attributes  /* The context and logic for choosing default --color screen attributes
92     (foreground and background colors, etc.) are the following.     (foreground and background colors, etc.) are the following.
93        -- There are eight basic colors available, each with its own        -- There are eight basic colors available, each with its own
# Line 270  static struct exclude *excluded_patterns Line 273  static struct exclude *excluded_patterns
273  static struct exclude *included_patterns;  static struct exclude *included_patterns;
274  /* Short options.  */  /* Short options.  */
275  static char const short_options[] =  static char const short_options[] =
276  "0123456789A:B:C:D:EFGHIPUVX:abcd:e:f:hiKLlm:noqRrsuvwxyZz";  "0123456789A:B:C:D:EFGHIPTUVX:abcd:e:f:hiKLlm:noqRrsuvwxyZz";
277    
278  /* Non-boolean long options that have no corresponding short equivalents.  */  /* Non-boolean long options that have no corresponding short equivalents.  */
279  enum  enum
# Line 309  static struct option const long_options[ Line 312  static struct option const long_options[
312    {"help", no_argument, &show_help, 1},    {"help", no_argument, &show_help, 1},
313    {"include", required_argument, NULL, INCLUDE_OPTION},    {"include", required_argument, NULL, INCLUDE_OPTION},
314    {"ignore-case", no_argument, NULL, 'i'},    {"ignore-case", no_argument, NULL, 'i'},
315      {"initial-tab", no_argument, NULL, 'T'},
316    {"label", required_argument, NULL, LABEL_OPTION},    {"label", required_argument, NULL, LABEL_OPTION},
317    {"line-buffered", no_argument, NULL, LINE_BUFFERED_OPTION},    {"line-buffered", no_argument, NULL, LINE_BUFFERED_OPTION},
318    {"line-number", no_argument, NULL, 'n'},    {"line-number", no_argument, NULL, 'n'},
# Line 1376  Output control:\n\ Line 1380  Output control:\n\
1380    -L, --files-without-match print only names of FILEs containing no match\n\    -L, --files-without-match print only names of FILEs containing no match\n\
1381    -l, --files-with-matches  print only names of FILEs containing matches\n\    -l, --files-with-matches  print only names of FILEs containing matches\n\
1382    -c, --count               print only a count of matching lines per FILE\n\    -c, --count               print only a count of matching lines per FILE\n\
1383      -T, --initial-tab         make tabs line up (if needed)\n\
1384    -Z, --null                print 0 byte after FILE name\n"));    -Z, --null                print 0 byte after FILE name\n"));
1385        printf (_("\        printf (_("\
1386  \n\  \n\
# Line 1758  main (int argc, char **argv) Line 1763  main (int argc, char **argv)
1763          binary_files = WITHOUT_MATCH_BINARY_FILES;          binary_files = WITHOUT_MATCH_BINARY_FILES;
1764          break;          break;
1765    
1766          case 'T':
1767            align_tabs = 1;
1768            break;
1769    
1770        case 'U':        case 'U':
1771  #if defined(HAVE_DOS_FILE_CONTENTS)  #if defined(HAVE_DOS_FILE_CONTENTS)
1772          dos_use_file_type = DOS_BINARY;          dos_use_file_type = DOS_BINARY;

Legend:
Removed from v.1.106  
changed lines
  Added in v.1.107

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26