aboutsummaryrefslogtreecommitdiffstats
path: root/tests/66-ref-simple-OK.asn1.-P
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2005-02-25 11:08:02 +0000
committerLev Walkin <vlm@lionet.info>2005-02-25 11:08:02 +0000
commit9f30ef19a22139d3e59c4f563b2434e55b58fa7d (patch)
tree8f3cc480a2cb6ee1662662dbf724a7280a25d2f8 /tests/66-ref-simple-OK.asn1.-P
parentc7312e9599969642354c7eb926322eea416190ea (diff)
less space
Diffstat (limited to 'tests/66-ref-simple-OK.asn1.-P')
-rw-r--r--tests/66-ref-simple-OK.asn1.-P24
1 files changed, 10 insertions, 14 deletions
diff --git a/tests/66-ref-simple-OK.asn1.-P b/tests/66-ref-simple-OK.asn1.-P
index 00b7bbf0..206e0449 100644
--- a/tests/66-ref-simple-OK.asn1.-P
+++ b/tests/66-ref-simple-OK.asn1.-P
@@ -163,23 +163,19 @@ SimpleType_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [SimpleType] >>> ***/
-static asn_INTEGER_enum_map_t asn_MAP_SimpleType_enum2value[] = {
- { "one", 0 },
- { "three", 2 },
- { "two", 1 }
-};
static asn_INTEGER_enum_map_t asn_MAP_SimpleType_value2enum[] = {
- { "one", 0 },
- { "two", 1 },
- { "three", 2 }
+ { 0, 3, "one" },
+ { 1, 3, "two" },
+ { 2, 5, "three" }
+};
+static unsigned int asn_MAP_SimpleType_enum2value[] = {
+ 0, /* one(0) */
+ 2, /* three(2) */
+ 1 /* two(1) */
};
static asn_INTEGER_specifics_t asn_DEF_SimpleType_specs = {
- /* Two name<->value maps sorted differently;
- * this may seem like a waste of space,
- * but the strings actually share it.
- */
- asn_MAP_SimpleType_enum2value, /* "tag" => N; sorted by tag */
- asn_MAP_SimpleType_value2enum, /* N => "tag"; sorted by N */
+ 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 */
};