diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-08-16 17:29:33 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-08-16 17:29:33 +0000 |
commit | 553df254eec41189593602ce2e6a7f36117e8733 (patch) | |
tree | 194e3b6d38ee489443bb04aafd577876d5044028 /src/main.c | |
parent | 775fd9184c7788767d5be18103b8f57f1c8c1633 (diff) | |
download | cflow-553df254eec41189593602ce2e6a7f36117e8733.tar.gz cflow-553df254eec41189593602ce2e6a7f36117e8733.tar.bz2 |
(preprocess_option): New variable
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -176,6 +176,8 @@ char *level_indent[] = { NULL, NULL }; char *level_end[] = { "", "" }; char *level_begin = ""; +int preprocess_option = 0; /* Do they want to preprocess sources? */ + char *start_name = "main"; /* Name of start symbol */ Consptr arglist; /* List of command line arguments */ @@ -457,6 +459,7 @@ add_preproc_option(int key, const char *arg) char *opt = xmalloc(3 + strlen(arg)); sprintf(opt, "-%c%s", key, arg); add_name(opt); + preprocess_option = 1; } static error_t @@ -553,7 +556,7 @@ parse_opt (int key, char *arg, struct argp_state *state) set_preprocessor(arg ? arg : CFLOW_PREPROC); break; case OPT_NO_PREPROCESS: - set_preprocessor(NULL); + preprocess_option = 0; break; case ARGP_KEY_ARG: add_name(arg); |