From 8176ab33c83a8f393fb9a55b4ba28a8f5dc526c8 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 5 Apr 2010 21:30:36 +0200 Subject: [PATCH] graph: sign the output file. * src/graphviz.c (start_graph): Issue comments about Bison. Suggested by Tys Lefering. --- ChangeLog | 6 ++++++ src/graphviz.c | 16 +++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8bd5574e..16691807 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-04-05 Akim Demaille + + graph: sign the output file. + * src/graphviz.c (start_graph): Issue comments about Bison. + Suggested by Tys Lefering. + 2010-03-31 Joel E. Denny portability: fix test suite for GCC 4.5's new #error message. 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 +#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 -- 2.45.2