aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
-rw-r--r--src/output.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index a5535c7..bdfddb0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -518,7 +518,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
switch (key) {
case 'A':
- all_functions = 1;
+ all_functions++;
break;
case 'a':
strict_ansi = 1;
diff --git a/src/output.c b/src/output.c
index bf5af1f..625d29e 100644
--- a/src/output.c
+++ b/src/output.c
@@ -395,7 +395,7 @@ tree_output()
if ((main_sym = start_name ? lookup(start_name) : NULL) != NULL) {
direct_tree(0, 0, main_sym);
separator();
- } else {
+ } else if (!all_functions) {
all_functions = 1;
}
@@ -403,7 +403,7 @@ tree_output()
for (i = 0; i < num; i++) {
if (main_sym != symbols[i]
&& symbols[i]->source
- && symbols[i]->caller == NULL) {
+ && (all_functions > 1 || symbols[i]->caller == NULL)) {
direct_tree(0, 0, symbols[i]);
separator();
}

Return to:

Send suggestions and report system problems to the System administrator.