output generator info
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@5 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/libasn1compiler/asn1c_save.c b/libasn1compiler/asn1c_save.c
index 0e5b0fb..8aab8c4 100644
--- a/libasn1compiler/asn1c_save.c
+++ b/libasn1compiler/asn1c_save.c
@@ -145,6 +145,23 @@
return -1;
}
+ fprintf(fp_c,
+ "/*\n"
+ " * Generated by asn1c-" VERSION " (http://lionet.info/asn1c)\n"
+ " * From ASN.1 module \"%s\" found in \"%s\"\n"
+ " */\n\n",
+ arg->mod->Identifier,
+ arg->mod->source_file_name
+ );
+ fprintf(fp_h,
+ "/*\n"
+ " * Generated by asn1c-" VERSION " (http://lionet.info/asn1c)\n"
+ " * From ASN.1 module \"%s\" found in \"%s\"\n"
+ " */\n\n",
+ arg->mod->Identifier,
+ arg->mod->source_file_name
+ );
+
header_id = alloca(strlen(expr->Identifier) + 1);
if(1) {
char *src, *dst;