summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rakefile1
-rw-r--r--ext/json/ext/parser/parser.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 7e307dc..2b68818 100644
--- a/Rakefile
+++ b/Rakefile
@@ -331,6 +331,7 @@ else
end
src = File.read("parser.c").gsub(/[ \t]+$/, '')
src.gsub!(/^static const int (JSON_.*=.*);$/, 'enum {\1};')
+ src[0, 0] = "/* This file is automatically generated from parser.rl by using ragel */"
File.open("parser.c", "w") {|f| f.print src}
end
end
diff --git a/ext/json/ext/parser/parser.c b/ext/json/ext/parser/parser.c
index bc4ac46..0f98cf9 100644
--- a/ext/json/ext/parser/parser.c
+++ b/ext/json/ext/parser/parser.c
@@ -1,4 +1,4 @@
-
+/* This file is automatically generated from parser.rl by using ragel */
#line 1 "parser.rl"
#include "../fbuffer/fbuffer.h"
#include "parser.h"