From c3b8f6d10a7e9acb8f1249405ea2e3d6cbb5beb7 Mon Sep 17 00:00:00 2001 From: Lev Walkin <vlm@lionet.info> Date: Thu, 3 Jun 2004 05:06:25 +0000 Subject: [PATCH] output generator info --- libasn1compiler/asn1c_save.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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; -- GitLab