diff options
author | Lev Walkin <vlm@lionet.info> | 2006-10-09 12:07:58 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2006-10-09 12:07:58 +0000 |
commit | 725883b28d721de80752cfb08be1f862fca32360 (patch) | |
tree | beb220b84af6cfba1f1afebcd478d682ac1f41b3 /tests/95-choice-per-order-OK.asn1.-Pgen-PER | |
parent | 7cbbc906470b7a53d8ae226d81275cb3d2b24045 (diff) |
more PER support
Diffstat (limited to 'tests/95-choice-per-order-OK.asn1.-Pgen-PER')
-rw-r--r-- | tests/95-choice-per-order-OK.asn1.-Pgen-PER | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/tests/95-choice-per-order-OK.asn1.-Pgen-PER b/tests/95-choice-per-order-OK.asn1.-Pgen-PER index 2256b5b7..b5429769 100644 --- a/tests/95-choice-per-order-OK.asn1.-Pgen-PER +++ b/tests/95-choice-per-order-OK.asn1.-Pgen-PER @@ -56,6 +56,19 @@ typedef struct Choice { extern asn_TYPE_descriptor_t asn_DEF_Choice; +/*** <<< CTDEFS [Choice] >>> ***/ + +static asn_per_constraints_t asn_PER_ch_constr_4 = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; +static asn_per_constraints_t asn_PER_Choice_constr_1 = { + { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; + /*** <<< STAT-DEFS [Choice] >>> ***/ static asn_TYPE_member_t asn_MBR_ch_4[] = { @@ -93,10 +106,6 @@ static asn_CHOICE_specifics_t asn_SPC_ch_specs_4 = { .canonical_order = asn_MAP_ch_cmap_4, /* Canonically sorted */ .ext_start = -1 /* Extensions start */ }; -static asn_per_constraints_t asn_PER_ch_constr_4 = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 } -}; static /* Use -fall-defs-global to expose */ asn_TYPE_descriptor_t asn_DEF_ch_4 = { "ch", @@ -121,10 +130,6 @@ asn_TYPE_descriptor_t asn_DEF_ch_4 = { &asn_SPC_ch_specs_4 /* Additional specs */ }; -static asn_per_constraints_t asn_PER_memb_ch_constr_4 = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 } -}; static asn_TYPE_member_t asn_MBR_Choice_1[] = { { ATF_NOFLAGS, 0, offsetof(struct Choice, choice.roid), .tag = (ASN_TAG_CLASS_UNIVERSAL | (13 << 2)), @@ -149,7 +154,7 @@ static asn_TYPE_member_t asn_MBR_Choice_1[] = { .tag_mode = 0, .type = &asn_DEF_ch_4, .memb_constraints = 0, /* Defer constraints checking to the member type */ - .per_constraints = &asn_PER_memb_ch_constr_4, + .per_constraints = &asn_PER_ch_constr_4, .default_value = 0, .name = "ch" }, @@ -181,10 +186,6 @@ static asn_CHOICE_specifics_t asn_SPC_Choice_specs_1 = { .canonical_order = asn_MAP_Choice_cmap_1, /* Canonically sorted */ .ext_start = 3 /* Extensions start */ }; -static asn_per_constraints_t asn_PER_Choice_constr_1 = { - { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 2 } /* (0..2,...) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 } -}; asn_TYPE_descriptor_t asn_DEF_Choice = { "Choice", "Choice", @@ -240,6 +241,14 @@ typedef struct Choice2 { extern asn_TYPE_descriptor_t asn_DEF_Choice2; +/*** <<< CTDEFS [Choice2] >>> ***/ + +static asn_per_constraints_t asn_PER_Choice2_constr_1 = { + { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, + { APC_UNCONSTRAINED, -1, -1, 0, 0 }, + 0, 0 /* No PER value map */ +}; + /*** <<< STAT-DEFS [Choice2] >>> ***/ static asn_TYPE_member_t asn_MBR_Choice2_1[] = { @@ -276,10 +285,6 @@ static asn_CHOICE_specifics_t asn_SPC_Choice2_specs_1 = { .canonical_order = 0, .ext_start = -1 /* Extensions start */ }; -static asn_per_constraints_t asn_PER_Choice2_constr_1 = { - { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */, - { APC_UNCONSTRAINED, -1, -1, 0, 0 } -}; asn_TYPE_descriptor_t asn_DEF_Choice2 = { "Choice2", "Choice2", |