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
b3ee6a65
Commit
b3ee6a65
authored
May 27, 2005
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
omitting the empty map
parent
4cca5092
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
83 additions
and
6 deletions
+83
-6
tests/32-sequence-of-OK.asn1.-P
tests/32-sequence-of-OK.asn1.-P
+2
-4
tests/60-any-OK.asn1
tests/60-any-OK.asn1
+5
-0
tests/60-any-OK.asn1.-EF
tests/60-any-OK.asn1.-EF
+5
-0
tests/60-any-OK.asn1.-P
tests/60-any-OK.asn1.-P
+71
-0
tests/69-reserved-words-OK.asn1.-P
tests/69-reserved-words-OK.asn1.-P
+0
-2
No files found.
tests/32-sequence-of-OK.asn1.-P
View file @
b3ee6a65
...
...
@@ -160,13 +160,11 @@ extern asn_TYPE_descriptor_t asn_DEF_Error;
static ber_tlv_tag_t asn_DEF_Error_1_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_Error_1_tag2el[] = {
};
static asn_SEQUENCE_specifics_t asn_SPC_Error_1_specs = {
sizeof(struct Error),
offsetof(struct Error, _asn_ctx),
asn_MAP_Error_1_tag2el,
0, /*
Count of
tags in the map */
0, /* No top level tags */
0, /*
No
tags in the map */
-1, /* Start extensions */
-1 /* Stop extensions */
};
...
...
tests/60-any-OK.asn1
View file @
b3ee6a65
...
...
@@ -21,4 +21,9 @@ BEGIN
any [0] ANY OPTIONAL
}
T3 ::= SEQUENCE {
any1 ANY,
any2 ANY
}
END
tests/60-any-OK.asn1.-EF
View file @
b3ee6a65
...
...
@@ -13,4 +13,9 @@ T2 ::= SEQUENCE {
any [0] EXPLICIT ANY OPTIONAL
}
T3 ::= SEQUENCE {
any1 ANY,
any2 ANY
}
END
tests/60-any-OK.asn1.-P
View file @
b3ee6a65
...
...
@@ -149,3 +149,74 @@ asn_TYPE_descriptor_t asn_DEF_T2 = {
&asn_SPC_T2_1_specs /* Additional specs */
};
/*** <<< INCLUDES [T3] >>> ***/
#include <ANY.h>
#include <constr_SEQUENCE.h>
/*** <<< TYPE-DECLS [T3] >>> ***/
typedef struct T3 {
ANY_t any1;
ANY_t any2;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} T3_t;
/*** <<< FUNC-DECLS [T3] >>> ***/
extern asn_TYPE_descriptor_t asn_DEF_T3;
/*** <<< STAT-DEFS [T3] >>> ***/
static asn_TYPE_member_t asn_MBR_T3_1[] = {
{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct T3, any1),
.tag = -1 /* Ambiguous tag (ANY?) */,
.tag_mode = 0,
.type = (void *)&asn_DEF_ANY,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "any1"
},
{ ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct T3, any2),
.tag = -1 /* Ambiguous tag (ANY?) */,
.tag_mode = 0,
.type = (void *)&asn_DEF_ANY,
.memb_constraints = 0, /* Defer constraints checking to the member type */
.name = "any2"
},
};
static ber_tlv_tag_t asn_DEF_T3_1_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
};
static asn_SEQUENCE_specifics_t asn_SPC_T3_1_specs = {
sizeof(struct T3),
offsetof(struct T3, _asn_ctx),
0, /* No top level tags */
0, /* No tags in the map */
-1, /* Start extensions */
-1 /* Stop extensions */
};
asn_TYPE_descriptor_t asn_DEF_T3 = {
"T3",
"T3",
SEQUENCE_free,
SEQUENCE_print,
SEQUENCE_constraint,
SEQUENCE_decode_ber,
SEQUENCE_encode_der,
SEQUENCE_decode_xer,
SEQUENCE_encode_xer,
0, /* Use generic outmost tag fetcher */
asn_DEF_T3_1_tags,
sizeof(asn_DEF_T3_1_tags)
/sizeof(asn_DEF_T3_1_tags[0]), /* 1 */
asn_DEF_T3_1_tags, /* Same as above */
sizeof(asn_DEF_T3_1_tags)
/sizeof(asn_DEF_T3_1_tags[0]), /* 1 */
asn_MBR_T3_1,
2, /* Elements count */
&asn_SPC_T3_1_specs /* Additional specs */
};
tests/69-reserved-words-OK.asn1.-P
View file @
b3ee6a65
...
...
@@ -78,8 +78,6 @@ memb_char_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
static ber_tlv_tag_t asn_DEF_class_4_tags[] = {
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
};
static asn_TYPE_tag2member_t asn_MAP_class_4_tag2el[] = {
};
static uint8_t asn_MAP_class_4_mmap[(0 + (8 * sizeof(unsigned int)) - 1) / 8] = {
0
};
...
...
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