Commit 5b7eeaff authored by Lev Walkin's avatar Lev Walkin

better wrapping

parent 5d32c21c
...@@ -126,9 +126,9 @@ asn1print_oid(int prior_len, asn1p_oid_t *oid, enum asn1print_flags flags) { ...@@ -126,9 +126,9 @@ asn1print_oid(int prior_len, asn1p_oid_t *oid, enum asn1print_flags flags) {
for(ac = 0; ac < oid->arcs_count; ac++) { for(ac = 0; ac < oid->arcs_count; ac++) {
const char *arcname = oid->arcs[ac].name; const char *arcname = oid->arcs[ac].name;
if(accum + strlen(arcname ? arcname : "") > 75) { if(accum + strlen(arcname ? arcname : "") > 72) {
printf("\n\t"); printf("\n\t");
accum = 0; accum = 8;
} else { } else {
accum += printf(" "); accum += printf(" ");
} }
......
ModuleTestInt1 { iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) ModuleTestInt1 { iso org(3) dod(6) internet(1) private(4) enterprise(1)
software(1) asn1c(5) test(1) 7 } spelio(9363) software(1) asn1c(5) test(1) 7 }
DEFINITIONS ::= DEFINITIONS ::=
BEGIN BEGIN
......
...@@ -32,8 +32,8 @@ Enumeration ::= ENUMERATED { ...@@ -32,8 +32,8 @@ Enumeration ::= ENUMERATED {
END END
HiddenModule { iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) HiddenModule { iso org(3) dod(6) internet(1) private(4) enterprise(1)
software(1) asn1c(5) test(1) 14 3 } spelio(9363) software(1) asn1c(5) test(1) 14 3 }
DEFINITIONS ::= DEFINITIONS ::=
BEGIN BEGIN
......
ModuleTestSequenceSimple { iso org(3) dod(6) internet(1) private(4) enterprise(1) ModuleTestSequenceSimple { iso org(3) dod(6) internet(1) private(4)
spelio(9363) software(1) asn1c(5) test(1) 32 } enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 32 }
DEFINITIONS IMPLICIT TAGS ::= DEFINITIONS IMPLICIT TAGS ::=
BEGIN BEGIN
......
ModuleTestComponentsOf { iso org(3) dod(6) internet(1) private(4) enterprise(1) ModuleTestComponentsOf { iso org(3) dod(6) internet(1) private(4)
spelio(9363) software(1) asn1c(5) test(1) 55 } enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 55 }
DEFINITIONS AUTOMATIC TAGS ::= DEFINITIONS AUTOMATIC TAGS ::=
BEGIN BEGIN
......
ModuleTestANY { iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) ModuleTestANY { iso org(3) dod(6) internet(1) private(4) enterprise(1)
software(1) asn1c(5) test(1) 60 } spelio(9363) software(1) asn1c(5) test(1) 60 }
DEFINITIONS IMPLICIT TAGS ::= DEFINITIONS IMPLICIT TAGS ::=
BEGIN BEGIN
......
ModuleTestIntegerAndEnumeratedConstraints { iso org(3) dod(6) internet(1) ModuleTestIntegerAndEnumeratedConstraints { iso org(3) dod(6) internet(1)
private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 74 } private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1)
74 }
DEFINITIONS ::= DEFINITIONS ::=
BEGIN BEGIN
......
ModuleTestConstrainedBy { iso org(3) dod(6) internet(1) private(4) enterprise(1) ModuleTestConstrainedBy { iso org(3) dod(6) internet(1) private(4)
spelio(9363) software(1) asn1c(5) test(1) 79 } enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 79 }
DEFINITIONS ::= DEFINITIONS ::=
BEGIN BEGIN
......
ModuleTestWithComponents { iso org(3) dod(6) internet(1) private(4) enterprise(1) ModuleTestWithComponents { iso org(3) dod(6) internet(1) private(4)
spelio(9363) software(1) asn1c(5) test(1) 82 } enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 82 }
DEFINITIONS ::= DEFINITIONS ::=
BEGIN BEGIN
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment