Skip to content
Snippets Groups Projects
Commit fbaeb852 authored by Lev Walkin's avatar Lev Walkin
Browse files

dtd for bit string

parent 217f2403
No related branches found
No related tags found
No related merge requests found
...@@ -849,6 +849,8 @@ asn1print_expr_dtd(asn1p_t *asn, asn1p_module_t *mod, asn1p_expr_t *expr, enum a ...@@ -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)) { if(TQ_FIRST(&expr->members)) {
int extensible = 0; int extensible = 0;
if(expr->expr_type == ASN_BASIC_BIT_STRING)
dont_involve_children = 1;
printf(" ("); printf(" (");
TQ_FOR(se, &(expr->members), next) { TQ_FOR(se, &(expr->members), next) {
if(se->expr_type == A1TC_EXTENSIBLE) { 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 ...@@ -870,6 +872,8 @@ asn1print_expr_dtd(asn1p_t *asn, asn1p_module_t *mod, asn1p_expr_t *expr, enum a
printf("*"); printf("*");
else if(se->marker.flags) else if(se->marker.flags)
printf("?"); printf("?");
else if(expr->expr_type == ASN_BASIC_BIT_STRING)
printf("?");
} }
if(TQ_NEXT(se, next) if(TQ_NEXT(se, next)
&& TQ_NEXT(se, next)->expr_type != A1TC_EXTENSIBLE) { && TQ_NEXT(se, next)->expr_type != A1TC_EXTENSIBLE) {
......
<!-- 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?)>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment