aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-10-04 14:20:25 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-10-04 14:20:25 +0000
commit87b1a63e1a15d599cec38b58216cfd242f8d11b4 (patch)
treeb830de31092a0d70bdcfea840efcadcaf9a57d99 /src/main.c
parent867df98a5fe8751489df450e9c3272d656ca60bf (diff)
downloadcflow-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.c28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index adf32f3..0438f77 100644
--- a/src/main.c
+++ b/src/main.c
@@ -43,7 +43,11 @@ enum option_code {
OPT_NO_VERBOSE,
OPT_NO_NUMBER,
OPT_NO_PRINT_LEVEL,
- OPT_NO_REVERSE
+ OPT_NO_REVERSE,
+ OPT_OMIT_ARGUMENTS,
+ OPT_NO_OMIT_ARGUMENTS,
+ OPT_OMIT_SYMBOL_NAME,
+ OPT_NO_OMIT_SYMBOL_NAME
};
static struct argp_option options[] = {
@@ -135,6 +139,14 @@ static struct argp_option options[] = {
N_("* Additionally format output for use with GNU Emacs"), GROUP_ID+1 },
{ "no-emacs", OPT_NO_EMACS, NULL, OPTION_HIDDEN,
"", GROUP_ID+1 },
+ { "omit-arguments", OPT_OMIT_ARGUMENTS, NULL, 0,
+ N_("* Do not print function arguments in declaration strings"), GROUP_ID+1 },
+ { "no-ignore-arguments", OPT_NO_OMIT_ARGUMENTS, NULL, OPTION_HIDDEN,
+ "", GROUP_ID+1 },
+ { "omit-symbol-name", OPT_OMIT_SYMBOL_NAME, NULL, 0,
+ N_("* Do not print symbol names in declaration strings"), GROUP_ID+1 },
+ { "no-omit-symbol-name", OPT_NO_OMIT_SYMBOL_NAME, NULL, OPTION_HIDDEN,
+ "", GROUP_ID+1 },
#undef GROUP_ID
#define GROUP_ID 30
{ NULL, 0, NULL, 0,
@@ -194,6 +206,8 @@ int brief_listing; /* Produce short listing */
int reverse_tree; /* Generate reverse tree */
int max_depth; /* The depth at which the flowgraph is cut off */
int emacs_option; /* Format and check for use with Emacs cflow-mode */
+int omit_arguments_option; /* Omit arguments from function declaration string */
+int omit_symbol_name_option; /* Omit symbol name from symbol declaration string */
#define SM_FUNCTIONS 0x0001
#define SM_DATA 0x0002
@@ -588,6 +602,18 @@ parse_opt (int key, char *arg, struct argp_state *state)
argp_error(state, _("Unknown symbol class: %c"), *arg);
}
break;
+ case OPT_OMIT_ARGUMENTS:
+ omit_arguments_option = 1;
+ break;
+ case OPT_NO_OMIT_ARGUMENTS:
+ omit_arguments_option = 0;
+ break;
+ case OPT_OMIT_SYMBOL_NAME:
+ omit_symbol_name_option = 1;
+ break;
+ case OPT_NO_OMIT_SYMBOL_NAME:
+ omit_symbol_name_option = 0;
+ break;
case 'l':
print_levels = 1;
break;

Return to:

Send suggestions and report system problems to the System administrator.