Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asn1c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
qwebaby3
asn1c
Commits
9f30ef19
Commit
9f30ef19
authored
20 years ago
by
Lev Walkin
Browse files
Options
Downloads
Patches
Plain Diff
less space
parent
c7312e95
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/42-real-life-OK.asn1.-PR
+10
-14
10 additions, 14 deletions
tests/42-real-life-OK.asn1.-PR
tests/66-ref-simple-OK.asn1.-P
+10
-14
10 additions, 14 deletions
tests/66-ref-simple-OK.asn1.-P
tests/70-xer-test-OK.asn1.-P
+16
-24
16 additions, 24 deletions
tests/70-xer-test-OK.asn1.-P
with
36 additions
and
52 deletions
tests/42-real-life-OK.asn1.-PR
+
10
−
14
View file @
9f30ef19
...
...
@@ -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_
enum2
value[] = {
{
"safe", 1
},
{
"unknown", 0
},
{ "unsafe"
, 2
}
static asn_INTEGER_enum_map_t asn_MAP_accept_as_value
2enum
[] = {
{
0, 7, "unknown"
},
{
1, 4, "safe"
},
{
2, 6,
"unsafe" }
/* This list is extensible */
};
static
asn_INTEGER_enum_map_
t asn_MAP_accept_as_value
2enum
[] = {
{ "unknown", 0 },
{ "safe", 1 },
{ "
unsafe
", 2 }
static
unsigned in
t asn_MAP_accept_as_
enum2
value[] = {
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 */
};
...
...
This diff is collapsed.
Click to expand it.
tests/66-ref-simple-OK.asn1.-P
+
10
−
14
View file @
9f30ef19
...
...
@@ -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 */
};
...
...
This diff is collapsed.
Click to expand it.
tests/70-xer-test-OK.asn1.-P
+
16
−
24
View file @
9f30ef19
...
...
@@ -751,21 +751,17 @@ SetOfEnums_Member_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [SetOfEnums] >>> ***/
static asn_INTEGER_enum_map_t asn_MAP_SetOfEnums_Member_enum2value[] = {
{ "one", 0 },
{ "oneMore", 1 }
};
static asn_INTEGER_enum_map_t asn_MAP_SetOfEnums_Member_value2enum[] = {
{ "one", 0 },
{ "oneMore", 1 }
{ 0, 3, "one" },
{ 1, 7, "oneMore" }
};
static unsigned int asn_MAP_SetOfEnums_Member_enum2value[] = {
0, /* one(0) */
1 /* oneMore(1) */
};
static asn_INTEGER_specifics_t asn_DEF_SetOfEnums_Member_specs = {
/* Two name<->value maps sorted differently;
* this may seem like a waste of space,
* but the strings actually share it.
*/
asn_MAP_SetOfEnums_Member_enum2value, /* "tag" => N; sorted by tag */
asn_MAP_SetOfEnums_Member_value2enum, /* N => "tag"; sorted by N */
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 */
};
...
...
@@ -936,23 +932,19 @@ id_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [SequenceOf] >>> ***/
static asn_INTEGER_enum_map_t asn_MAP_id_
enum2
value[] = {
{ "one"
, 1
},
{ "two"
, 2
}
static asn_INTEGER_enum_map_t asn_MAP_id_value
2enum
[] = {
{
1, 3,
"one" },
{
2, 3,
"two" }
/* This list is extensible */
};
static
asn_INTEGER_enum_map_
t asn_MAP_id_value
2enum
[] = {
{ "one", 1 },
{ "two", 2 }
static
unsigned in
t asn_MAP_id_
enum2
value[] = {
0, /* one(1) */
1 /* two(2) */
/* This list is extensible */
};
static asn_INTEGER_specifics_t asn_DEF_id_specs = {
/* Two name<->value maps sorted differently;
* this may seem like a waste of space,
* but the strings actually share it.
*/
asn_MAP_id_enum2value, /* "tag" => N; sorted by tag */
asn_MAP_id_value2enum, /* N => "tag"; sorted by N */
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 */
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment