/[man-db]/man-db/src/lexgrog.l
ViewVC logotype

Diff of /man-db/src/lexgrog.l

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

revision 1.30 by cjwatson, Sun Dec 29 19:54:49 2002 UTC revision 1.31 by cjwatson, Thu May 1 15:54:03 2003 UTC
# Line 73  static void add_separator_to_whatis (voi Line 73  static void add_separator_to_whatis (voi
73  static void newline_found (void);  static void newline_found (void);
74    
75  static char newname[MAX_NAME];  static char newname[MAX_NAME];
76  static char *p_name, *fname;  static char *p_name;
77    static const char *fname;
78  static char filters[MAX_FILTERS];  static char filters[MAX_FILTERS];
79    
80  static int fill_mode;  static int fill_mode;
# Line 87  static int fill_mode; Line 88  static int fill_mode;
88  #  include "lib/getopt.h"  #  include "lib/getopt.h"
89  #endif /* HAVE_GETOPT_H */  #endif /* HAVE_GETOPT_H */
90    
91  char *program_name = "lexgrog";  char *program_name;
92  int debug = 0;  int debug = 0;
93    
94  static const struct option long_options[] =  static const struct option long_options[] =
# Line 367  static void newline_found (void) Line 368  static void newline_found (void)
368          }          }
369  }  }
370    
371  int find_name (const char *file, char *filename, lexgrog *p_lg)  int find_name (const char *file, const char *filename, lexgrog *p_lg)
372  {  {
373          int ret;          int ret;
374    
# Line 468  int main (int argc, char **argv) Line 469  int main (int argc, char **argv)
469          int type = 0;          int type = 0;
470          int parse_man = 0, parse_cat = 0, show_whatis = 0, show_filters = 0;          int parse_man = 0, parse_cat = 0, show_whatis = 0, show_filters = 0;
471          int some_failed = 0;          int some_failed = 0;
472    
473            program_name = xstrdup (basename (argv[0]));
474    
475          while ((c = getopt_long (argc, argv, args,          while ((c = getopt_long (argc, argv, args,
476                                   long_options, &option_index)) != -1) {                                   long_options, &option_index)) != -1) {
477                  switch (c) {                  switch (c) {

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

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