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
8bde6475
Commit
8bde6475
authored
20 years ago
by
Lev Walkin
Browse files
Options
Downloads
Patches
Plain Diff
removed comma and added enumeration map
parent
4756e5e7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/66-ref-simple-OK.asn1.-P
+23
-3
23 additions, 3 deletions
tests/66-ref-simple-OK.asn1.-P
with
23 additions
and
3 deletions
tests/66-ref-simple-OK.asn1.-P
+
23
−
3
View file @
8bde6475
...
@@ -70,7 +70,7 @@ asn_TYPE_descriptor_t asn_DEF_T = {
...
@@ -70,7 +70,7 @@ asn_TYPE_descriptor_t asn_DEF_T = {
typedef enum SimpleType {
typedef enum SimpleType {
SimpleType_one = 0,
SimpleType_one = 0,
SimpleType_two = 1,
SimpleType_two = 1,
SimpleType_three = 2
,
SimpleType_three = 2
} SimpleType_e;
} SimpleType_e;
/*** <<< TYPE-DECLS [SimpleType] >>> ***/
/*** <<< TYPE-DECLS [SimpleType] >>> ***/
...
@@ -163,6 +163,26 @@ SimpleType_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
...
@@ -163,6 +163,26 @@ SimpleType_encode_xer(asn_TYPE_descriptor_t *td, void *structure,
/*** <<< STAT-DEFS [SimpleType] >>> ***/
/*** <<< 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 }
};
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 */
3, /* Number of elements in the maps */
0 /* Enumeration is not extensible */
};
static ber_tlv_tag_t asn_DEF_SimpleType_tags[] = {
static ber_tlv_tag_t asn_DEF_SimpleType_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
};
...
@@ -183,7 +203,7 @@ asn_TYPE_descriptor_t asn_DEF_SimpleType = {
...
@@ -183,7 +203,7 @@ asn_TYPE_descriptor_t asn_DEF_SimpleType = {
asn_DEF_SimpleType_tags, /* Same as above */
asn_DEF_SimpleType_tags, /* Same as above */
sizeof(asn_DEF_SimpleType_tags)
sizeof(asn_DEF_SimpleType_tags)
/sizeof(asn_DEF_SimpleType_tags[0]), /* 1 */
/sizeof(asn_DEF_SimpleType_tags[0]), /* 1 */
0, 0, /*
No memb
er
s
*/
0, 0, /*
Defined elsewh
er
e
*/
0 /* No specifi
cs */
&asn_DEF_SimpleType_specs /* Additional spe
cs */
};
};
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