asn1: Generate print stubs (codegen)

This commit is contained in:
Nicolas Williams
2021-04-23 21:45:17 -05:00
parent e3359f6bf5
commit 32b314b174
3 changed files with 7 additions and 5 deletions

View File

@@ -96,6 +96,7 @@ asn1_compile_SOURCES = \
gen_copy.c \
gen_decode.c \
gen_encode.c \
gen_print.c \
gen_free.c \
gen_glue.c \
gen_length.c \

View File

@@ -1693,6 +1693,7 @@ generate_type (const Symbol *s)
generate_type_free (s);
generate_type_length (s);
generate_type_copy (s);
generate_type_print_stub(s);
}
generate_type_seq (s);
generate_glue (s->type, s->gen_name);
@@ -1730,11 +1731,10 @@ generate_type (const Symbol *s)
exp,
s->gen_name, s->gen_name);
if (template_flag)
fprintf(h,
"%schar * ASN1CALL print_%s (const %s *, int);\n",
exp,
s->gen_name, s->gen_name);
fprintf(h,
"%schar * ASN1CALL print_%s (const %s *, int);\n",
exp,
s->gen_name, s->gen_name);
fprintf(h, "\n\n");

View File

@@ -118,6 +118,7 @@ void generate_type_encode (const Symbol *);
void generate_type_decode (const Symbol *);
void generate_type_free (const Symbol *);
void generate_type_length (const Symbol *);
void generate_type_print_stub(const Symbol *);
void generate_type_copy (const Symbol *);
void generate_type_seq (const Symbol *);
void generate_glue (const Type *, const char*);