X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/22c2cbc078dc5243041d10f4e6e1e5ce1aca36cf..20e8e5cadf2f68d6e90aff9f862023c1ad5f0960:/src/files.c?ds=inline diff --git a/src/files.c b/src/files.c index 82b6491c..721f1e5e 100644 --- a/src/files.c +++ b/src/files.c @@ -349,6 +349,7 @@ open_files (void) obstack_init (&defines_obstack); obstack_init (&guard_obstack); obstack_init (&output_obstack); + obstack_init (&graph_obstack); } @@ -407,4 +408,7 @@ output_files (void) /* We used to use just .out if spec_name_prefix (-p) was used, but that conflicts with Posix. */ obstack_save (&output_obstack, stringappend (short_base_name, EXT_OUTPUT)); + + if (graph_flag) + obstack_save (&graph_obstack, stringappend (short_base_name, ".vcg")); }