aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1compiler
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2004-06-03 05:06:25 +0000
committerLev Walkin <vlm@lionet.info>2004-06-03 05:06:25 +0000
commitc3b8f6d10a7e9acb8f1249405ea2e3d6cbb5beb7 (patch)
tree61e6c1045fe3c29454c30c88a7834639f072b5da /libasn1compiler
parente3e4157cfc3f9c614ebc4916d18903de1c693f9a (diff)
output generator info
Diffstat (limited to 'libasn1compiler')
-rw-r--r--libasn1compiler/asn1c_save.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/libasn1compiler/asn1c_save.c b/libasn1compiler/asn1c_save.c
index 0e5b0fbc..8aab8c42 100644
--- a/libasn1compiler/asn1c_save.c
+++ b/libasn1compiler/asn1c_save.c
@@ -145,6 +145,23 @@ asn1c_save_streams(arg_t *arg) {
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;