strict enumeration support

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@704 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2005-02-25 11:47:59 +00:00
parent 56a1f3e7ad
commit c018f36c49
3 changed files with 8 additions and 4 deletions

View File

@ -683,7 +683,8 @@ static asn_INTEGER_specifics_t asn_DEF_accept_as_specs = {
asn_MAP_accept_as_value2enum, /* "tag" => N; sorted by tag */
asn_MAP_accept_as_enum2value, /* N => "tag"; sorted by N */
3, /* Number of elements in the maps */
1 /* Enumeration is extensible */
1, /* Enumeration is extensible */
1 /* Strict enumeration */
};
static ber_tlv_tag_t asn_DEF_accept_as_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))

View File

@ -177,7 +177,8 @@ static asn_INTEGER_specifics_t asn_DEF_SimpleType_specs = {
asn_MAP_SimpleType_value2enum, /* "tag" => N; sorted by tag */
asn_MAP_SimpleType_enum2value, /* N => "tag"; sorted by N */
3, /* Number of elements in the maps */
0 /* Enumeration is not extensible */
0, /* Enumeration is not extensible */
1 /* Strict enumeration */
};
static ber_tlv_tag_t asn_DEF_SimpleType_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))

View File

@ -763,7 +763,8 @@ static asn_INTEGER_specifics_t asn_DEF_SetOfEnums_Member_specs = {
asn_MAP_SetOfEnums_Member_value2enum, /* "tag" => N; sorted by tag */
asn_MAP_SetOfEnums_Member_enum2value, /* N => "tag"; sorted by N */
2, /* Number of elements in the maps */
0 /* Enumeration is not extensible */
0, /* Enumeration is not extensible */
1 /* Strict enumeration */
};
static ber_tlv_tag_t asn_DEF_SetOfEnums_Member_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
@ -946,7 +947,8 @@ static asn_INTEGER_specifics_t asn_DEF_id_specs = {
asn_MAP_id_value2enum, /* "tag" => N; sorted by tag */
asn_MAP_id_enum2value, /* N => "tag"; sorted by N */
2, /* Number of elements in the maps */
1 /* Enumeration is extensible */
1, /* Enumeration is extensible */
0
};
static ber_tlv_tag_t asn_DEF_id_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (2 << 2))