diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-10-04 14:21:40 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-10-04 14:21:40 +0000 |
commit | 0111a810fc0fec74d376867ea091281ba13cc565 (patch) | |
tree | d8b3567060d2c459fe3de86bbfa16c43fe43262c /src | |
parent | 87b1a63e1a15d599cec38b58216cfd242f8d11b4 (diff) | |
download | cflow-0111a810fc0fec74d376867ea091281ba13cc565.tar.gz cflow-0111a810fc0fec74d376867ea091281ba13cc565.tar.bz2 |
(print_symbol_type): Updated to match new finish_save_stack strategy.
Diffstat (limited to 'src')
-rw-r--r-- | src/posix.c | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/src/posix.c b/src/posix.c index 92edcbf..00d0d76 100644 --- a/src/posix.c +++ b/src/posix.c @@ -22,35 +22,12 @@ static void print_symbol_type(FILE *outfile, Symbol *sym) { - if (sym->decl) { - char *p = sym->decl; - - while (*p) { - char *q = p; - - /* Skip whitespace */ - while (*q && isspace (*q)) - q++; - - if (*q == '(') { - /* Do not print function name */ - p = q; - break; - } - - /* Skip identifier */ - while (*q && !isspace (*q)) - q++; - - for (; p < q; p++) - fputc(*p, outfile); - } - + if (sym->decl) fprintf(outfile, "%s, <%s %d>", - p, + sym->decl, sym->source, sym->def_line); - } else + else fprintf(outfile, "<>"); } @@ -81,7 +58,7 @@ posix_output_handler(cflow_output_command cmd, /* Additional check for consistency */ if (emacs_option) error(1, 0, _("--format=posix is not compatible with --emacs")); - brief_listing = print_line_numbers = 1; + brief_listing = print_line_numbers = omit_symbol_name_option = 1; break; case cflow_output_begin: case cflow_output_end: |