diff --git a/libasn1compiler/asn1c_C.c b/libasn1compiler/asn1c_C.c index 15616ea2..3ebd4179 100644 --- a/libasn1compiler/asn1c_C.c +++ b/libasn1compiler/asn1c_C.c @@ -79,9 +79,9 @@ static int emit_type_DEF(arg_t *arg, asn1p_expr_t *expr, enum tvm_compat tv_mode #define DEPENDENCIES do { \ emit_include_dependencies(arg); \ if(expr->expr_type == ASN_CONSTR_SET_OF) \ - GEN_INCLUDE("asn_SET_OF"); \ + GEN_INCLUDE_STD("asn_SET_OF"); \ if(expr->expr_type == ASN_CONSTR_SEQUENCE_OF) \ - GEN_INCLUDE("asn_SEQUENCE_OF"); \ + GEN_INCLUDE_STD("asn_SEQUENCE_OF"); \ } while(0) /* MKID_safe() without checking for reserved keywords */ @@ -328,7 +328,7 @@ asn1c_lang_C_type_SEQUENCE_def(arg_t *arg) { return -1; } - GEN_INCLUDE("constr_SEQUENCE"); + GEN_INCLUDE_STD("constr_SEQUENCE"); if(!arg->embed) GEN_DECLARE(expr); /* asn_DEF_xxx */ @@ -568,7 +568,7 @@ asn1c_lang_C_type_SET_def(arg_t *arg) { tag2el_cxer = 0; } - GEN_INCLUDE("constr_SET"); + GEN_INCLUDE_STD("constr_SET"); if(!arg->embed) GEN_DECLARE(expr); /* asn_DEF_xxx */ @@ -770,9 +770,9 @@ asn1c_lang_C_type_SEx_OF_def(arg_t *arg, int seq_of) { * Print out the table according to which parsing is performed. */ if(seq_of) { - GEN_INCLUDE("constr_SEQUENCE_OF"); + GEN_INCLUDE_STD("constr_SEQUENCE_OF"); } else { - GEN_INCLUDE("constr_SET_OF"); + GEN_INCLUDE_STD("constr_SET_OF"); } if(!arg->embed) GEN_DECLARE(expr); /* asn_DEF_xxx */ @@ -921,7 +921,7 @@ asn1c_lang_C_type_CHOICE_def(arg_t *arg) { return -1; } - GEN_INCLUDE("constr_CHOICE"); + GEN_INCLUDE_STD("constr_CHOICE"); if(!arg->embed) GEN_DECLARE(expr); /* asn_DEF_xxx */ diff --git a/libasn1compiler/asn1c_misc.c b/libasn1compiler/asn1c_misc.c index 742c02aa..c8adce66 100644 --- a/libasn1compiler/asn1c_misc.c +++ b/libasn1compiler/asn1c_misc.c @@ -109,7 +109,7 @@ asn1c_make_identifier(enum ami_flags_e flags, asn1p_expr_t *expr, ...) { continue; } - if(str != first && !nodelimiter) + if(str != first && !nodelimiter && !(flags & AMI_NODELIMITER)) *p++ = '_'; /* Delimiter between tokens */ nodelimiter = 0; @@ -150,6 +150,7 @@ asn1c_type_name(arg_t *arg, asn1p_expr_t *expr, enum tnfmt _format) { asn1p_expr_t *exprid = 0; asn1p_expr_t *top_parent; asn1p_expr_t *terminal; + int stdname = 0; char *typename; /* Rewind to the topmost parent expression */ @@ -215,16 +216,25 @@ asn1c_type_name(arg_t *arg, asn1p_expr_t *expr, enum tnfmt _format) { return "double"; else return "long"; - default: break; + default: + typename = 0; + switch(expr->expr_type) { + case ASN_BASIC_INTEGER: + typename = "NativeInteger"; break; + case ASN_BASIC_ENUMERATED: + typename = "NativeEnumerated"; break; + case ASN_BASIC_REAL: + typename = "NativeReal"; break; + default: + break; + } + break; } - switch(expr->expr_type) { - case ASN_BASIC_INTEGER: - return "NativeInteger"; - case ASN_BASIC_ENUMERATED: - return "NativeEnumerated"; - case ASN_BASIC_REAL: - return "NativeReal"; - default: break; + if(typename) { + if(_format != TNF_INCLUDE) + return typename; + stdname = 1; + break; } } /* Fall through */ @@ -233,6 +243,7 @@ asn1c_type_name(arg_t *arg, asn1p_expr_t *expr, enum tnfmt _format) { & (ASN_CONSTR_MASK | ASN_BASIC_MASK | ASN_STRING_MASK)) { if(_format == TNF_RSAFE) _format = TNF_CTYPE; + stdname = 1; typename = ASN_EXPR_TYPE2STR(expr->expr_type); } else { _format = TNF_RSAFE; @@ -242,9 +253,14 @@ asn1c_type_name(arg_t *arg, asn1p_expr_t *expr, enum tnfmt _format) { switch(_format) { case TNF_UNMODIFIED: - case TNF_INCLUDE: return asn1c_make_identifier(AMI_MASK_ONLY_SPACES, 0, exprid ? exprid->Identifier : typename, 0); + case TNF_INCLUDE: + return asn1c_make_identifier( + AMI_MASK_ONLY_SPACES | AMI_NODELIMITER, + 0, stdname ? "<" : "\"", + exprid ? exprid->Identifier : typename, + stdname ? ".h>" : ".h\"", 0); case TNF_SAFE: return asn1c_make_identifier(0, exprid, typename, 0); case TNF_CTYPE: /* C type */ diff --git a/libasn1compiler/asn1c_misc.h b/libasn1compiler/asn1c_misc.h index 23693a0d..b14a1555 100644 --- a/libasn1compiler/asn1c_misc.h +++ b/libasn1compiler/asn1c_misc.h @@ -9,6 +9,7 @@ enum ami_flags_e { AMI_MASK_ONLY_SPACES = 1, /* Mask only spaces, everything else's safe */ AMI_CHECK_RESERVED = 2, /* Check against reserved keywords */ + AMI_NODELIMITER = 4, /* Do not put delimiter, just concatenate */ }; char *asn1c_make_identifier(enum ami_flags_e, asn1p_expr_t *expr, ...); diff --git a/libasn1compiler/asn1c_out.h b/libasn1compiler/asn1c_out.h index fb986cbf..3b1f055d 100644 --- a/libasn1compiler/asn1c_out.h +++ b/libasn1compiler/asn1c_out.h @@ -82,18 +82,19 @@ int asn1c_compiled_output(arg_t *arg, const char *fmt, ...); } while(0) /* Generate #include line */ +#define GEN_INCLUDE_STD(typename) GEN_INCLUDE("<" typename ".h>") #define GEN_INCLUDE(filename) do { \ int saved_target = arg->target->target; \ if(!filename) break; \ REDIR(OT_INCLUDES); \ - OUT_NOINDENT("#include <%s.h>\n", filename); \ + OUT_NOINDENT("#include %s\n", filename); \ REDIR(saved_target); \ } while(0) #define GEN_POSTINCLUDE(filename) do { \ int saved_target = arg->target->target; \ if(!filename) break; \ REDIR(OT_POST_INCLUDE); \ - OUT_NOINDENT("#include <%s.h>\n", filename); \ + OUT_NOINDENT("#include %s\n", filename); \ REDIR(saved_target); \ } while(0) diff --git a/tests/104-param-1-OK.asn1.-P b/tests/104-param-1-OK.asn1.-P index 2b7a50af..24f4a64a 100644 --- a/tests/104-param-1-OK.asn1.-P +++ b/tests/104-param-1-OK.asn1.-P @@ -117,7 +117,7 @@ asn_TYPE_descriptor_t asn_DEF_Collection_16P1 = { /*** <<< INCLUDES [Bunch] >>> ***/ -#include +#include "Collection.h" #include /*** <<< TYPE-DECLS [Bunch] >>> ***/ diff --git a/tests/105-param-2-OK.asn1.-P b/tests/105-param-2-OK.asn1.-P index 96de0624..8a9b9f86 100644 --- a/tests/105-param-2-OK.asn1.-P +++ b/tests/105-param-2-OK.asn1.-P @@ -206,7 +206,7 @@ asn_TYPE_descriptor_t asn_DEF_SIGNED_16P1 = { /*** <<< INCLUDES [SignedREAL] >>> ***/ -#include +#include "SIGNED.h" /*** <<< TYPE-DECLS [SignedREAL] >>> ***/ @@ -330,7 +330,7 @@ asn_TYPE_descriptor_t asn_DEF_SignedREAL = { /*** <<< INCLUDES [SignedSET] >>> ***/ -#include +#include "SIGNED.h" /*** <<< TYPE-DECLS [SignedSET] >>> ***/ diff --git a/tests/106-param-constr-OK.asn1.-P b/tests/106-param-constr-OK.asn1.-P index 5910cfb8..1bca959a 100644 --- a/tests/106-param-constr-OK.asn1.-P +++ b/tests/106-param-constr-OK.asn1.-P @@ -190,7 +190,7 @@ asn_TYPE_descriptor_t asn_DEF_Narrow_15P0 = { /*** <<< INCLUDES [NarrowInteger] >>> ***/ -#include +#include "Narrow.h" /*** <<< TYPE-DECLS [NarrowInteger] >>> ***/ diff --git a/tests/108-param-constr-3-OK.asn1.-P b/tests/108-param-constr-3-OK.asn1.-P index 33e3fd55..b0903001 100644 --- a/tests/108-param-constr-3-OK.asn1.-P +++ b/tests/108-param-constr-3-OK.asn1.-P @@ -148,7 +148,7 @@ asn_TYPE_descriptor_t asn_DEF_MinMax_16P0 = { /*** <<< INCLUDES [ThreePlus] >>> ***/ -#include +#include "MinMax.h" /*** <<< TYPE-DECLS [ThreePlus] >>> ***/ diff --git a/tests/110-param-3-OK.asn1.-P b/tests/110-param-3-OK.asn1.-P index 154e8dab..3cb1058b 100644 --- a/tests/110-param-3-OK.asn1.-P +++ b/tests/110-param-3-OK.asn1.-P @@ -304,7 +304,7 @@ asn_TYPE_descriptor_t asn_DEF_Flag_16P1 = { /*** <<< INCLUDES [IntegerColorFlag] >>> ***/ -#include +#include "Flag.h" /*** <<< TYPE-DECLS [IntegerColorFlag] >>> ***/ @@ -428,7 +428,7 @@ asn_TYPE_descriptor_t asn_DEF_IntegerColorFlag = { /*** <<< INCLUDES [EnumeratedColorFlag] >>> ***/ -#include +#include "Flag.h" /*** <<< TYPE-DECLS [EnumeratedColorFlag] >>> ***/ diff --git a/tests/19-param-OK.asn1.-P b/tests/19-param-OK.asn1.-P index a7f8e7b2..24b1313e 100644 --- a/tests/19-param-OK.asn1.-P +++ b/tests/19-param-OK.asn1.-P @@ -4,7 +4,7 @@ #include #include #include -#include +#include "Name.h" #include /*** <<< TYPE-DECLS [SIGNED] >>> ***/ @@ -209,7 +209,7 @@ asn_TYPE_descriptor_t asn_DEF_SIGNED_15P0 = { /*** <<< INCLUDES [Certificate] >>> ***/ -#include +#include "SIGNED.h" /*** <<< TYPE-DECLS [Certificate] >>> ***/ @@ -355,7 +355,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Name; /*** <<< POST-INCLUDE [Name] >>> ***/ -#include +#include "RelativeDistinguishedName.h" /*** <<< STAT-DEFS [Name] >>> ***/ diff --git a/tests/31-set-of-OK.asn1.-P b/tests/31-set-of-OK.asn1.-P index 38a76bdf..3a8cb1b2 100644 --- a/tests/31-set-of-OK.asn1.-P +++ b/tests/31-set-of-OK.asn1.-P @@ -23,7 +23,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Forest; /*** <<< POST-INCLUDE [Forest] >>> ***/ -#include +#include "Tree.h" /*** <<< STAT-DEFS [Forest] >>> ***/ @@ -237,7 +237,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Stuff; /*** <<< POST-INCLUDE [Stuff] >>> ***/ -#include +#include "Forest.h" /*** <<< STAT-DEFS [Stuff] >>> ***/ diff --git a/tests/32-sequence-of-OK.asn1.-P b/tests/32-sequence-of-OK.asn1.-P index 5061e77f..84f0ce03 100644 --- a/tests/32-sequence-of-OK.asn1.-P +++ b/tests/32-sequence-of-OK.asn1.-P @@ -23,7 +23,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Programming; /*** <<< POST-INCLUDE [Programming] >>> ***/ -#include +#include "Fault.h" /*** <<< STAT-DEFS [Programming] >>> ***/ @@ -95,7 +95,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Fault; /*** <<< POST-INCLUDE [Fault] >>> ***/ -#include +#include "Error.h" /*** <<< STAT-DEFS [Fault] >>> ***/ @@ -233,7 +233,7 @@ extern asn_TYPE_descriptor_t asn_DEF_SeqWithMandatory; /*** <<< POST-INCLUDE [SeqWithMandatory] >>> ***/ -#include +#include "Error.h" /*** <<< STAT-DEFS [SeqWithMandatory] >>> ***/ @@ -375,7 +375,7 @@ extern asn_TYPE_descriptor_t asn_DEF_SeqWithOptional; /*** <<< POST-INCLUDE [SeqWithOptional] >>> ***/ -#include +#include "Error.h" /*** <<< STAT-DEFS [SeqWithOptional] >>> ***/ diff --git a/tests/39-sequence-of-OK.asn1.-P b/tests/39-sequence-of-OK.asn1.-P index 6bddb71c..4e6ed8c8 100644 --- a/tests/39-sequence-of-OK.asn1.-P +++ b/tests/39-sequence-of-OK.asn1.-P @@ -31,7 +31,7 @@ extern asn_TYPE_descriptor_t asn_DEF_T; /*** <<< POST-INCLUDE [T] >>> ***/ -#include +#include "T2.h" /*** <<< STAT-DEFS [T] >>> ***/ diff --git a/tests/42-real-life-OK.asn1.-PR b/tests/42-real-life-OK.asn1.-PR index 1c99d1aa..898d941f 100644 --- a/tests/42-real-life-OK.asn1.-PR +++ b/tests/42-real-life-OK.asn1.-PR @@ -35,7 +35,7 @@ extern asn_TYPE_descriptor_t asn_DEF_LogLine; /*** <<< POST-INCLUDE [LogLine] >>> ***/ -#include +#include "VariablePartSet.h" /*** <<< CODE [LogLine] >>> ***/ @@ -175,7 +175,7 @@ asn_TYPE_descriptor_t asn_DEF_LogLine = { /*** <<< INCLUDES [VariablePartSet] >>> ***/ -#include +#include "ActionItem.h" #include #include #include @@ -209,7 +209,7 @@ extern asn_TYPE_descriptor_t asn_DEF_VariablePartSet; /*** <<< POST-INCLUDE [VariablePartSet] >>> ***/ -#include +#include "VariablePart.h" /*** <<< CODE [VariablePartSet] >>> ***/ diff --git a/tests/43-recursion-OK.asn1.-P b/tests/43-recursion-OK.asn1.-P index 7da8b2e7..7a0b0d35 100644 --- a/tests/43-recursion-OK.asn1.-P +++ b/tests/43-recursion-OK.asn1.-P @@ -40,7 +40,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Test_structure_1; /*** <<< POST-INCLUDE [Test-structure-1] >>> ***/ -#include +#include "Test-structure-1.h" /*** <<< STAT-DEFS [Test-structure-1] >>> ***/ @@ -260,7 +260,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Choice_1; /*** <<< POST-INCLUDE [Choice-1] >>> ***/ -#include +#include "Choice-1.h" /*** <<< STAT-DEFS [Choice-1] >>> ***/ @@ -423,7 +423,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Test_structure_2; /*** <<< POST-INCLUDE [Test-structure-2] >>> ***/ -#include +#include "Test-structure-3.h" /*** <<< STAT-DEFS [Test-structure-2] >>> ***/ @@ -520,7 +520,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Test_structure_3; /*** <<< POST-INCLUDE [Test-structure-3] >>> ***/ -#include +#include "Test-structure-2.h" /*** <<< STAT-DEFS [Test-structure-3] >>> ***/ diff --git a/tests/46-redefine-OK.asn1.-PR b/tests/46-redefine-OK.asn1.-PR index 0dc9674e..3dc4a06e 100644 --- a/tests/46-redefine-OK.asn1.-PR +++ b/tests/46-redefine-OK.asn1.-PR @@ -125,7 +125,7 @@ asn_TYPE_descriptor_t asn_DEF_PrimitiveType = { /*** <<< INCLUDES [ConstructedType] >>> ***/ -#include +#include "PrimitiveType.h" #include /*** <<< TYPE-DECLS [ConstructedType] >>> ***/ @@ -196,7 +196,7 @@ asn_TYPE_descriptor_t asn_DEF_ConstructedType = { /*** <<< INCLUDES [T] >>> ***/ -#include +#include "ConstructedType.h" /*** <<< TYPE-DECLS [T] >>> ***/ diff --git a/tests/50-constraint-OK.asn1.-P b/tests/50-constraint-OK.asn1.-P index 3e3bd6c0..3cdcb3b7 100644 --- a/tests/50-constraint-OK.asn1.-P +++ b/tests/50-constraint-OK.asn1.-P @@ -125,7 +125,7 @@ asn_TYPE_descriptor_t asn_DEF_Int1 = { /*** <<< INCLUDES [Int2] >>> ***/ -#include +#include "Int1.h" /*** <<< TYPE-DECLS [Int2] >>> ***/ @@ -268,7 +268,7 @@ asn_TYPE_descriptor_t asn_DEF_Int2 = { /*** <<< INCLUDES [Int3] >>> ***/ -#include +#include "Int2.h" /*** <<< TYPE-DECLS [Int3] >>> ***/ @@ -415,7 +415,7 @@ asn_TYPE_descriptor_t asn_DEF_Int3 = { /*** <<< INCLUDES [Int4] >>> ***/ -#include +#include "Int3.h" /*** <<< TYPE-DECLS [Int4] >>> ***/ @@ -562,7 +562,7 @@ asn_TYPE_descriptor_t asn_DEF_Int4 = { /*** <<< INCLUDES [Int5] >>> ***/ -#include +#include "Int4.h" /*** <<< TYPE-DECLS [Int5] >>> ***/ @@ -980,7 +980,7 @@ asn_TYPE_descriptor_t asn_DEF_Str1 = { /*** <<< INCLUDES [Str2] >>> ***/ -#include +#include "Str1.h" /*** <<< TYPE-DECLS [Str2] >>> ***/ @@ -1139,7 +1139,7 @@ asn_TYPE_descriptor_t asn_DEF_Str2 = { /*** <<< INCLUDES [Str3] >>> ***/ -#include +#include "Str2.h" /*** <<< TYPE-DECLS [Str3] >>> ***/ @@ -1621,7 +1621,7 @@ asn_TYPE_descriptor_t asn_DEF_PER_Visible = { /*** <<< INCLUDES [PER-Visible-2] >>> ***/ -#include +#include "PER-Visible.h" /*** <<< TYPE-DECLS [PER-Visible-2] >>> ***/ @@ -1777,7 +1777,7 @@ asn_TYPE_descriptor_t asn_DEF_PER_Visible_2 = { /*** <<< INCLUDES [Not-PER-Visible-1] >>> ***/ -#include +#include "PER-Visible.h" /*** <<< TYPE-DECLS [Not-PER-Visible-1] >>> ***/ @@ -1933,7 +1933,7 @@ asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_1 = { /*** <<< INCLUDES [Not-PER-Visible-2] >>> ***/ -#include +#include "PER-Visible.h" /*** <<< TYPE-DECLS [Not-PER-Visible-2] >>> ***/ @@ -2089,7 +2089,7 @@ asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_2 = { /*** <<< INCLUDES [Not-PER-Visible-3] >>> ***/ -#include +#include "PER-Visible.h" /*** <<< TYPE-DECLS [Not-PER-Visible-3] >>> ***/ @@ -2245,7 +2245,7 @@ asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_3 = { /*** <<< INCLUDES [SIZE-but-not-FROM] >>> ***/ -#include +#include "PER-Visible.h" /*** <<< TYPE-DECLS [SIZE-but-not-FROM] >>> ***/ @@ -2404,7 +2404,7 @@ asn_TYPE_descriptor_t asn_DEF_SIZE_but_not_FROM = { /*** <<< INCLUDES [SIZE-and-FROM] >>> ***/ -#include +#include "PER-Visible.h" /*** <<< TYPE-DECLS [SIZE-and-FROM] >>> ***/ @@ -2563,7 +2563,7 @@ asn_TYPE_descriptor_t asn_DEF_SIZE_and_FROM = { /*** <<< INCLUDES [Neither-SIZE-nor-FROM] >>> ***/ -#include +#include "PER-Visible.h" /*** <<< TYPE-DECLS [Neither-SIZE-nor-FROM] >>> ***/ @@ -2869,7 +2869,7 @@ asn_TYPE_descriptor_t asn_DEF_Utf8_4 = { /*** <<< INCLUDES [Utf8-3] >>> ***/ -#include +#include "Utf8-2.h" /*** <<< TYPE-DECLS [Utf8-3] >>> ***/ @@ -3047,7 +3047,7 @@ asn_TYPE_descriptor_t asn_DEF_Utf8_3 = { /*** <<< INCLUDES [Utf8-2] >>> ***/ -#include +#include "Utf8-1.h" /*** <<< TYPE-DECLS [Utf8-2] >>> ***/ @@ -3319,7 +3319,7 @@ asn_TYPE_descriptor_t asn_DEF_Utf8_1 = { /*** <<< INCLUDES [VisibleIdentifier] >>> ***/ -#include +#include "Identifier.h" /*** <<< TYPE-DECLS [VisibleIdentifier] >>> ***/ @@ -3490,12 +3490,12 @@ asn_TYPE_descriptor_t asn_DEF_VisibleIdentifier = { /*** <<< INCLUDES [Sequence] >>> ***/ -#include -#include +#include "Int1.h" +#include "Int4.h" #include #include #include -#include +#include "Int5.h" #include /*** <<< DEPS [Sequence] >>> ***/ @@ -3923,7 +3923,7 @@ extern asn_TYPE_descriptor_t asn_DEF_SequenceOf; /*** <<< POST-INCLUDE [SequenceOf] >>> ***/ -#include +#include "Sequence.h" /*** <<< STAT-DEFS [SequenceOf] >>> ***/ diff --git a/tests/50-constraint-OK.asn1.-Pgen-PER b/tests/50-constraint-OK.asn1.-Pgen-PER index 53adbebe..0112a2ca 100644 --- a/tests/50-constraint-OK.asn1.-Pgen-PER +++ b/tests/50-constraint-OK.asn1.-Pgen-PER @@ -143,7 +143,7 @@ asn_TYPE_descriptor_t asn_DEF_Int1 = { /*** <<< INCLUDES [Int2] >>> ***/ -#include +#include "Int1.h" /*** <<< TYPE-DECLS [Int2] >>> ***/ @@ -308,7 +308,7 @@ asn_TYPE_descriptor_t asn_DEF_Int2 = { /*** <<< INCLUDES [Int3] >>> ***/ -#include +#include "Int2.h" /*** <<< TYPE-DECLS [Int3] >>> ***/ @@ -477,7 +477,7 @@ asn_TYPE_descriptor_t asn_DEF_Int3 = { /*** <<< INCLUDES [Int4] >>> ***/ -#include +#include "Int3.h" /*** <<< TYPE-DECLS [Int4] >>> ***/ @@ -646,7 +646,7 @@ asn_TYPE_descriptor_t asn_DEF_Int4 = { /*** <<< INCLUDES [Int5] >>> ***/ -#include +#include "Int4.h" /*** <<< TYPE-DECLS [Int5] >>> ***/ @@ -1126,7 +1126,7 @@ asn_TYPE_descriptor_t asn_DEF_Str1 = { /*** <<< INCLUDES [Str2] >>> ***/ -#include +#include "Str1.h" /*** <<< TYPE-DECLS [Str2] >>> ***/ @@ -1307,7 +1307,7 @@ asn_TYPE_descriptor_t asn_DEF_Str2 = { /*** <<< INCLUDES [Str3] >>> ***/ -#include +#include "Str2.h" /*** <<< TYPE-DECLS [Str3] >>> ***/ @@ -1855,7 +1855,7 @@ asn_TYPE_descriptor_t asn_DEF_PER_Visible = { /*** <<< INCLUDES [PER-Visible-2] >>> ***/ -#include +#include "PER-Visible.h" /*** <<< TYPE-DECLS [PER-Visible-2] >>> ***/ @@ -2033,7 +2033,7 @@ asn_TYPE_descriptor_t asn_DEF_PER_Visible_2 = { /*** <<< INCLUDES [Not-PER-Visible-1] >>> ***/ -#include +#include "PER-Visible.h" /*** <<< TYPE-DECLS [Not-PER-Visible-1] >>> ***/ @@ -2211,7 +2211,7 @@ asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_1 = { /*** <<< INCLUDES [Not-PER-Visible-2] >>> ***/ -#include +#include "PER-Visible.h" /*** <<< TYPE-DECLS [Not-PER-Visible-2] >>> ***/ @@ -2389,7 +2389,7 @@ asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_2 = { /*** <<< INCLUDES [Not-PER-Visible-3] >>> ***/ -#include +#include "PER-Visible.h" /*** <<< TYPE-DECLS [Not-PER-Visible-3] >>> ***/ @@ -2567,7 +2567,7 @@ asn_TYPE_descriptor_t asn_DEF_Not_PER_Visible_3 = { /*** <<< INCLUDES [SIZE-but-not-FROM] >>> ***/ -#include +#include "PER-Visible.h" /*** <<< TYPE-DECLS [SIZE-but-not-FROM] >>> ***/ @@ -2748,7 +2748,7 @@ asn_TYPE_descriptor_t asn_DEF_SIZE_but_not_FROM = { /*** <<< INCLUDES [SIZE-and-FROM] >>> ***/ -#include +#include "PER-Visible.h" /*** <<< TYPE-DECLS [SIZE-and-FROM] >>> ***/ @@ -2929,7 +2929,7 @@ asn_TYPE_descriptor_t asn_DEF_SIZE_and_FROM = { /*** <<< INCLUDES [Neither-SIZE-nor-FROM] >>> ***/ -#include +#include "PER-Visible.h" /*** <<< TYPE-DECLS [Neither-SIZE-nor-FROM] >>> ***/ @@ -3279,7 +3279,7 @@ asn_TYPE_descriptor_t asn_DEF_Utf8_4 = { /*** <<< INCLUDES [Utf8-3] >>> ***/ -#include +#include "Utf8-2.h" /*** <<< TYPE-DECLS [Utf8-3] >>> ***/ @@ -3479,7 +3479,7 @@ asn_TYPE_descriptor_t asn_DEF_Utf8_3 = { /*** <<< INCLUDES [Utf8-2] >>> ***/ -#include +#include "Utf8-1.h" /*** <<< TYPE-DECLS [Utf8-2] >>> ***/ @@ -3791,7 +3791,7 @@ asn_TYPE_descriptor_t asn_DEF_Utf8_1 = { /*** <<< INCLUDES [VisibleIdentifier] >>> ***/ -#include +#include "Identifier.h" /*** <<< TYPE-DECLS [VisibleIdentifier] >>> ***/ @@ -3980,12 +3980,12 @@ asn_TYPE_descriptor_t asn_DEF_VisibleIdentifier = { /*** <<< INCLUDES [Sequence] >>> ***/ -#include -#include +#include "Int1.h" +#include "Int4.h" #include #include #include -#include +#include "Int5.h" #include /*** <<< DEPS [Sequence] >>> ***/ @@ -4452,7 +4452,7 @@ extern asn_TYPE_descriptor_t asn_DEF_SequenceOf; /*** <<< POST-INCLUDE [SequenceOf] >>> ***/ -#include +#include "Sequence.h" /*** <<< STAT-DEFS [SequenceOf] >>> ***/ diff --git a/tests/59-choice-extended-OK.asn1.-P b/tests/59-choice-extended-OK.asn1.-P index 099dd9f8..3684a91f 100644 --- a/tests/59-choice-extended-OK.asn1.-P +++ b/tests/59-choice-extended-OK.asn1.-P @@ -42,7 +42,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Choice; /*** <<< POST-INCLUDE [Choice] >>> ***/ -#include +#include "Choice.h" /*** <<< STAT-DEFS [Choice] >>> ***/ diff --git a/tests/65-multi-tag-OK.asn1.-P b/tests/65-multi-tag-OK.asn1.-P index 8c8d860f..7547825a 100644 --- a/tests/65-multi-tag-OK.asn1.-P +++ b/tests/65-multi-tag-OK.asn1.-P @@ -1,7 +1,7 @@ /*** <<< INCLUDES [T1] >>> ***/ -#include +#include "T2.h" /*** <<< TYPE-DECLS [T1] >>> ***/ @@ -136,7 +136,7 @@ asn_TYPE_descriptor_t asn_DEF_T1 = { /*** <<< INCLUDES [T2] >>> ***/ -#include +#include "T3.h" /*** <<< TYPE-DECLS [T2] >>> ***/ @@ -269,7 +269,7 @@ asn_TYPE_descriptor_t asn_DEF_T2 = { /*** <<< INCLUDES [T3] >>> ***/ -#include +#include "T4.h" /*** <<< TYPE-DECLS [T3] >>> ***/ @@ -400,7 +400,7 @@ asn_TYPE_descriptor_t asn_DEF_T3 = { /*** <<< INCLUDES [T4] >>> ***/ -#include +#include "T5.h" /*** <<< TYPE-DECLS [T4] >>> ***/ @@ -526,7 +526,7 @@ asn_TYPE_descriptor_t asn_DEF_T4 = { /*** <<< INCLUDES [T5] >>> ***/ -#include +#include "T6.h" /*** <<< TYPE-DECLS [T5] >>> ***/ @@ -775,7 +775,7 @@ asn_TYPE_descriptor_t asn_DEF_T6 = { /*** <<< INCLUDES [T] >>> ***/ -#include +#include "Ts.h" /*** <<< TYPE-DECLS [T] >>> ***/ @@ -901,8 +901,8 @@ asn_TYPE_descriptor_t asn_DEF_T = { /*** <<< INCLUDES [Ts] >>> ***/ -#include -#include +#include "T2.h" +#include "T3.h" #include /*** <<< TYPE-DECLS [Ts] >>> ***/ diff --git a/tests/65-multi-tag-OK.asn1.-Pfnative-types b/tests/65-multi-tag-OK.asn1.-Pfnative-types index 9dad4c7d..3b648ecf 100644 --- a/tests/65-multi-tag-OK.asn1.-Pfnative-types +++ b/tests/65-multi-tag-OK.asn1.-Pfnative-types @@ -1,7 +1,7 @@ /*** <<< INCLUDES [T1] >>> ***/ -#include +#include "T2.h" /*** <<< TYPE-DECLS [T1] >>> ***/ @@ -136,7 +136,7 @@ asn_TYPE_descriptor_t asn_DEF_T1 = { /*** <<< INCLUDES [T2] >>> ***/ -#include +#include "T3.h" /*** <<< TYPE-DECLS [T2] >>> ***/ @@ -269,7 +269,7 @@ asn_TYPE_descriptor_t asn_DEF_T2 = { /*** <<< INCLUDES [T3] >>> ***/ -#include +#include "T4.h" /*** <<< TYPE-DECLS [T3] >>> ***/ @@ -400,7 +400,7 @@ asn_TYPE_descriptor_t asn_DEF_T3 = { /*** <<< INCLUDES [T4] >>> ***/ -#include +#include "T5.h" /*** <<< TYPE-DECLS [T4] >>> ***/ @@ -526,7 +526,7 @@ asn_TYPE_descriptor_t asn_DEF_T4 = { /*** <<< INCLUDES [T5] >>> ***/ -#include +#include "T6.h" /*** <<< TYPE-DECLS [T5] >>> ***/ @@ -775,7 +775,7 @@ asn_TYPE_descriptor_t asn_DEF_T6 = { /*** <<< INCLUDES [T] >>> ***/ -#include +#include "Ts.h" /*** <<< TYPE-DECLS [T] >>> ***/ @@ -901,8 +901,8 @@ asn_TYPE_descriptor_t asn_DEF_T = { /*** <<< INCLUDES [Ts] >>> ***/ -#include -#include +#include "T2.h" +#include "T3.h" #include /*** <<< TYPE-DECLS [Ts] >>> ***/ diff --git a/tests/66-ref-simple-OK.asn1.-P b/tests/66-ref-simple-OK.asn1.-P index 261a06a3..2eecf5e1 100644 --- a/tests/66-ref-simple-OK.asn1.-P +++ b/tests/66-ref-simple-OK.asn1.-P @@ -1,7 +1,7 @@ /*** <<< INCLUDES [T] >>> ***/ -#include +#include "SimpleType.h" #include #include diff --git a/tests/70-xer-test-OK.asn1.-P b/tests/70-xer-test-OK.asn1.-P index 0b1b4f2e..aa7e11e1 100644 --- a/tests/70-xer-test-OK.asn1.-P +++ b/tests/70-xer-test-OK.asn1.-P @@ -1,21 +1,21 @@ /*** <<< INCLUDES [PDU] >>> ***/ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "Sequence.h" +#include "Set.h" +#include "SequenceOf.h" +#include "ExtensibleSet.h" +#include "ExtensibleSequence.h" +#include "ExtensibleSequence2.h" +#include "SetOfNULL.h" +#include "SetOfREAL.h" +#include "SetOfEnums.h" +#include "NamedSetOfNULL.h" +#include "NamedSetOfREAL.h" +#include "NamedSetOfEnums.h" +#include "SeqOfZuka.h" +#include "SetOfChoice.h" +#include "NamedSetOfChoice.h" #include /*** <<< DEPS [PDU] >>> ***/ @@ -293,7 +293,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Sequence; /*** <<< POST-INCLUDE [Sequence] >>> ***/ -#include +#include "Sequence.h" /*** <<< STAT-DEFS [Sequence] >>> ***/ @@ -1694,7 +1694,7 @@ extern asn_TYPE_descriptor_t asn_DEF_SetOfChoice; /*** <<< POST-INCLUDE [SetOfChoice] >>> ***/ -#include +#include "SimpleChoice.h" /*** <<< STAT-DEFS [SetOfChoice] >>> ***/ @@ -1766,7 +1766,7 @@ extern asn_TYPE_descriptor_t asn_DEF_NamedSetOfChoice; /*** <<< POST-INCLUDE [NamedSetOfChoice] >>> ***/ -#include +#include "SimpleChoice.h" /*** <<< STAT-DEFS [NamedSetOfChoice] >>> ***/ diff --git a/tests/72-same-names-OK.asn1.-P b/tests/72-same-names-OK.asn1.-P index 38b1fe6d..43b78130 100644 --- a/tests/72-same-names-OK.asn1.-P +++ b/tests/72-same-names-OK.asn1.-P @@ -2,8 +2,8 @@ /*** <<< INCLUDES [Type] >>> ***/ #include -#include -#include +#include "Type1.h" +#include "Type2.h" #include #include diff --git a/tests/73-circular-OK.asn1.-P b/tests/73-circular-OK.asn1.-P index 3dc73a4e..1ab4dbf4 100644 --- a/tests/73-circular-OK.asn1.-P +++ b/tests/73-circular-OK.asn1.-P @@ -29,7 +29,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Type; /*** <<< POST-INCLUDE [Type] >>> ***/ -#include +#include "EpytRef.h" /*** <<< STAT-DEFS [Type] >>> ***/ @@ -130,7 +130,7 @@ asn_TYPE_descriptor_t asn_DEF_Type = { /*** <<< INCLUDES [EpytRef] >>> ***/ -#include +#include "Epyt.h" /*** <<< TYPE-DECLS [EpytRef] >>> ***/ @@ -285,8 +285,8 @@ extern asn_TYPE_descriptor_t asn_DEF_Epyt; /*** <<< POST-INCLUDE [Epyt] >>> ***/ -#include -#include +#include "Type.h" +#include "Ypet.h" /*** <<< STAT-DEFS [Epyt] >>> ***/ @@ -409,7 +409,7 @@ asn_TYPE_descriptor_t asn_DEF_Epyt = { #include #include -#include +#include "EnumType.h" #include #include #include @@ -460,7 +460,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Ypet; /*** <<< POST-INCLUDE [Ypet] >>> ***/ -#include +#include "Epyt.h" /*** <<< CTABLES [Ypet] >>> ***/ diff --git a/tests/84-param-tags-OK.asn1.-P b/tests/84-param-tags-OK.asn1.-P index 8f1dc3df..66749420 100644 --- a/tests/84-param-tags-OK.asn1.-P +++ b/tests/84-param-tags-OK.asn1.-P @@ -194,7 +194,7 @@ asn_TYPE_descriptor_t asn_DEF_TestType_16P1 = { /*** <<< INCLUDES [TestChoice] >>> ***/ -#include +#include "TestType.h" #include /*** <<< DEPS [TestChoice] >>> ***/ @@ -465,7 +465,7 @@ asn_TYPE_descriptor_t asn_DEF_AutoType_34P1 = { /*** <<< INCLUDES [AutoChoice] >>> ***/ -#include +#include "AutoType.h" #include /*** <<< DEPS [AutoChoice] >>> ***/ diff --git a/tests/92-circular-loops-OK.asn1.-P b/tests/92-circular-loops-OK.asn1.-P index c0f1ca51..5570aa5b 100644 --- a/tests/92-circular-loops-OK.asn1.-P +++ b/tests/92-circular-loops-OK.asn1.-P @@ -1,13 +1,13 @@ /*** <<< INCLUDES [Everything] >>> ***/ -#include -#include -#include -#include -#include -#include -#include +#include "Set.h" +#include "Alpha.h" +#include "Beta.h" +#include "Gamma.h" +#include "OneTwo.h" +#include "TwoThree.h" +#include "ThreeOne.h" #include /*** <<< FWD-DECLS [Everything] >>> ***/ @@ -40,9 +40,9 @@ extern asn_TYPE_descriptor_t asn_DEF_Everything; /*** <<< POST-INCLUDE [Everything] >>> ***/ -#include -#include -#include +#include "Choice1.h" +#include "Choice2.h" +#include "Choice3.h" /*** <<< STAT-DEFS [Everything] >>> ***/ @@ -227,7 +227,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Choice1; /*** <<< POST-INCLUDE [Choice1] >>> ***/ -#include +#include "Everything.h" /*** <<< STAT-DEFS [Choice1] >>> ***/ @@ -290,7 +290,7 @@ asn_TYPE_descriptor_t asn_DEF_Choice1 = { /*** <<< INCLUDES [Choice2] >>> ***/ -#include +#include "TypeRef.h" #include /*** <<< DEPS [Choice2] >>> ***/ @@ -329,7 +329,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Choice2; /*** <<< POST-INCLUDE [Choice2] >>> ***/ -#include +#include "Everything.h" /*** <<< STAT-DEFS [Choice2] >>> ***/ @@ -441,8 +441,8 @@ extern asn_TYPE_descriptor_t asn_DEF_Choice3; /*** <<< POST-INCLUDE [Choice3] >>> ***/ -#include -#include +#include "Everything.h" +#include "Choice3.h" /*** <<< STAT-DEFS [Choice3] >>> ***/ @@ -650,8 +650,8 @@ extern asn_TYPE_descriptor_t asn_DEF_Set; /*** <<< POST-INCLUDE [Set] >>> ***/ -#include -#include +#include "Set.h" +#include "Sequence.h" /*** <<< STAT-DEFS [Set] >>> ***/ @@ -822,8 +822,8 @@ extern asn_TYPE_descriptor_t asn_DEF_Sequence; /*** <<< POST-INCLUDE [Sequence] >>> ***/ -#include -#include +#include "Sequence.h" +#include "Set.h" /*** <<< STAT-DEFS [Sequence] >>> ***/ @@ -910,7 +910,7 @@ asn_TYPE_descriptor_t asn_DEF_Sequence = { /*** <<< INCLUDES [TypeRef] >>> ***/ -#include +#include "Sequence.h" /*** <<< TYPE-DECLS [TypeRef] >>> ***/ @@ -1061,7 +1061,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Alpha; /*** <<< POST-INCLUDE [Alpha] >>> ***/ -#include +#include "Beta.h" /*** <<< STAT-DEFS [Alpha] >>> ***/ @@ -1203,8 +1203,8 @@ extern asn_TYPE_descriptor_t asn_DEF_Beta; /*** <<< POST-INCLUDE [Beta] >>> ***/ -#include -#include +#include "Alpha.h" +#include "Gamma.h" /*** <<< STAT-DEFS [Beta] >>> ***/ @@ -1296,9 +1296,9 @@ extern asn_TYPE_descriptor_t asn_DEF_Gamma; /*** <<< POST-INCLUDE [Gamma] >>> ***/ -#include -#include -#include +#include "TwoThree.h" +#include "Alpha.h" +#include "Beta.h" /*** <<< STAT-DEFS [Gamma] >>> ***/ @@ -1410,7 +1410,7 @@ extern asn_TYPE_descriptor_t asn_DEF_OneTwo; /*** <<< POST-INCLUDE [OneTwo] >>> ***/ -#include +#include "TwoThree.h" /*** <<< STAT-DEFS [OneTwo] >>> ***/ @@ -1507,7 +1507,7 @@ extern asn_TYPE_descriptor_t asn_DEF_TwoThree; /*** <<< POST-INCLUDE [TwoThree] >>> ***/ -#include +#include "ThreeOne.h" /*** <<< STAT-DEFS [TwoThree] >>> ***/ @@ -1607,8 +1607,8 @@ extern asn_TYPE_descriptor_t asn_DEF_ThreeOne; /*** <<< POST-INCLUDE [ThreeOne] >>> ***/ -#include -#include +#include "OneTwo.h" +#include "Gamma.h" /*** <<< STAT-DEFS [ThreeOne] >>> ***/ diff --git a/tests/92-circular-loops-OK.asn1.-Pfindirect-choice b/tests/92-circular-loops-OK.asn1.-Pfindirect-choice index 526ed930..9c9170bc 100644 --- a/tests/92-circular-loops-OK.asn1.-Pfindirect-choice +++ b/tests/92-circular-loops-OK.asn1.-Pfindirect-choice @@ -1,13 +1,13 @@ /*** <<< INCLUDES [Everything] >>> ***/ -#include -#include -#include -#include -#include -#include -#include +#include "Set.h" +#include "Alpha.h" +#include "Beta.h" +#include "Gamma.h" +#include "OneTwo.h" +#include "TwoThree.h" +#include "ThreeOne.h" #include /*** <<< FWD-DECLS [Everything] >>> ***/ @@ -40,9 +40,9 @@ extern asn_TYPE_descriptor_t asn_DEF_Everything; /*** <<< POST-INCLUDE [Everything] >>> ***/ -#include -#include -#include +#include "Choice1.h" +#include "Choice2.h" +#include "Choice3.h" /*** <<< STAT-DEFS [Everything] >>> ***/ @@ -227,7 +227,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Choice1; /*** <<< POST-INCLUDE [Choice1] >>> ***/ -#include +#include "Everything.h" /*** <<< STAT-DEFS [Choice1] >>> ***/ @@ -329,8 +329,8 @@ extern asn_TYPE_descriptor_t asn_DEF_Choice2; /*** <<< POST-INCLUDE [Choice2] >>> ***/ -#include -#include +#include "TypeRef.h" +#include "Everything.h" /*** <<< STAT-DEFS [Choice2] >>> ***/ @@ -442,8 +442,8 @@ extern asn_TYPE_descriptor_t asn_DEF_Choice3; /*** <<< POST-INCLUDE [Choice3] >>> ***/ -#include -#include +#include "Everything.h" +#include "Choice3.h" /*** <<< STAT-DEFS [Choice3] >>> ***/ @@ -651,8 +651,8 @@ extern asn_TYPE_descriptor_t asn_DEF_Set; /*** <<< POST-INCLUDE [Set] >>> ***/ -#include -#include +#include "Set.h" +#include "Sequence.h" /*** <<< STAT-DEFS [Set] >>> ***/ @@ -823,8 +823,8 @@ extern asn_TYPE_descriptor_t asn_DEF_Sequence; /*** <<< POST-INCLUDE [Sequence] >>> ***/ -#include -#include +#include "Sequence.h" +#include "Set.h" /*** <<< STAT-DEFS [Sequence] >>> ***/ @@ -911,7 +911,7 @@ asn_TYPE_descriptor_t asn_DEF_Sequence = { /*** <<< INCLUDES [TypeRef] >>> ***/ -#include +#include "Sequence.h" /*** <<< TYPE-DECLS [TypeRef] >>> ***/ @@ -1062,7 +1062,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Alpha; /*** <<< POST-INCLUDE [Alpha] >>> ***/ -#include +#include "Beta.h" /*** <<< STAT-DEFS [Alpha] >>> ***/ @@ -1204,8 +1204,8 @@ extern asn_TYPE_descriptor_t asn_DEF_Beta; /*** <<< POST-INCLUDE [Beta] >>> ***/ -#include -#include +#include "Alpha.h" +#include "Gamma.h" /*** <<< STAT-DEFS [Beta] >>> ***/ @@ -1297,9 +1297,9 @@ extern asn_TYPE_descriptor_t asn_DEF_Gamma; /*** <<< POST-INCLUDE [Gamma] >>> ***/ -#include -#include -#include +#include "TwoThree.h" +#include "Alpha.h" +#include "Beta.h" /*** <<< STAT-DEFS [Gamma] >>> ***/ @@ -1411,7 +1411,7 @@ extern asn_TYPE_descriptor_t asn_DEF_OneTwo; /*** <<< POST-INCLUDE [OneTwo] >>> ***/ -#include +#include "TwoThree.h" /*** <<< STAT-DEFS [OneTwo] >>> ***/ @@ -1508,7 +1508,7 @@ extern asn_TYPE_descriptor_t asn_DEF_TwoThree; /*** <<< POST-INCLUDE [TwoThree] >>> ***/ -#include +#include "ThreeOne.h" /*** <<< STAT-DEFS [TwoThree] >>> ***/ @@ -1608,8 +1608,8 @@ extern asn_TYPE_descriptor_t asn_DEF_ThreeOne; /*** <<< POST-INCLUDE [ThreeOne] >>> ***/ -#include -#include +#include "OneTwo.h" +#include "Gamma.h" /*** <<< STAT-DEFS [ThreeOne] >>> ***/ diff --git a/tests/93-asn1c-controls-OK.asn1.-P b/tests/93-asn1c-controls-OK.asn1.-P index c86f6cc2..d778a7b6 100644 --- a/tests/93-asn1c-controls-OK.asn1.-P +++ b/tests/93-asn1c-controls-OK.asn1.-P @@ -83,7 +83,7 @@ asn_TYPE_descriptor_t asn_DEF_Sequence = { /*** <<< INCLUDES [Set] >>> ***/ -#include +#include "Sequence.h" #include /*** <<< DEPS [Set] >>> ***/ @@ -121,7 +121,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Set; /*** <<< POST-INCLUDE [Set] >>> ***/ -#include +#include "Sequence.h" /*** <<< STAT-DEFS [Set] >>> ***/ @@ -193,7 +193,7 @@ asn_TYPE_descriptor_t asn_DEF_Set = { /*** <<< INCLUDES [Choice] >>> ***/ -#include +#include "Sequence.h" #include #include #include @@ -237,7 +237,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Choice; /*** <<< POST-INCLUDE [Choice] >>> ***/ -#include +#include "Sequence.h" /*** <<< STAT-DEFS [Choice] >>> ***/