summaryrefslogtreecommitdiff
path: root/src/graphviz.c
diff options
context:
space:
mode:
authorAkim Demaille <demaille@gostai.com>2010-04-05 21:30:36 +0200
committerAkim Demaille <demaille@gostai.com>2010-04-05 21:36:13 +0200
commita02797656ed9675eaabfcf9114301f8c7cb45383 (patch)
treebfbe538e1cabc6351dc33290139b11dcedd63dee /src/graphviz.c
parent132247cd94d409f04997dc0b550f4ee6abbb735a (diff)
downloadbison-a02797656ed9675eaabfcf9114301f8c7cb45383.tar.gz
graph: sign the output file.
* src/graphviz.c (start_graph): Issue comments about Bison. Suggested by Tys Lefering. (cherry picked from commit 8176ab33c83a8f393fb9a55b4ba28a8f5dc526c8)
Diffstat (limited to 'src/graphviz.c')
-rw-r--r--src/graphviz.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/graphviz.c b/src/graphviz.c
index 3b483b5b..13f279f3 100644
--- a/src/graphviz.c
+++ b/src/graphviz.c
@@ -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