diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-23 11:07:44 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-23 11:07:44 +0300 |
commit | bd7fae53da7baa676322e974f74dd38be9233ce6 (patch) | |
tree | 426cfb2b9817a968b3ff86a304fd5690876359b8 /src | |
parent | 43356706bc0b8983e1211fdd1315fd713f451de5 (diff) | |
download | cfpeek-bd7fae53da7baa676322e974f74dd38be9233ce6.tar.gz cfpeek-bd7fae53da7baa676322e974f74dd38be9233ce6.tar.bz2 |
Start writing docs.
* Makefile.am (SUBDIRS): Add doc.
* configure.ac (AC_CONFIG_FILES): Add doc/Makefile.
* doc/Makefile.am: New file.
* doc/cfpeek.1: New file.
* grecs: Update.
* src/cfpeek.c (flags): Don't initialize.
* src/cmdline.opt (parse_options): Initialize flags.
Diffstat (limited to 'src')
-rw-r--r-- | src/cfpeek.c | 2 | ||||
-rw-r--r-- | src/cmdline.opt | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/cfpeek.c b/src/cfpeek.c index 7b8bfee..148ce79 100644 --- a/src/cfpeek.c +++ b/src/cfpeek.c @@ -18,7 +18,7 @@ #include "cfpeek.h" int file_index; -int flags = GRECS_NODE_FLAG_PATH|GRECS_NODE_FLAG_VALUE; +int flags; int quiet_option; int reduce_option; int sort_option; diff --git a/src/cmdline.opt b/src/cmdline.opt index df897e0..d4e329b 100644 --- a/src/cmdline.opt +++ b/src/cmdline.opt @@ -341,6 +341,8 @@ parse_options(int argc, char *argv[]) program_name = argv[0]; print_help_hook = flags_help; GETOPT(argc, argv, file_index, exit(EX_USAGE)) + if (!flags) + flags = GRECS_NODE_FLAG_PATH|GRECS_NODE_FLAG_VALUE; if (preproc_settings == PREPROC_DEFAULT) grecs_preprocessor = DEFAULT_PREPROCESSOR; if (pp_cmd_acc && grecs_preprocessor) { |