Commit e8318b8d authored by Lev Walkin's avatar Lev Walkin

fixed name clash in constraint checking code; also changed braces to double quote in #includes

parent 4b24d483
0.9.12: 2005-Mar-05
* Fixed a name clash in produced constraint checking code.
* #includes are now in single quotes (to solve a specific problem
on certain case-insensitive file systems (Win32).
0.9.11: 2005-Mar-04
* Released -fcompound-names to fix the name clashes in the code
......
......@@ -253,7 +253,7 @@ asn1c_save_streams(arg_t *arg, asn1c_fdeps_t *deps) {
header_id);
fprintf(fp_c, "#include <asn_internal.h>\n\n");
fprintf(fp_c, "#include <%s.h>\n\n", expr->Identifier); /* Myself */
fprintf(fp_c, "#include \"%s.h\"\n\n", expr->Identifier);
if(arg->flags & A1C_NO_INCLUDE_DEPS)
SAVE_STREAM(fp_c, OT_POST_INCLUDE, "", 1);
TQ_FOR(ot, &(cs->destination[OT_CTABLES].chunks), next)
......
......@@ -442,15 +442,6 @@ asn1f_apply_unique_index(arg_t *arg) {
static int unique_index;
if(!arg) { unique_index = 0; return 0; }
switch(arg->expr->expr_type) {
case ASN_BASIC_ENUMERATED:
break;
default:
if(arg->expr->expr_type & ASN_CONSTR_MASK)
break;
return 0;
}
arg->expr->_type_unique_index = ++unique_index;
return 0;
......
......@@ -278,7 +278,7 @@ extern asn_TYPE_descriptor_t asn_DEF_RelativeDistinguishedName;
/*** <<< CTABLES [RelativeDistinguishedName] >>> ***/
static int permitted_alphabet_table_0[256] = {
static int permitted_alphabet_table_2[256] = {
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* */
0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0, /* ,-. */
......@@ -289,8 +289,8 @@ static int permitted_alphabet_table_0[256] = {
1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0, /* pqrstuvwxyz */
};
static int check_permitted_alphabet_0(const void *sptr) {
int *table = permitted_alphabet_table_0;
static int check_permitted_alphabet_2(const void *sptr) {
int *table = permitted_alphabet_table_2;
/* The underlying type is IA5String */
const IA5String_t *st = (const IA5String_t *)sptr;
const uint8_t *ch = st->buf;
......@@ -319,7 +319,7 @@ memb_IA5String_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
}
if(!check_permitted_alphabet_0(st)) {
if(!check_permitted_alphabet_2(st)) {
/* Constraint check succeeded */
return 0;
} else {
......
......@@ -271,7 +271,7 @@ asn_TYPE_descriptor_t asn_DEF_trees_2 = {
&asn_SPC_trees_2_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_Member_4[] = {
static asn_TYPE_member_t asn_MBR_Member_5[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Member, cup_of_coffee),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag_mode = 0,
......@@ -280,22 +280,22 @@ static asn_TYPE_member_t asn_MBR_Member_4[] = {
.name = "cup-of-coffee"
},
};
static ber_tlv_tag_t asn_DEF_Member_4_tags[] = {
static ber_tlv_tag_t asn_DEF_Member_5_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_Member_4_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_Member_5_tag2el[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* cup-of-coffee at 32 */
};
static asn_SEQUENCE_specifics_t asn_SPC_Member_4_specs = {
static asn_SEQUENCE_specifics_t asn_SPC_Member_5_specs = {
sizeof(struct Member),
offsetof(struct Member, _asn_ctx),
asn_MAP_Member_4_tag2el,
asn_MAP_Member_5_tag2el,
1, /* Count of tags in the map */
0, /* Start extensions */
2 /* Stop extensions */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_Member_4 = {
asn_TYPE_descriptor_t asn_DEF_Member_5 = {
"",
"",
SEQUENCE_free,
......@@ -306,37 +306,37 @@ asn_TYPE_descriptor_t asn_DEF_Member_4 = {
SEQUENCE_decode_xer,
SEQUENCE_encode_xer,
0, /* Use generic outmost tag fetcher */
asn_DEF_Member_4_tags,
sizeof(asn_DEF_Member_4_tags)
/sizeof(asn_DEF_Member_4_tags[0]), /* 1 */
asn_DEF_Member_4_tags, /* Same as above */
sizeof(asn_DEF_Member_4_tags)
/sizeof(asn_DEF_Member_4_tags[0]), /* 1 */
asn_MBR_Member_4,
asn_DEF_Member_5_tags,
sizeof(asn_DEF_Member_5_tags)
/sizeof(asn_DEF_Member_5_tags[0]), /* 1 */
asn_DEF_Member_5_tags, /* Same as above */
sizeof(asn_DEF_Member_5_tags)
/sizeof(asn_DEF_Member_5_tags[0]), /* 1 */
asn_MBR_Member_5,
1, /* Elements count */
&asn_SPC_Member_4_specs /* Additional specs */
&asn_SPC_Member_5_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_anything_3[] = {
static asn_TYPE_member_t asn_MBR_anything_4[] = {
{ ATF_NOFLAGS, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.type = (void *)&asn_DEF_Member_4,
.type = (void *)&asn_DEF_Member_5,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = ""
},
};
static ber_tlv_tag_t asn_DEF_anything_3_tags[] = {
static ber_tlv_tag_t asn_DEF_anything_4_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_anything_3_specs = {
static asn_SET_OF_specifics_t asn_SPC_anything_4_specs = {
sizeof(struct anything),
offsetof(struct anything, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_anything_3 = {
asn_TYPE_descriptor_t asn_DEF_anything_4 = {
"anything",
"anything",
SET_OF_free,
......@@ -347,18 +347,18 @@ asn_TYPE_descriptor_t asn_DEF_anything_3 = {
SET_OF_decode_xer,
SET_OF_encode_xer,
0, /* Use generic outmost tag fetcher */
asn_DEF_anything_3_tags,
sizeof(asn_DEF_anything_3_tags)
/sizeof(asn_DEF_anything_3_tags[0]) - 1, /* 1 */
asn_DEF_anything_3_tags, /* Same as above */
sizeof(asn_DEF_anything_3_tags)
/sizeof(asn_DEF_anything_3_tags[0]), /* 2 */
asn_MBR_anything_3,
asn_DEF_anything_4_tags,
sizeof(asn_DEF_anything_4_tags)
/sizeof(asn_DEF_anything_4_tags[0]) - 1, /* 1 */
asn_DEF_anything_4_tags, /* Same as above */
sizeof(asn_DEF_anything_4_tags)
/sizeof(asn_DEF_anything_4_tags[0]), /* 2 */
asn_MBR_anything_4,
1, /* Single element */
&asn_SPC_anything_3_specs /* Additional specs */
&asn_SPC_anything_4_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_other_5[] = {
static asn_TYPE_member_t asn_MBR_other_9[] = {
{ ATF_NOFLAGS, 0, offsetof(struct other, choice.a),
.tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
......@@ -374,21 +374,21 @@ static asn_TYPE_member_t asn_MBR_other_5[] = {
.name = "b"
},
};
static asn_TYPE_tag2member_t asn_MAP_other_5_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_other_9_tag2el[] = {
{ (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* a at 26 */
{ (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 1, 0, 0 } /* b at 28 */
};
static asn_CHOICE_specifics_t asn_SPC_other_5_specs = {
static asn_CHOICE_specifics_t asn_SPC_other_9_specs = {
sizeof(struct other),
offsetof(struct other, _asn_ctx),
offsetof(struct other, present),
sizeof(((struct other *)0)->present),
asn_MAP_other_5_tag2el,
asn_MAP_other_9_tag2el,
2, /* Count of tags in the map */
0 /* Whether extensible */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_other_5 = {
asn_TYPE_descriptor_t asn_DEF_other_9 = {
"other",
"other",
CHOICE_free,
......@@ -403,9 +403,9 @@ asn_TYPE_descriptor_t asn_DEF_other_5 = {
0, /* No effective tags (count) */
0, /* No tags (pointer) */
0, /* No tags (count) */
asn_MBR_other_5,
asn_MBR_other_9,
2, /* Elements count */
&asn_SPC_other_5_specs /* Additional specs */
&asn_SPC_other_9_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_Stuff_1[] = {
......@@ -419,14 +419,14 @@ static asn_TYPE_member_t asn_MBR_Stuff_1[] = {
{ ATF_POINTER, 2, offsetof(struct Stuff, anything),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = (void *)&asn_DEF_anything_3,
.type = (void *)&asn_DEF_anything_4,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "anything"
},
{ ATF_POINTER, 0, offsetof(struct Stuff, other),
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag_mode = 0,
.type = (void *)&asn_DEF_other_5,
.type = (void *)&asn_DEF_other_9,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "other"
},
......
......@@ -35,7 +35,7 @@ extern asn_TYPE_descriptor_t asn_DEF_T;
/*** <<< STAT-DEFS [T] >>> ***/
static asn_TYPE_member_t asn_MBR_collection_2[] = {
static asn_TYPE_member_t asn_MBR_collection_3[] = {
{ ATF_NOFLAGS, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
......@@ -44,16 +44,16 @@ static asn_TYPE_member_t asn_MBR_collection_2[] = {
.name = ""
},
};
static ber_tlv_tag_t asn_DEF_collection_2_tags[] = {
static ber_tlv_tag_t asn_DEF_collection_3_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_collection_2_specs = {
static asn_SET_OF_specifics_t asn_SPC_collection_3_specs = {
sizeof(struct collection),
offsetof(struct collection, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_collection_2 = {
asn_TYPE_descriptor_t asn_DEF_collection_3 = {
"collection",
"collection",
SEQUENCE_OF_free,
......@@ -64,15 +64,15 @@ asn_TYPE_descriptor_t asn_DEF_collection_2 = {
SEQUENCE_OF_decode_xer,
SEQUENCE_OF_encode_xer,
0, /* Use generic outmost tag fetcher */
asn_DEF_collection_2_tags,
sizeof(asn_DEF_collection_2_tags)
/sizeof(asn_DEF_collection_2_tags[0]), /* 1 */
asn_DEF_collection_2_tags, /* Same as above */
sizeof(asn_DEF_collection_2_tags)
/sizeof(asn_DEF_collection_2_tags[0]), /* 1 */
asn_MBR_collection_2,
asn_DEF_collection_3_tags,
sizeof(asn_DEF_collection_3_tags)
/sizeof(asn_DEF_collection_3_tags[0]), /* 1 */
asn_DEF_collection_3_tags, /* Same as above */
sizeof(asn_DEF_collection_3_tags)
/sizeof(asn_DEF_collection_3_tags[0]), /* 1 */
asn_MBR_collection_3,
1, /* Single element */
&asn_SPC_collection_2_specs /* Additional specs */
&asn_SPC_collection_3_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_T_1[] = {
......@@ -86,7 +86,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T, collection),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.type = (void *)&asn_DEF_collection_2,
.type = (void *)&asn_DEF_collection_3,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "collection"
},
......
......@@ -71,7 +71,7 @@ memb_varsets_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
/*** <<< STAT-DEFS [LogLine] >>> ***/
static asn_TYPE_member_t asn_MBR_varsets_2[] = {
static asn_TYPE_member_t asn_MBR_varsets_3[] = {
{ ATF_NOFLAGS, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
......@@ -80,16 +80,16 @@ static asn_TYPE_member_t asn_MBR_varsets_2[] = {
.name = ""
},
};
static ber_tlv_tag_t asn_DEF_varsets_2_tags[] = {
static ber_tlv_tag_t asn_DEF_varsets_3_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_varsets_2_specs = {
static asn_SET_OF_specifics_t asn_SPC_varsets_3_specs = {
sizeof(struct varsets),
offsetof(struct varsets, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_varsets_2 = {
asn_TYPE_descriptor_t asn_DEF_varsets_3 = {
"varsets",
"varsets",
SEQUENCE_OF_free,
......@@ -100,15 +100,15 @@ asn_TYPE_descriptor_t asn_DEF_varsets_2 = {
SEQUENCE_OF_decode_xer,
SEQUENCE_OF_encode_xer,
0, /* Use generic outmost tag fetcher */
asn_DEF_varsets_2_tags,
sizeof(asn_DEF_varsets_2_tags)
/sizeof(asn_DEF_varsets_2_tags[0]), /* 1 */
asn_DEF_varsets_2_tags, /* Same as above */
sizeof(asn_DEF_varsets_2_tags)
/sizeof(asn_DEF_varsets_2_tags[0]), /* 1 */
asn_MBR_varsets_2,
asn_DEF_varsets_3_tags,
sizeof(asn_DEF_varsets_3_tags)
/sizeof(asn_DEF_varsets_3_tags[0]), /* 1 */
asn_DEF_varsets_3_tags, /* Same as above */
sizeof(asn_DEF_varsets_3_tags)
/sizeof(asn_DEF_varsets_3_tags[0]), /* 1 */
asn_MBR_varsets_3,
1, /* Single element */
&asn_SPC_varsets_2_specs /* Additional specs */
&asn_SPC_varsets_3_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_LogLine_1[] = {
......@@ -122,7 +122,7 @@ static asn_TYPE_member_t asn_MBR_LogLine_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct LogLine, varsets),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.type = (void *)&asn_DEF_varsets_2,
.type = (void *)&asn_DEF_varsets_3,
.memb_constraints = memb_varsets_1_constraint,
.name = "varsets"
},
......@@ -448,7 +448,7 @@ asn_TYPE_descriptor_t asn_DEF_vset_2 = {
&asn_SPC_vset_2_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_vrange_3[] = {
static asn_TYPE_member_t asn_MBR_vrange_4[] = {
{ ATF_NOFLAGS, 0, offsetof(struct vrange, from),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag_mode = 0,
......@@ -464,23 +464,23 @@ static asn_TYPE_member_t asn_MBR_vrange_3[] = {
.name = "to"
},
};
static ber_tlv_tag_t asn_DEF_vrange_3_tags[] = {
static ber_tlv_tag_t asn_DEF_vrange_4_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_vrange_3_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_vrange_4_tag2el[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, 0, 1 }, /* from at 45 */
{ (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 1, -1, 0 } /* to at 46 */
};
static asn_SEQUENCE_specifics_t asn_SPC_vrange_3_specs = {
static asn_SEQUENCE_specifics_t asn_SPC_vrange_4_specs = {
sizeof(struct vrange),
offsetof(struct vrange, _asn_ctx),
asn_MAP_vrange_3_tag2el,
asn_MAP_vrange_4_tag2el,
2, /* Count of tags in the map */
1, /* Start extensions */
3 /* Stop extensions */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_vrange_3 = {
asn_TYPE_descriptor_t asn_DEF_vrange_4 = {
"vrange",
"vrange",
SEQUENCE_free,
......@@ -491,15 +491,15 @@ asn_TYPE_descriptor_t asn_DEF_vrange_3 = {
SEQUENCE_decode_xer,
SEQUENCE_encode_xer,
0, /* Use generic outmost tag fetcher */
asn_DEF_vrange_3_tags,
sizeof(asn_DEF_vrange_3_tags)
/sizeof(asn_DEF_vrange_3_tags[0]), /* 1 */
asn_DEF_vrange_3_tags, /* Same as above */
sizeof(asn_DEF_vrange_3_tags)
/sizeof(asn_DEF_vrange_3_tags[0]), /* 1 */
asn_MBR_vrange_3,
asn_DEF_vrange_4_tags,
sizeof(asn_DEF_vrange_4_tags)
/sizeof(asn_DEF_vrange_4_tags[0]), /* 1 */
asn_DEF_vrange_4_tags, /* Same as above */
sizeof(asn_DEF_vrange_4_tags)
/sizeof(asn_DEF_vrange_4_tags[0]), /* 1 */
asn_MBR_vrange_4,
2, /* Elements count */
&asn_SPC_vrange_3_specs /* Additional specs */
&asn_SPC_vrange_4_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_VariablePart_1[] = {
......@@ -513,7 +513,7 @@ static asn_TYPE_member_t asn_MBR_VariablePart_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vrange),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.type = (void *)&asn_DEF_vrange_3,
.type = (void *)&asn_DEF_vrange_4,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "vrange"
},
......@@ -724,7 +724,7 @@ asn_TYPE_descriptor_t asn_DEF_accept_as_2 = {
&asn_SPC_accept_as_2_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_email_4[] = {
static asn_TYPE_member_t asn_MBR_email_9[] = {
{ ATF_NOFLAGS, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)),
.tag_mode = 0,
......@@ -733,16 +733,16 @@ static asn_TYPE_member_t asn_MBR_email_4[] = {
.name = ""
},
};
static ber_tlv_tag_t asn_DEF_email_4_tags[] = {
static ber_tlv_tag_t asn_DEF_email_9_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_email_4_specs = {
static asn_SET_OF_specifics_t asn_SPC_email_9_specs = {
sizeof(struct email),
offsetof(struct email, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_email_4 = {
asn_TYPE_descriptor_t asn_DEF_email_9 = {
"email",
"email",
SET_OF_free,
......@@ -753,18 +753,18 @@ asn_TYPE_descriptor_t asn_DEF_email_4 = {
SET_OF_decode_xer,
SET_OF_encode_xer,
0, /* Use generic outmost tag fetcher */
asn_DEF_email_4_tags,
sizeof(asn_DEF_email_4_tags)
/sizeof(asn_DEF_email_4_tags[0]), /* 1 */
asn_DEF_email_4_tags, /* Same as above */
sizeof(asn_DEF_email_4_tags)
/sizeof(asn_DEF_email_4_tags[0]), /* 1 */
asn_MBR_email_4,
asn_DEF_email_9_tags,
sizeof(asn_DEF_email_9_tags)
/sizeof(asn_DEF_email_9_tags[0]), /* 1 */
asn_DEF_email_9_tags, /* Same as above */
sizeof(asn_DEF_email_9_tags)
/sizeof(asn_DEF_email_9_tags[0]), /* 1 */
asn_MBR_email_9,
1, /* Single element */
&asn_SPC_email_4_specs /* Additional specs */
&asn_SPC_email_9_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_notify_3[] = {
static asn_TYPE_member_t asn_MBR_notify_7[] = {
{ ATF_NOFLAGS, 0, offsetof(struct notify, critical),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)),
.tag_mode = 0,
......@@ -775,28 +775,28 @@ static asn_TYPE_member_t asn_MBR_notify_3[] = {
{ ATF_NOFLAGS, 0, offsetof(struct notify, email),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.type = (void *)&asn_DEF_email_4,
.type = (void *)&asn_DEF_email_9,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "email"
},
};
static ber_tlv_tag_t asn_DEF_notify_3_tags[] = {
static ber_tlv_tag_t asn_DEF_notify_7_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_notify_3_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_notify_7_tag2el[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* critical at 61 */
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* email at 62 */
};
static asn_SEQUENCE_specifics_t asn_SPC_notify_3_specs = {
static asn_SEQUENCE_specifics_t asn_SPC_notify_7_specs = {
sizeof(struct notify),
offsetof(struct notify, _asn_ctx),
asn_MAP_notify_3_tag2el,
asn_MAP_notify_7_tag2el,
2, /* Count of tags in the map */
1, /* Start extensions */
3 /* Stop extensions */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_notify_3 = {
asn_TYPE_descriptor_t asn_DEF_notify_7 = {
"notify",
"notify",
SEQUENCE_free,
......@@ -807,15 +807,15 @@ asn_TYPE_descriptor_t asn_DEF_notify_3 = {
SEQUENCE_decode_xer,
SEQUENCE_encode_xer,
0, /* Use generic outmost tag fetcher */
asn_DEF_notify_3_tags,
sizeof(asn_DEF_notify_3_tags)
/sizeof(asn_DEF_notify_3_tags[0]), /* 1 */
asn_DEF_notify_3_tags, /* Same as above */
sizeof(asn_DEF_notify_3_tags)
/sizeof(asn_DEF_notify_3_tags[0]), /* 1 */
asn_MBR_notify_3,
asn_DEF_notify_7_tags,
sizeof(asn_DEF_notify_7_tags)
/sizeof(asn_DEF_notify_7_tags[0]), /* 1 */
asn_DEF_notify_7_tags, /* Same as above */
sizeof(asn_DEF_notify_7_tags)
/sizeof(asn_DEF_notify_7_tags[0]), /* 1 */
asn_MBR_notify_7,
2, /* Elements count */
&asn_SPC_notify_3_specs /* Additional specs */
&asn_SPC_notify_7_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_ActionItem_1[] = {
......@@ -829,7 +829,7 @@ static asn_TYPE_member_t asn_MBR_ActionItem_1[] = {
{ ATF_POINTER, 1, offsetof(struct ActionItem, notify),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.type = (void *)&asn_DEF_notify_3,
.type = (void *)&asn_DEF_notify_7,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "notify"
},
......
......@@ -84,7 +84,7 @@ asn_TYPE_descriptor_t asn_DEF_t_member1_2 = {
&asn_SPC_t_member1_2_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_t_member2_3[] = {
static asn_TYPE_member_t asn_MBR_t_member2_4[] = {
{ ATF_NOFLAGS, 0, 0,
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
......@@ -93,16 +93,16 @@ static asn_TYPE_member_t asn_MBR_t_member2_3[] = {
.name = ""
},
};
static ber_tlv_tag_t asn_DEF_t_member2_3_tags[] = {
static ber_tlv_tag_t asn_DEF_t_member2_4_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_t_member2_3_specs = {
static asn_SET_OF_specifics_t asn_SPC_t_member2_4_specs = {
sizeof(struct t_member2),
offsetof(struct t_member2, _asn_ctx),
0, /* XER encoding is XMLDelimitedItemList */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_t_member2_3 = {
asn_TYPE_descriptor_t asn_DEF_t_member2_4 = {
"t-member2",
"t-member2",
SEQUENCE_OF_free,
......@@ -113,15 +113,15 @@ asn_TYPE_descriptor_t asn_DEF_t_member2_3 = {
SEQUENCE_OF_decode_xer,
SEQUENCE_OF_encode_xer,
0, /* Use generic outmost tag fetcher */
asn_DEF_t_member2_3_tags,
sizeof(asn_DEF_t_member2_3_tags)
/sizeof(asn_DEF_t_member2_3_tags[0]), /* 1 */
asn_DEF_t_member2_3_tags, /* Same as above */
sizeof(asn_DEF_t_member2_3_tags)
/sizeof(asn_DEF_t_member2_3_tags[0]), /* 1 */
asn_MBR_t_member2_3,
asn_DEF_t_member2_4_tags,
sizeof(asn_DEF_t_member2_4_tags)
/sizeof(asn_DEF_t_member2_4_tags[0]), /* 1 */
asn_DEF_t_member2_4_tags, /* Same as above */
sizeof(asn_DEF_t_member2_4_tags)
/sizeof(asn_DEF_t_member2_4_tags[0]), /* 1 */
asn_MBR_t_member2_4,
1, /* Single element */
&asn_SPC_t_member2_3_specs /* Additional specs */
&asn_SPC_t_member2_4_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_Test_structure_1_1[] = {
......@@ -135,7 +135,7 @@ static asn_TYPE_member_t asn_MBR_Test_structure_1_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Test_structure_1, t_member2),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.type = (void *)&asn_DEF_t_member2_3,
.type = (void *)&asn_DEF_t_member2_4,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "t-member2"
},
......@@ -246,7 +246,7 @@ extern asn_TYPE_descriptor_t asn_DEF_Choice_1;
/*** <<< STAT-DEFS [Choice-1] >>> ***/
static asn_TYPE_member_t asn_MBR_or_2[] = {
static asn_TYPE_member_t asn_MBR_or_3[] = {
{ ATF_NOFLAGS, 0, 0,
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag_mode = 0,
......@@ -255,17 +255,17 @@ static asn_TYPE_member_t asn_MBR_or_2[] = {
.name = ""
},
};
static ber_tlv_tag_t asn_DEF_or_2_tags[] = {
static ber_tlv_tag_t asn_DEF_or_3_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (2 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_SET_OF_specifics_t asn_SPC_or_2_specs = {
static asn_SET_OF_specifics_t asn_SPC_or_3_specs = {
sizeof(struct or),
offsetof(struct or, _asn_ctx),
1, /* XER encoding is XMLValueList */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_or_2 = {
asn_TYPE_descriptor_t asn_DEF_or_3 = {
"or",
"or",
SET_OF_free,
......@@ -276,15 +276,15 @@ asn_TYPE_descriptor_t asn_DEF_or_2 = {
SET_OF_decode_xer,
SET_OF_encode_xer,
0, /* Use generic outmost tag fetcher */
asn_DEF_or_2_tags,
sizeof(asn_DEF_or_2_tags)
/sizeof(asn_DEF_or_2_tags[0]) - 1, /* 1 */
asn_DEF_or_2_tags, /* Same as above */
sizeof(asn_DEF_or_2_tags)
/sizeof(asn_DEF_or_2_tags[0]), /* 2 */
asn_MBR_or_2,
asn_DEF_or_3_tags,
sizeof(asn_DEF_or_3_tags)
/sizeof(asn_DEF_or_3_tags[0]) - 1, /* 1 */
asn_DEF_or_3_tags, /* Same as above */
sizeof(asn_DEF_or_3_tags)
/sizeof(asn_DEF_or_3_tags[0]), /* 2 */
asn_MBR_or_3,
1, /* Single element */
&asn_SPC_or_2_specs /* Additional specs */
&asn_SPC_or_3_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_Choice_1_1[] = {
......@@ -298,7 +298,7 @@ static asn_TYPE_member_t asn_MBR_Choice_1_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Choice_1, choice.or),
.tag = (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
.type = (void *)&asn_DEF_or_2,
.type = (void *)&asn_DEF_or_3,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "or"
},
......
......@@ -70,7 +70,7 @@ extern asn_TYPE_descriptor_t asn_DEF_T;
/*** <<< STAT-DEFS [T] >>> ***/
static asn_TYPE_member_t asn_MBR_e_3[] = {
static asn_TYPE_member_t asn_MBR_e_6[] = {
{ ATF_NOFLAGS, 0, offsetof(struct e, choice.f),
.tag = (ASN_TAG_CLASS_PRIVATE | (7 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
......@@ -86,21 +86,21 @@ static asn_TYPE_member_t asn_MBR_e_3[] = {
.name = "g"
},
};
static asn_TYPE_tag2member_t asn_MAP_e_3_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_e_6_tag2el[] = {
{ (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 0, 0, 0 }, /* f at 20 */
{ (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 1, 0, 0 } /* g at 21 */
};
static asn_CHOICE_specifics_t asn_SPC_e_3_specs = {
static asn_CHOICE_specifics_t asn_SPC_e_6_specs = {
sizeof(struct e),
offsetof(struct e, _asn_ctx),
offsetof(struct e, present),
sizeof(((struct e *)0)->present),
asn_MAP_e_3_tag2el,
asn_MAP_e_6_tag2el,
2, /* Count of tags in the map */
0 /* Whether extensible */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_e_3 = {
asn_TYPE_descriptor_t asn_DEF_e_6 = {
"e",
"e",
CHOICE_free,
......@@ -115,12 +115,12 @@ asn_TYPE_descriptor_t asn_DEF_e_3 = {
0, /* No effective tags (count) */
0, /* No tags (pointer) */
0, /* No tags (count) */
asn_MBR_e_3,
asn_MBR_e_6,
2, /* Elements count */
&asn_SPC_e_3_specs /* Additional specs */
&asn_SPC_e_6_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_h_4[] = {
static asn_TYPE_member_t asn_MBR_h_9[] = {
{ ATF_NOFLAGS, 0, offsetof(struct h, choice.i),
.tag = (ASN_TAG_CLASS_PRIVATE | (1 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
......@@ -136,21 +136,21 @@ static asn_TYPE_member_t asn_MBR_h_4[] = {
.name = "j"
},
};
static asn_TYPE_tag2member_t asn_MAP_h_4_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_h_9_tag2el[] = {
{ (ASN_TAG_CLASS_PRIVATE | (1 << 2)), 0, 0, 0 }, /* i at 24 */
{ (ASN_TAG_CLASS_PRIVATE | (2 << 2)), 1, 0, 0 } /* j at 25 */
};
static asn_CHOICE_specifics_t asn_SPC_h_4_specs = {
static asn_CHOICE_specifics_t asn_SPC_h_9_specs = {
sizeof(struct h),
offsetof(struct h, _asn_ctx),
offsetof(struct h, present),
sizeof(((struct h *)0)->present),
asn_MAP_h_4_tag2el,
asn_MAP_h_9_tag2el,
2, /* Count of tags in the map */
0 /* Whether extensible */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_h_4 = {
asn_TYPE_descriptor_t asn_DEF_h_9 = {
"h",
"h",
CHOICE_free,
......@@ -165,12 +165,12 @@ asn_TYPE_descriptor_t asn_DEF_h_4 = {
0, /* No effective tags (count) */
0, /* No tags (pointer) */
0, /* No tags (count) */
asn_MBR_h_4,
asn_MBR_h_9,
2, /* Elements count */
&asn_SPC_h_4_specs /* Additional specs */
&asn_SPC_h_9_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_b_2[] = {
static asn_TYPE_member_t asn_MBR_b_3[] = {
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.c),
.tag = (ASN_TAG_CLASS_PRIVATE | (5 << 2)),
.tag_mode = -1, /* IMPLICIT tag at current level */
......@@ -188,36 +188,36 @@ static asn_TYPE_member_t asn_MBR_b_2[] = {
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.e),
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag_mode = 0,
.type = (void *)&asn_DEF_e_3,
.type = (void *)&asn_DEF_e_6,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "e"
},
{ ATF_NOFLAGS, 0, offsetof(struct b, choice.h),
.tag = (ASN_TAG_CLASS_PRIVATE | (9 << 2)),
.tag_mode = +1, /* EXPLICIT tag at current level */
.type = (void *)&asn_DEF_h_4,
.type = (void *)&asn_DEF_h_9,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "h"
},
};
static asn_TYPE_tag2member_t asn_MAP_b_2_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_b_3_tag2el[] = {
{ (ASN_TAG_CLASS_PRIVATE | (5 << 2)), 0, 0, 0 }, /* c at 17 */
{ (ASN_TAG_CLASS_PRIVATE | (6 << 2)), 1, 0, 0 }, /* d at 18 */
{ (ASN_TAG_CLASS_PRIVATE | (7 << 2)), 2, 0, 0 }, /* f at 20 */
{ (ASN_TAG_CLASS_PRIVATE | (8 << 2)), 2, 0, 0 }, /* g at 21 */
{ (ASN_TAG_CLASS_PRIVATE | (9 << 2)), 3, 0, 0 } /* h at 24 */
};
static asn_CHOICE_specifics_t asn_SPC_b_2_specs = {
static asn_CHOICE_specifics_t asn_SPC_b_3_specs = {
sizeof(struct b),
offsetof(struct b, _asn_ctx),
offsetof(struct b, present),
sizeof(((struct b *)0)->present),
asn_MAP_b_2_tag2el,
asn_MAP_b_3_tag2el,
5, /* Count of tags in the map */
0 /* Whether extensible */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_b_2 = {
asn_TYPE_descriptor_t asn_DEF_b_3 = {
"b",
"b",
CHOICE_free,
......@@ -232,9 +232,9 @@ asn_TYPE_descriptor_t asn_DEF_b_2 = {
0, /* No effective tags (count) */
0, /* No tags (pointer) */
0, /* No tags (count) */
asn_MBR_b_2,
asn_MBR_b_3,
4, /* Elements count */
&asn_SPC_b_2_specs /* Additional specs */
&asn_SPC_b_3_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_T_1[] = {
......@@ -248,7 +248,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T, b),
.tag = -1 /* Ambiguous tag (CHOICE?) */,
.tag_mode = 0,
.type = (void *)&asn_DEF_b_2,
.type = (void *)&asn_DEF_b_3,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "b"
},
......
......@@ -33,7 +33,7 @@ PrimitiveType_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
*/
static void
PrimitiveType_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
PrimitiveType_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_OCTET_STRING.free_struct;
td->print_struct = asn_DEF_OCTET_STRING.print_struct;
td->ber_decoder = asn_DEF_OCTET_STRING.ber_decoder;
......@@ -48,21 +48,21 @@ PrimitiveType_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
PrimitiveType_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
PrimitiveType_0_inherit_TYPE_descriptor(td);
PrimitiveType_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
PrimitiveType_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
PrimitiveType_0_inherit_TYPE_descriptor(td);
PrimitiveType_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
PrimitiveType_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
PrimitiveType_0_inherit_TYPE_descriptor(td);
PrimitiveType_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
......@@ -70,14 +70,14 @@ asn_enc_rval_t
PrimitiveType_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
PrimitiveType_0_inherit_TYPE_descriptor(td);
PrimitiveType_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
PrimitiveType_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
PrimitiveType_0_inherit_TYPE_descriptor(td);
PrimitiveType_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
......@@ -85,14 +85,14 @@ asn_enc_rval_t
PrimitiveType_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
PrimitiveType_0_inherit_TYPE_descriptor(td);
PrimitiveType_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
/*** <<< STAT-DEFS [PrimitiveType] >>> ***/
static ber_tlv_tag_t asn_DEF_PrimitiveType_0_tags[] = {
static ber_tlv_tag_t asn_DEF_PrimitiveType_1_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (4 << 2))
};
asn_TYPE_descriptor_t asn_DEF_PrimitiveType = {
......@@ -106,12 +106,12 @@ asn_TYPE_descriptor_t asn_DEF_PrimitiveType = {
PrimitiveType_decode_xer,
PrimitiveType_encode_xer,
0, /* Use generic outmost tag fetcher */
asn_DEF_PrimitiveType_0_tags,
sizeof(asn_DEF_PrimitiveType_0_tags)
/sizeof(asn_DEF_PrimitiveType_0_tags[0]), /* 1 */
asn_DEF_PrimitiveType_0_tags, /* Same as above */
sizeof(asn_DEF_PrimitiveType_0_tags)
/sizeof(asn_DEF_PrimitiveType_0_tags[0]), /* 1 */
asn_DEF_PrimitiveType_1_tags,
sizeof(asn_DEF_PrimitiveType_1_tags)
/sizeof(asn_DEF_PrimitiveType_1_tags[0]), /* 1 */
asn_DEF_PrimitiveType_1_tags, /* Same as above */
sizeof(asn_DEF_PrimitiveType_1_tags)
/sizeof(asn_DEF_PrimitiveType_1_tags[0]), /* 1 */
0, 0, /* No members */
0 /* No specifics */
};
......@@ -217,7 +217,7 @@ T_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
* so here we adjust the DEF accordingly.
*/
static void
T_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
T_1_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
td->free_struct = asn_DEF_ConstructedType.free_struct;
td->print_struct = asn_DEF_ConstructedType.print_struct;
td->ber_decoder = asn_DEF_ConstructedType.ber_decoder;
......@@ -232,21 +232,21 @@ T_0_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) {
void
T_free(asn_TYPE_descriptor_t *td,
void *struct_ptr, int contents_only) {
T_0_inherit_TYPE_descriptor(td);
T_1_inherit_TYPE_descriptor(td);
td->free_struct(td, struct_ptr, contents_only);
}
int
T_print(asn_TYPE_descriptor_t *td, const void *struct_ptr,
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) {
T_0_inherit_TYPE_descriptor(td);
T_1_inherit_TYPE_descriptor(td);
return td->print_struct(td, struct_ptr, ilevel, cb, app_key);
}
asn_dec_rval_t
T_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, void *bufptr, size_t size, int tag_mode) {
T_0_inherit_TYPE_descriptor(td);
T_1_inherit_TYPE_descriptor(td);
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode);
}
......@@ -254,14 +254,14 @@ asn_enc_rval_t
T_encode_der(asn_TYPE_descriptor_t *td,
void *structure, int tag_mode, ber_tlv_tag_t tag,
asn_app_consume_bytes_f *cb, void *app_key) {
T_0_inherit_TYPE_descriptor(td);
T_1_inherit_TYPE_descriptor(td);
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key);
}
asn_dec_rval_t
T_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
void **structure, const char *opt_mname, void *bufptr, size_t size) {
T_0_inherit_TYPE_descriptor(td);
T_1_inherit_TYPE_descriptor(td);
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size);
}
......@@ -269,14 +269,14 @@ asn_enc_rval_t
T_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
int ilevel, enum xer_encoder_flags_e flags,
asn_app_consume_bytes_f *cb, void *app_key) {
T_0_inherit_TYPE_descriptor(td);
T_1_inherit_TYPE_descriptor(td);
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key);
}
/*** <<< STAT-DEFS [T] >>> ***/
static ber_tlv_tag_t asn_DEF_T_0_tags[] = {
static ber_tlv_tag_t asn_DEF_T_1_tags[] = {
(ASN_TAG_CLASS_CONTEXT | (3 << 2)),
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
......@@ -291,12 +291,12 @@ asn_TYPE_descriptor_t asn_DEF_T = {
T_decode_xer,
T_encode_xer,
0, /* Use generic outmost tag fetcher */
asn_DEF_T_0_tags,
sizeof(asn_DEF_T_0_tags)
/sizeof(asn_DEF_T_0_tags[0]) - 1, /* 1 */
asn_DEF_T_0_tags, /* Same as above */
sizeof(asn_DEF_T_0_tags)
/sizeof(asn_DEF_T_0_tags[0]), /* 2 */
asn_DEF_T_1_tags,
sizeof(asn_DEF_T_1_tags)
/sizeof(asn_DEF_T_1_tags[0]) - 1, /* 1 */
asn_DEF_T_1_tags, /* Same as above */
sizeof(asn_DEF_T_1_tags)
/sizeof(asn_DEF_T_1_tags[0]), /* 2 */
0, 0, /* Defined elsewhere */
0 /* No specifics */
};
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -75,27 +75,27 @@ memb_char_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
/*** <<< STAT-DEFS [T] >>> ***/
static ber_tlv_tag_t asn_DEF_class_2_tags[] = {
static ber_tlv_tag_t asn_DEF_class_4_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_class_2_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_class_4_tag2el[] = {
};
static uint8_t asn_MAP_class_2_mmap[(0 + (8 * sizeof(unsigned int)) - 1) / 8] = {
static uint8_t asn_MAP_class_4_mmap[(0 + (8 * sizeof(unsigned int)) - 1) / 8] = {
0
};
static asn_SET_specifics_t asn_SPC_class_2_specs = {
static asn_SET_specifics_t asn_SPC_class_4_specs = {
sizeof(struct Class),
offsetof(struct Class, _asn_ctx),
offsetof(struct Class, _presence_map),
asn_MAP_class_2_tag2el,
asn_MAP_class_4_tag2el,
0, /* Count of tags in the map */
asn_MAP_class_2_tag2el, /* Same as above */
asn_MAP_class_4_tag2el, /* Same as above */
0, /* Count of tags in the CXER map */
1, /* Whether extensible */
(unsigned int *)asn_MAP_class_2_mmap /* Mandatory elements map */
(unsigned int *)asn_MAP_class_4_mmap /* Mandatory elements map */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_class_2 = {
asn_TYPE_descriptor_t asn_DEF_class_4 = {
"class",
"class",
SET_free,
......@@ -106,14 +106,14 @@ asn_TYPE_descriptor_t asn_DEF_class_2 = {
SET_decode_xer,
SET_encode_xer,
0, /* Use generic outmost tag fetcher */
asn_DEF_class_2_tags,
sizeof(asn_DEF_class_2_tags)
/sizeof(asn_DEF_class_2_tags[0]), /* 1 */
asn_DEF_class_2_tags, /* Same as above */
sizeof(asn_DEF_class_2_tags)
/sizeof(asn_DEF_class_2_tags[0]), /* 1 */
asn_DEF_class_4_tags,
sizeof(asn_DEF_class_4_tags)
/sizeof(asn_DEF_class_4_tags[0]), /* 1 */
asn_DEF_class_4_tags, /* Same as above */
sizeof(asn_DEF_class_4_tags)
/sizeof(asn_DEF_class_4_tags[0]), /* 1 */
0, 0, /* No members */
&asn_SPC_class_2_specs /* Additional specs */
&asn_SPC_class_4_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_T_1[] = {
......@@ -134,7 +134,7 @@ static asn_TYPE_member_t asn_MBR_T_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct T, Class),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.type = (void *)&asn_DEF_class_2,
.type = (void *)&asn_DEF_class_4,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "class"
},
......
......@@ -407,7 +407,7 @@ memb_a_3_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
}
static int
memb_a_5_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
memb_a_8_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_consume_bytes_f *app_errlog, void *app_key) {
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
size_t size;
......@@ -540,12 +540,12 @@ asn_TYPE_descriptor_t asn_DEF_one_name_2 = {
&asn_SPC_one_name_2_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_another_name_5[] = {
static asn_TYPE_member_t asn_MBR_another_name_8[] = {
{ ATF_NOFLAGS, 0, offsetof(struct another_name, a),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)),
.tag_mode = 0,
.type = (void *)&asn_DEF_BIT_STRING,
.memb_constraints = memb_a_5_constraint,
.memb_constraints = memb_a_8_constraint,
.name = "a"
},
{ ATF_NOFLAGS, 0, offsetof(struct another_name, b),
......@@ -556,23 +556,23 @@ static asn_TYPE_member_t asn_MBR_another_name_5[] = {
.name = "b"
},
};
static ber_tlv_tag_t asn_DEF_another_name_5_tags[] = {
static ber_tlv_tag_t asn_DEF_another_name_8_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_another_name_5_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_another_name_8_tag2el[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 1, 0, 0 }, /* b at 42 */
{ (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 0, 0, 0 } /* a at 40 */
};
static asn_SEQUENCE_specifics_t asn_SPC_another_name_5_specs = {
static asn_SEQUENCE_specifics_t asn_SPC_another_name_8_specs = {
sizeof(struct another_name),
offsetof(struct another_name, _asn_ctx),
asn_MAP_another_name_5_tag2el,
asn_MAP_another_name_8_tag2el,
2, /* Count of tags in the map */
-1, /* Start extensions */
-1 /* Stop extensions */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_another_name_5 = {
asn_TYPE_descriptor_t asn_DEF_another_name_8 = {
"another-name",
"another-name",
SEQUENCE_free,
......@@ -583,48 +583,48 @@ asn_TYPE_descriptor_t asn_DEF_another_name_5 = {
SEQUENCE_decode_xer,
SEQUENCE_encode_xer,
0, /* Use generic outmost tag fetcher */
asn_DEF_another_name_5_tags,
sizeof(asn_DEF_another_name_5_tags)
/sizeof(asn_DEF_another_name_5_tags[0]), /* 1 */
asn_DEF_another_name_5_tags, /* Same as above */
sizeof(asn_DEF_another_name_5_tags)
/sizeof(asn_DEF_another_name_5_tags[0]), /* 1 */
asn_MBR_another_name_5,
asn_DEF_another_name_8_tags,
sizeof(asn_DEF_another_name_8_tags)
/sizeof(asn_DEF_another_name_8_tags[0]), /* 1 */
asn_DEF_another_name_8_tags, /* Same as above */
sizeof(asn_DEF_another_name_8_tags)
/sizeof(asn_DEF_another_name_8_tags[0]), /* 1 */
asn_MBR_another_name_8,
2, /* Elements count */
&asn_SPC_another_name_5_specs /* Additional specs */
&asn_SPC_another_name_8_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_two_name_4[] = {
static asn_TYPE_member_t asn_MBR_two_name_7[] = {
{ ATF_NOFLAGS, 0, offsetof(struct two_name, another_name),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
.tag_mode = 0,
.type = (void *)&asn_DEF_another_name_5,
.type = (void *)&asn_DEF_another_name_8,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "another-name"
},
};
static ber_tlv_tag_t asn_DEF_two_name_4_tags[] = {
static ber_tlv_tag_t asn_DEF_two_name_7_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_two_name_4_tag2el[] = {
static asn_TYPE_tag2member_t asn_MAP_two_name_7_tag2el[] = {
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* another-name at 40 */
};
static uint8_t asn_MAP_two_name_4_mmap[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
static uint8_t asn_MAP_two_name_7_mmap[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
(1 << 7)
};
static asn_SET_specifics_t asn_SPC_two_name_4_specs = {
static asn_SET_specifics_t asn_SPC_two_name_7_specs = {
sizeof(struct two_name),
offsetof(struct two_name, _asn_ctx),
offsetof(struct two_name, _presence_map),
asn_MAP_two_name_4_tag2el,
asn_MAP_two_name_7_tag2el,
1, /* Count of tags in the map */
asn_MAP_two_name_4_tag2el, /* Same as above */
asn_MAP_two_name_7_tag2el, /* Same as above */
1, /* Count of tags in the CXER map */
0, /* Whether extensible */
(unsigned int *)asn_MAP_two_name_4_mmap /* Mandatory elements map */
(unsigned int *)asn_MAP_two_name_7_mmap /* Mandatory elements map */
};
static /* Use -fall-defs-global to expose */
asn_TYPE_descriptor_t asn_DEF_two_name_4 = {
asn_TYPE_descriptor_t asn_DEF_two_name_7 = {
"two-name",
"two-name",
SET_free,
......@@ -635,15 +635,15 @@ asn_TYPE_descriptor_t asn_DEF_two_name_4 = {
SET_decode_xer,
SET_encode_xer,
0, /* Use generic outmost tag fetcher */
asn_DEF_two_name_4_tags,
sizeof(asn_DEF_two_name_4_tags)
/sizeof(asn_DEF_two_name_4_tags[0]), /* 1 */
asn_DEF_two_name_4_tags, /* Same as above */
sizeof(asn_DEF_two_name_4_tags)
/sizeof(asn_DEF_two_name_4_tags[0]), /* 1 */
asn_MBR_two_name_4,
asn_DEF_two_name_7_tags,
sizeof(asn_DEF_two_name_7_tags)
/sizeof(asn_DEF_two_name_7_tags[0]), /* 1 */
asn_DEF_two_name_7_tags, /* Same as above */
sizeof(asn_DEF_two_name_7_tags)
/sizeof(asn_DEF_two_name_7_tags[0]), /* 1 */
asn_MBR_two_name_7,
1, /* Elements count */
&asn_SPC_two_name_4_specs /* Additional specs */
&asn_SPC_two_name_7_specs /* Additional specs */
};
static asn_TYPE_member_t asn_MBR_Type2_1[] = {
......@@ -657,7 +657,7 @@ static asn_TYPE_member_t asn_MBR_Type2_1[] = {
{ ATF_NOFLAGS, 0, offsetof(struct Type2, choice.two_name),
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)),
.tag_mode = 0,
.type = (void *)&asn_DEF_two_name_4,
.type = (void *)&asn_DEF_two_name_7,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "two-name"
},
......
......@@ -26,7 +26,9 @@ BEGIN
Ypet ::= SET {
epyt Epyt,
plain INTEGER DEFAULT 7,
senums SET OF EnumType
senums SET OF EnumType,
patest1 [1] IA5String (FROM("A".."Z")),
patest2 [2] IA5String (FROM("a".."z"))
}
EnumType ::= ENUMERATED { one, two }
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment