version 1.18, 2008/12/09 00:27:17 |
version 1.20, 2008/12/10 14:42:46 |
Line 50 static int begin_bufs(const struct md_args *, |
|
Line 50 static int begin_bufs(const struct md_args *, |
|
static int leave_bufs(const struct md_buf *, |
static int leave_bufs(const struct md_buf *, |
const struct md_buf *, int); |
const struct md_buf *, int); |
|
|
|
#ifdef __linux__ |
|
extern int getsubopt(char **, char *const *, char **); |
|
#endif |
|
|
int |
int |
main(int argc, char *argv[]) |
main(int argc, char *argv[]) |
{ |
{ |
Line 67 main(int argc, char *argv[]) |
|
Line 71 main(int argc, char *argv[]) |
|
|
|
(void)memset(&args, 0, sizeof(struct md_args)); |
(void)memset(&args, 0, sizeof(struct md_args)); |
|
|
args.type = MD_XML; |
args.type = MD_NOOP; |
|
|
while (-1 != (c = getopt(argc, argv, "c:ef:o:vW:"))) |
while (-1 != (c = getopt(argc, argv, "c:ef:o:vW:"))) |
switch (c) { |
switch (c) { |
Line 86 main(int argc, char *argv[]) |
|
Line 90 main(int argc, char *argv[]) |
|
args.type = MD_HTML; |
args.type = MD_HTML; |
else if (0 == strcmp(optarg, "xml")) |
else if (0 == strcmp(optarg, "xml")) |
args.type = MD_XML; |
args.type = MD_XML; |
|
else if (0 == strcmp(optarg, "noop")) |
|
args.type = MD_NOOP; |
else |
else |
errx(1, "invalid filter type"); |
errx(1, "invalid filter type"); |
break; |
break; |
|
|
{ |
{ |
extern char *__progname; |
extern char *__progname; |
|
|
(void)printf("usage: %s [-v] [-Wwarn...] [-f filter] " |
(void)fprintf(stderr, "usage: %s [-v] [-Wwarn...] " |
"[-o outfile] [infile]\n", __progname); |
"[-f filter] [-o outfile] [infile]\n", |
|
__progname); |
} |
} |
|
|