path: root/src/main.c
AgeCommit message (Collapse)AuthorFiles
2019-02-10Finish implementation of --allSergey Poznyakoff1
* 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/ New test. * tests/ Add new test. * tests/ Likewise.
2019-02-08New options: --all and --no-mainSergey Poznyakoff1
* NEWS: Document --all and --no-main * Version 1.5.90 * doc/cflow.texi: Document --all and --no-main * src/cflow.h (all_functions): New extern. * src/main.c: New options: -A (--all) and --no-main * src/output.c (tree_output): Output all graphs if all_functions is set or no main function is defined.
2019-01-22BugfixSergey Poznyakoff1
* src/main.c (main): Make sure preprocessor options are collected before parsing source files.
2017-01-02Happy GNU YearSergey Poznyakoff1
2016-11-14Include static symbols as root points in inverted graphs.Sergey Poznyakoff1
* src/cflow.h (linked_list_size): New function. * src/linked-list.c (linked_list_size): New function. * src/symbol.c (collect_symbols): Include static symbols, if allowed by sel. * src/main.c (parse_opt): Exclude static symbols for --xref
2016-05-16Version 1.5release-1_5Sergey Poznyakoff1
* NEWS: Version 1.5 * Likewise. * src/main.c (parse_opt): Bugfix. * src/parser.c: Include ctype.h. * src/symbol.c (hash_symbol_hasher): Fix signature.
2016-03-22Update copyright yearsSergey Poznyakoff1
2015-03-02Update copyright yearsSergey Poznyakoff1
2014-02-07Use exit codes consistently.Sergey Poznyakoff1
* doc/cflow.1: Document exit codes. * doc/cflow.texi: Likewise. * src/cflow.h: Define exit code constants. * src/main.c: Use exit codes consistently. * src/output.c: Likewise. * src/parser.c: Likewise. * src/posix.c: Likewise. * src/rc.c: Likewise.
2014-02-07Update copyright statements. Remove 'Front-Cover' clause from cflow.texiSergey Poznyakoff1
2014-02-07Output debugging info to stderr instead of stdout.Sergey Poznyakoff1
2011-10-11Final cleanup before the release.release-1_4Sergey Poznyakoff1
* NEWS: Update. * README: Update. * doc/cflow.texi: Update. * src/main.c (symbol_override): pass allocated argument to install. * src/parser.c (yyparse): Return 0.
2011-10-11Improve the docs.Sergey Poznyakoff1
* doc/cflow.texi: Document symbol classes and aliases. * src/cflow.rc: Minor change. * src/main.c: Mention aliasing feature in the docstring for --symbol.
2011-10-10Improve parser. Allow users to declare aliases to other symbols.Sergey Poznyakoff1
The latter feature is useful for declaring reserved symbols such as __restrict or __inline, e.g. --symbol __restrict:=restrict instructs cflow to treat `__restrict' exactly as `restrict'. * src/ Minor fix in rule for flowgraph. * src/c.l (init_tokens): New function, separated from init_lex. Install qualifiers. * src/cflow.h (symbol_alias): New flag. (symbol)<alias>: New member. (INSTALL_DEFAULT,INSTALL_OVERWRITE) (INSTALL_CHECK_LOCAL,INSTALL_UNIT_LOCAL): New defines. * src/cflow.rc: Rewrite for use with --cpp='gcc -E' * src/main.c (symbol_override): Extend syntax to allow for defining aliases to other tokens (--symbol __inline:=inline). * src/parser.c (print_token): print qualifiers and ops. (file_error): Change signature. All uses changed. (save_token): Improve output spacing. (skip_balanced): Treat LBRACE0 and RBRACE0 as { and }. (is_function): allow for qualifiers and wrappers before defintion. (parse_function_declaration): Remove PARM_WRAPPER case: it is taken care of by the caller. (fake_struct): leave when '(' is encountered. (parse_variable_declaration): Allow for qualifiers before the identifier. (skip_struct): Use skip_balanced. (dcl): Handle wrappers. Leave if a semicolon is encountered. (dirdcl): Optimize handing of wrapper. (maybe_parm_list): Handle qualifiers. (declare): allow for wrappers. (declare_type): Pass INSTALL_UNIT_LOCAL as a flag to install. * src/symbol.c (lookup): Argument is const now. (install): Change semantics of the 2nd argument. (install_ident): Change the call to install accordingly. * tests/ Change spacing to reflect changes to save_token.
2011-10-10Improve local symbol detection.Sergey Poznyakoff1
* src/cflow.h (install): Change prototype. * src/parser.c (skip_balanced): Don't put extra token back. * src/symbol.c (install): Take two arguments, the 2nd one specifying whether the symbol can be local to the compilation unit. All uses updated. (delete_symbol): Don't delete symbol in reverse tree mode, if its callee list is not empty.
2011-10-09Accept qualifiers before declarations.Sergey Poznyakoff1
* src/c.l: Handle "inline" keyword. * src/main.c (symbol_optype): Add "qualifier". * src/parser.c (print_token): Correctly handle PARM_WRAPPER and STRING. (save_token): Handle QUALIFIER. In verbose mode, warn about unexpected symbols. (yyparse): Handle QUALIFIER and PARM_WRAPPER. * src/parser.h (QUALIFIER): New define.
2010-01-02Update copyright years.Sergey Poznyakoff1
Happy GNU Year!
2009-06-28Provide a general-purpose type for singly-linked list.Sergey Poznyakoff1
* src/cflow.h (Cons, Consptr, CAR, CDR): Remove (struct linked_list_entry): New type. (struct linked_list): New type. (linked_list_free_data_fp): New typedef. (struct symbol): Change types of ref_line, callee and caller to struct linked_list. All usages changed. (linked_list_head): New define. (linked_list_create, linked_list_destroy) (linked_list_append, linked_list_prepend): New prototypes. (cleanup, append_to_list): Remove * src/main.c (arglist): Change type to struct linked_list * src/output.c, src/parser.c, src/symbol.c: Use new linked list functions.
2009-06-28Minor changes.Sergey Poznyakoff1
* Improve ChangeLog rule * Remove AH_BOTTOM * gnulib.modules: Add argp-version-etc, progname. Remove version-etc. * src/main.c: Use argp-version-etc
2009-06-28Fix coredump (tiny change)Naohiro Ooiwa1
* src/main.c (symbol_override): Fix conditional logic to prevent coredump on invalid usage. Require that the argument always have ':' in it.
2007-06-27Relicense under GPLv3Sergey Poznyakoff1
2007-05-18Remove --license optionSergey Poznyakoff1
2007-05-18Add version-etc moduleSergey Poznyakoff1
2007-05-18Update for the recent gnulibSergey Poznyakoff1
2006-09-11(doc): Reformat argp docstring in accordance with theSergey Poznyakoff1
new argp guidelines. Remove unneeded translators comment. (main): Set program_name.
2005-10-05Rename to omit_symbol_names_option.Sergey Poznyakoff1
2005-10-05Rename --omit-symbol-name to --omit-symbol-name for consistency.Sergey Poznyakoff1
2005-10-04(omit_arguments_option,omit_symbol_name): New optionsSergey Poznyakoff1
2005-10-03Include strndup.hSergey Poznyakoff1
2005-10-03("print" option): Set hidden attribute. I am not sure whether we need this ↵Sergey Poznyakoff1
2005-09-27UpdatedSergey Poznyakoff1
2005-09-26UpdatedSergey Poznyakoff1
2005-09-26Use --no-OPTION instead of --OPTION=noSergey Poznyakoff1
2005-09-25Handle new --emacs option.Sergey Poznyakoff1
2005-09-25Minor changes.Sergey Poznyakoff1
2005-09-21(excluded_symbols,included_symbols): RemovedSergey Poznyakoff1
(symbol_map): New variable, instead of the previous two. All references updated. (symbol_override): Minor fix. (parse_opt): Allow to use +,- and ^ in any part of the argument string. (included_char): Removed
2005-09-17(main): Assume POSIX output format if POSIXLY_CORRECT is set.Sergey Poznyakoff1
2005-09-14(parse_opt): Bugfix: Set preprocess_option if --cpp is given.Sergey Poznyakoff1
2005-09-14(include_symbol): Ignore keywords.Sergey Poznyakoff1
2005-09-14(main): Fixed coredump when no arguments were passed.Sergey Poznyakoff1
2005-08-16(preprocess_option): New variableSergey Poznyakoff1
2005-08-06Number of i18n-related fixes.Sergey Poznyakoff1
(parse_opt): Call output_init
2005-07-09(main): Use input_file_count to decide whether to print "no input files" ↵Sergey Poznyakoff1
2005-05-18Changed FSF postal addressSergey Poznyakoff1
2005-04-22Add gettext markersSergey Poznyakoff1
2005-03-22(ignore_indentation): Renamed to use_indentation,Sergey Poznyakoff1
sense reverted. All callers updated New options: --cpp, alias to --preprocess. --no-cpp, disables preprocessing
2005-03-22New options -I, -U, -D and --preprocessSergey Poznyakoff1
(main): Use ARGP_IN_ORDER when parsing arguments
2005-03-20Reordered functionsSergey Poznyakoff1
(find_option_type): Take third argument. (symbol_override,number,parse_level_string) (set_level_indent): Operate on read-only strings (options): New option --number (-n)
2005-03-20(GNU_STYLE_OPTIONS,SYSTEM_ERROR)Sergey Poznyakoff1
(FATAL_ERROR): Removed (SymFunction): Renamed to SymIdentifier. All callers updated (struct symbol): Removed union, rearranged fields. All callers updated Implemented -ix
2005-03-19Implemented POSIX options (except -i x)Sergey Poznyakoff1
(options): Reordered. Removed -C, -t (in favor of -i t), and -g (in favor of -i ^s). --brief option takes an optional argument (enable/disable) (progname): Removed (globals_only,include_symbol): New functions

Return to:

Send suggestions and report system problems to the System administrator.