aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-10-04 14:21:40 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-10-04 14:21:40 +0000
commit0111a810fc0fec74d376867ea091281ba13cc565 (patch)
treed8b3567060d2c459fe3de86bbfa16c43fe43262c /src
parent87b1a63e1a15d599cec38b58216cfd242f8d11b4 (diff)
downloadcflow-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.c31
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:

Return to:

Send suggestions and report system problems to the System administrator.