]> git.saurik.com Git - bison.git/commitdiff
graph: sign the output file.
authorAkim Demaille <demaille@gostai.com>
Mon, 5 Apr 2010 19:30:36 +0000 (21:30 +0200)
committerAkim Demaille <demaille@gostai.com>
Mon, 5 Apr 2010 19:36:13 +0000 (21:36 +0200)
* src/graphviz.c (start_graph): Issue comments about Bison.
Suggested by Tys Lefering.
(cherry picked from commit 8176ab33c83a8f393fb9a55b4ba28a8f5dc526c8)

ChangeLog
src/graphviz.c

index d764f1226566050472031311919a5257fa54606d..24b263a56ce134f038c39494011ef9df5b811a30 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-05  Akim Demaille  <demaille@gostai.com>
+
+       graph: sign the output file.
+       * src/graphviz.c (start_graph): Issue comments about Bison.
+       Suggested by Tys Lefering.
+
 2010-03-31  Joel E. Denny  <jdenny@ces.clemson.edu>
 
        portability: fix test suite for GCC 4.5's new #error message.
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