version 1.184, 2014/08/22 04:52:55 |
version 1.185, 2014/08/22 18:07:15 |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
|
|
#include <assert.h> |
#include <assert.h> |
|
#include <ctype.h> |
#include <errno.h> |
#include <errno.h> |
#include <stdio.h> |
#include <stdio.h> |
#include <stdint.h> |
#include <stdint.h> |
Line 227 main(int argc, char *argv[]) |
|
Line 228 main(int argc, char *argv[]) |
|
if (show_usage) |
if (show_usage) |
usage(search.argmode); |
usage(search.argmode); |
|
|
|
/* Postprocess options. */ |
|
|
if (outmode == OUTMODE_DEF) { |
if (outmode == OUTMODE_DEF) { |
switch (search.argmode) { |
switch (search.argmode) { |
case ARG_FILE: |
case ARG_FILE: |
Line 242 main(int argc, char *argv[]) |
|
Line 245 main(int argc, char *argv[]) |
|
} |
} |
} |
} |
|
|
|
/* Parse arguments. */ |
|
|
argc -= optind; |
argc -= optind; |
argv += optind; |
argv += optind; |
#if HAVE_SQLITE3 |
#if HAVE_SQLITE3 |
auxargv = NULL; |
auxargv = NULL; |
#endif |
#endif |
|
|
|
/* Quirk for a man(1) section argument without -s. */ |
|
|
|
if (search.argmode == ARG_NAME && |
|
argv[0] != NULL && |
|
isdigit((unsigned char)argv[0][0]) && |
|
(argv[0][1] == '\0' || !strcmp(argv[0], "3p"))) { |
|
search.sec = argv[0]; |
|
argv++; |
|
argc--; |
|
} |
|
|
rc = MANDOCLEVEL_OK; |
rc = MANDOCLEVEL_OK; |
|
|