aboutsummaryrefslogtreecommitdiffstats
path: root/tests/42-real-life-OK.asn1.-PR
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/42-real-life-OK.asn1.-PR
parentc7312e9599969642354c7eb926322eea416190ea (diff)
less space
Diffstat (limited to 'tests/42-real-life-OK.asn1.-PR')
-rw-r--r--tests/42-real-life-OK.asn1.-PR24
1 files changed, 10 insertions, 14 deletions
diff --git a/tests/42-real-life-OK.asn1.-PR b/tests/42-real-life-OK.asn1.-PR
index 891c0d12..5d0ef294 100644
--- a/tests/42-real-life-OK.asn1.-PR
+++ b/tests/42-real-life-OK.asn1.-PR
@@ -667,25 +667,21 @@ accept_as_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [ActionItem] >>> ***/
-static asn_INTEGER_enum_map_t asn_MAP_accept_as_enum2value[] = {
- { "safe", 1 },
- { "unknown", 0 },
- { "unsafe", 2 }
+static asn_INTEGER_enum_map_t asn_MAP_accept_as_value2enum[] = {
+ { 0, 7, "unknown" },
+ { 1, 4, "safe" },
+ { 2, 6, "unsafe" }
/* This list is extensible */
};
-static asn_INTEGER_enum_map_t asn_MAP_accept_as_value2enum[] = {
- { "unknown", 0 },
- { "safe", 1 },
- { "unsafe", 2 }
+static unsigned int asn_MAP_accept_as_enum2value[] = {
+ 1, /* safe(1) */
+ 0, /* unknown(0) */
+ 2 /* unsafe(2) */
/* This list is extensible */
};
static asn_INTEGER_specifics_t asn_DEF_accept_as_specs = {
- /* Two name<->value maps sorted differently;
- * this may seem like a waste of space,
- * but the strings actually share it.
- */
- asn_MAP_accept_as_enum2value, /* "tag" => N; sorted by tag */
- asn_MAP_accept_as_value2enum, /* N => "tag"; sorted by N */
+ 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 */
};