mirror of https://gerrit.osmocom.org/asn1c
dtd for bit string
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1270 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
parent
7d39839fed
commit
0840962a08
|
@ -849,6 +849,8 @@ asn1print_expr_dtd(asn1p_t *asn, asn1p_module_t *mod, asn1p_expr_t *expr, enum a
|
|||
|
||||
if(TQ_FIRST(&expr->members)) {
|
||||
int extensible = 0;
|
||||
if(expr->expr_type == ASN_BASIC_BIT_STRING)
|
||||
dont_involve_children = 1;
|
||||
printf(" (");
|
||||
TQ_FOR(se, &(expr->members), next) {
|
||||
if(se->expr_type == A1TC_EXTENSIBLE) {
|
||||
|
@ -870,6 +872,8 @@ asn1print_expr_dtd(asn1p_t *asn, asn1p_module_t *mod, asn1p_expr_t *expr, enum a
|
|||
printf("*");
|
||||
else if(se->marker.flags)
|
||||
printf("?");
|
||||
else if(expr->expr_type == ASN_BASIC_BIT_STRING)
|
||||
printf("?");
|
||||
}
|
||||
if(TQ_NEXT(se, next)
|
||||
&& TQ_NEXT(se, next)->expr_type != A1TC_EXTENSIBLE) {
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<!-- XML DTD generated by asn1c-0.9.22 -->
|
||||
|
||||
<!-- ASN.1 module
|
||||
ModuleBitStringConstraint { iso org(3) dod(6) internet(1) private(4)
|
||||
enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 125 }
|
||||
found in ../tests/125-bitstring-constraint-OK.asn1 -->
|
||||
|
||||
<!ELEMENT T (flag1?, flag2?, flag3?)>
|
Loading…
Reference in New Issue