Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
8bde6475
Commit
8bde6475
authored
Feb 25, 2005
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed comma and added enumeration map
parent
4756e5e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
tests/66-ref-simple-OK.asn1.-P
tests/66-ref-simple-OK.asn1.-P
+23
-3
No files found.
tests/66-ref-simple-OK.asn1.-P
View file @
8bde6475
...
...
@@ -70,7 +70,7 @@ asn_TYPE_descriptor_t asn_DEF_T = {
typedef enum SimpleType {
SimpleType_one = 0,
SimpleType_two = 1,
SimpleType_three = 2
,
SimpleType_three = 2
} SimpleType_e;
/*** <<< TYPE-DECLS [SimpleType] >>> ***/
...
...
@@ -163,6 +163,26 @@ 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 }
};
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[] = {
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
...
...
@@ -183,7 +203,7 @@ asn_TYPE_descriptor_t asn_DEF_SimpleType = {
asn_DEF_SimpleType_tags, /* Same as above */
sizeof(asn_DEF_SimpleType_tags)
/sizeof(asn_DEF_SimpleType_tags[0]), /* 1 */
0, 0, /*
No members
*/
0 /* No specifi
cs */
0, 0, /*
Defined elsewhere
*/
&asn_DEF_SimpleType_specs /* Additional spe
cs */
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment