From b85e6151264722dcaf7dcd1ec2a75bcee295512c Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sun, 10 Feb 2019 15:26:03 +0200 Subject: Finish implementation of --all * doc/cflow.1: Document the --all --all behavior * doc/cflow.texi: Likewise. * src/main.c: Increment all_functions for each -A option. * src/output.c (tree_output): If one --all option is used, output graphs for all top-level functions (i.e. functions, not reachable from other ones). If used twice, output graphs for all global function. * tests/all.at: New test. * tests/Makefile.am: Add new test. * tests/testsuite.at: Likewise. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') 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; -- cgit v1.2.1