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; |
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[] = |
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 |
|
|
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) { |