]> git.saurik.com Git - bison.git/blobdiff - src/graphviz.c
lalr1.cc: remove useless forward declaration.
[bison.git] / src / graphviz.c
index 3b483b5bf523e5db26066f370dcc99299f188dc4..13f279f3494f208c0446e7e0cf09c9a80ddce8e1 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <quotearg.h>
 
+#include "files.h"
 #include "graphviz.h"
 
 /* Return an unambiguous printable representation for NAME, suitable
@@ -38,7 +39,20 @@ quote (char const *name)
 void
 start_graph (FILE *fout)
 {
-  fputs ("digraph Automaton {\n", fout);
+  fprintf (fout,
+           _("/*\n"
+             " * Generated by %s.\n"
+             " * Report bugs to <%s>.\n"
+             " * Home page: <%s>.\n"
+             " */\n"
+             "\n"),
+           PACKAGE_STRING,
+           PACKAGE_BUGREPORT,
+           PACKAGE_URL);
+  fprintf (fout,
+           "digraph %s\n"
+           "{\n",
+           quote (grammar_file));
 }
 
 void