diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-10-04 14:20:25 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-10-04 14:20:25 +0000 |
commit | 87b1a63e1a15d599cec38b58216cfd242f8d11b4 (patch) | |
tree | b830de31092a0d70bdcfea840efcadcaf9a57d99 /src/main.c | |
parent | 867df98a5fe8751489df450e9c3272d656ca60bf (diff) | |
download | cflow-87b1a63e1a15d599cec38b58216cfd242f8d11b4.tar.gz cflow-87b1a63e1a15d599cec38b58216cfd242f8d11b4.tar.bz2 |
(omit_arguments_option,omit_symbol_name): New options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 28 |
1 files changed, 27 insertions, 1 deletions
@@ -43,7 +43,11 @@ enum option_code { | |||
43 | OPT_NO_VERBOSE, | 43 | OPT_NO_VERBOSE, |
44 | OPT_NO_NUMBER, | 44 | OPT_NO_NUMBER, |
45 | OPT_NO_PRINT_LEVEL, | 45 | OPT_NO_PRINT_LEVEL, |
46 | OPT_NO_REVERSE | 46 | OPT_NO_REVERSE, |
47 | OPT_OMIT_ARGUMENTS, | ||
48 | OPT_NO_OMIT_ARGUMENTS, | ||
49 | OPT_OMIT_SYMBOL_NAME, | ||
50 | OPT_NO_OMIT_SYMBOL_NAME | ||
47 | }; | 51 | }; |
48 | 52 | ||
49 | static struct argp_option options[] = { | 53 | static struct argp_option options[] = { |
@@ -135,6 +139,14 @@ static struct argp_option options[] = { | |||
135 | N_("* Additionally format output for use with GNU Emacs"), GROUP_ID+1 }, | 139 | N_("* Additionally format output for use with GNU Emacs"), GROUP_ID+1 }, |
136 | { "no-emacs", OPT_NO_EMACS, NULL, OPTION_HIDDEN, | 140 | { "no-emacs", OPT_NO_EMACS, NULL, OPTION_HIDDEN, |
137 | "", GROUP_ID+1 }, | 141 | "", GROUP_ID+1 }, |
142 | { "omit-arguments", OPT_OMIT_ARGUMENTS, NULL, 0, | ||
143 | N_("* Do not print function arguments in declaration strings"), GROUP_ID+1 }, | ||
144 | { "no-ignore-arguments", OPT_NO_OMIT_ARGUMENTS, NULL, OPTION_HIDDEN, | ||
145 | "", GROUP_ID+1 }, | ||
146 | { "omit-symbol-name", OPT_OMIT_SYMBOL_NAME, NULL, 0, | ||
147 | N_("* Do not print symbol names in declaration strings"), GROUP_ID+1 }, | ||
148 | { "no-omit-symbol-name", OPT_NO_OMIT_SYMBOL_NAME, NULL, OPTION_HIDDEN, | ||
149 | "", GROUP_ID+1 }, | ||
138 | #undef GROUP_ID | 150 | #undef GROUP_ID |
139 | #define GROUP_ID 30 | 151 | #define GROUP_ID 30 |
140 | { NULL, 0, NULL, 0, | 152 | { NULL, 0, NULL, 0, |
@@ -194,6 +206,8 @@ int brief_listing; /* Produce short listing */ | |||
194 | int reverse_tree; /* Generate reverse tree */ | 206 | int reverse_tree; /* Generate reverse tree */ |
195 | int max_depth; /* The depth at which the flowgraph is cut off */ | 207 | int max_depth; /* The depth at which the flowgraph is cut off */ |
196 | int emacs_option; /* Format and check for use with Emacs cflow-mode */ | 208 | int emacs_option; /* Format and check for use with Emacs cflow-mode */ |
209 | int omit_arguments_option; /* Omit arguments from function declaration string */ | ||
210 | int omit_symbol_name_option; /* Omit symbol name from symbol declaration string */ | ||
197 | 211 | ||
198 | #define SM_FUNCTIONS 0x0001 | 212 | #define SM_FUNCTIONS 0x0001 |
199 | #define SM_DATA 0x0002 | 213 | #define SM_DATA 0x0002 |
@@ -588,6 +602,18 @@ parse_opt (int key, char *arg, struct argp_state *state) | |||
588 | argp_error(state, _("Unknown symbol class: %c"), *arg); | 602 | argp_error(state, _("Unknown symbol class: %c"), *arg); |
589 | } | 603 | } |
590 | break; | 604 | break; |
605 | case OPT_OMIT_ARGUMENTS: | ||
606 | omit_arguments_option = 1; | ||
607 | break; | ||
608 | case OPT_NO_OMIT_ARGUMENTS: | ||
609 | omit_arguments_option = 0; | ||
610 | break; | ||
611 | case OPT_OMIT_SYMBOL_NAME: | ||
612 | omit_symbol_name_option = 1; | ||
613 | break; | ||
614 | case OPT_NO_OMIT_SYMBOL_NAME: | ||
615 | omit_symbol_name_option = 0; | ||
616 | break; | ||
591 | case 'l': | 617 | case 'l': |
592 | print_levels = 1; | 618 | print_levels = 1; |
593 | break; | 619 | break; |