From c70c2ef18280690922dfd0037e6faa4c1c34f106 Mon Sep 17 00:00:00 2001 From: Lev Walkin Date: Thu, 30 Sep 2004 06:38:21 +0000 Subject: [PATCH] removed unnecessary newline --- libasn1print/asn1print.c | 4 +++- tests/04-enum-SE.asn1.-E | 1 - tests/07-int-OK.asn1.-EF | 1 - tests/14-resolver-OK.asn1.-EF | 1 - tests/16-constraint-OK.asn1.-EF | 1 - tests/19-param-OK.asn1.-EF | 1 - tests/20-constr-OK.asn1.-EF | 1 - tests/21-tags-OK.asn1.-EF | 1 - tests/22-tags-OK.asn1.-EF | 1 - tests/23-bits-OK.asn1.-EF | 1 - tests/24-sequence-OK.asn1.-EF | 1 - tests/31-set-of-OK.asn1.-EF | 1 - tests/32-sequence-of-OK.asn1.-EF | 1 - tests/34-class-OK.asn1.-EF | 1 - tests/37-indirect-choice-OK.asn1.-EF | 1 - tests/42-real-life-OK.asn1.-EF | 1 - ...ype-SE.asn1.-EFfknown-extern-type=KnownExt | 1 - tests/49-real-life-OK.asn1.-E | 1 - ...50-constraint-OK.asn1.-EFprint-constraints | Bin 7349 -> 7348 bytes tests/55-components-of-OK.asn1.-EF | 1 - tests/58-param-OK.asn1.-EF | 1 - tests/60-any-OK.asn1.-EF | 1 - tests/62-any-OK.asn1.-EF | 1 - 23 files changed, 3 insertions(+), 22 deletions(-) diff --git a/libasn1print/asn1print.c b/libasn1print/asn1print.c index 886c9492..4132204f 100644 --- a/libasn1print/asn1print.c +++ b/libasn1print/asn1print.c @@ -31,6 +31,7 @@ static int asn1print_expr(asn1p_t *asn, asn1p_module_t *mod, asn1p_expr_t *tc, e int asn1print(asn1p_t *asn, enum asn1print_flags flags) { asn1p_module_t *mod; + int modno = 0; if(asn == NULL) { errno = EINVAL; @@ -38,6 +39,7 @@ asn1print(asn1p_t *asn, enum asn1print_flags flags) { } TQ_FOR(mod, &(asn->modules), mod_next) { + if(modno++) printf("\n"); asn1print_module(asn, mod, flags); } @@ -48,7 +50,7 @@ static int asn1print_module(asn1p_t *asn, asn1p_module_t *mod, enum asn1print_flags flags) { asn1p_expr_t *tc; - printf("\n%s ", mod->Identifier); + printf("%s ", mod->Identifier); if(mod->module_oid) { asn1print_oid(mod->module_oid, flags); printf("\n"); diff --git a/tests/04-enum-SE.asn1.-E b/tests/04-enum-SE.asn1.-E index c908ea5f..19b431cc 100644 --- a/tests/04-enum-SE.asn1.-E +++ b/tests/04-enum-SE.asn1.-E @@ -1,4 +1,3 @@ - ModuleTestEnum2 {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 4 } diff --git a/tests/07-int-OK.asn1.-EF b/tests/07-int-OK.asn1.-EF index 54faa108..3b93cd37 100644 --- a/tests/07-int-OK.asn1.-EF +++ b/tests/07-int-OK.asn1.-EF @@ -1,4 +1,3 @@ - ModuleTestInt1 {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 7 } diff --git a/tests/14-resolver-OK.asn1.-EF b/tests/14-resolver-OK.asn1.-EF index 7070bc8e..31793f22 100644 --- a/tests/14-resolver-OK.asn1.-EF +++ b/tests/14-resolver-OK.asn1.-EF @@ -1,4 +1,3 @@ - ModuleTestResolver2 {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 14 1 } diff --git a/tests/16-constraint-OK.asn1.-EF b/tests/16-constraint-OK.asn1.-EF index 237fb574..61d81227 100644 --- a/tests/16-constraint-OK.asn1.-EF +++ b/tests/16-constraint-OK.asn1.-EF @@ -1,4 +1,3 @@ - ModuleTestConstraint {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 16 } diff --git a/tests/19-param-OK.asn1.-EF b/tests/19-param-OK.asn1.-EF index 62404143..f2daaf39 100644 --- a/tests/19-param-OK.asn1.-EF +++ b/tests/19-param-OK.asn1.-EF @@ -1,4 +1,3 @@ - ModuleTestParam {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 19 } diff --git a/tests/20-constr-OK.asn1.-EF b/tests/20-constr-OK.asn1.-EF index dbbdacae..fe61cfec 100644 --- a/tests/20-constr-OK.asn1.-EF +++ b/tests/20-constr-OK.asn1.-EF @@ -1,4 +1,3 @@ - ModuleTestConstr {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 20 } diff --git a/tests/21-tags-OK.asn1.-EF b/tests/21-tags-OK.asn1.-EF index a8fd93c7..857c581f 100644 --- a/tests/21-tags-OK.asn1.-EF +++ b/tests/21-tags-OK.asn1.-EF @@ -1,4 +1,3 @@ - ModuleTestTags1 {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 21 1 } diff --git a/tests/22-tags-OK.asn1.-EF b/tests/22-tags-OK.asn1.-EF index c6c97c99..50fce1e8 100644 --- a/tests/22-tags-OK.asn1.-EF +++ b/tests/22-tags-OK.asn1.-EF @@ -1,4 +1,3 @@ - ModuleTestTags3 {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 22 } diff --git a/tests/23-bits-OK.asn1.-EF b/tests/23-bits-OK.asn1.-EF index f65f3b36..45ff4da7 100644 --- a/tests/23-bits-OK.asn1.-EF +++ b/tests/23-bits-OK.asn1.-EF @@ -1,4 +1,3 @@ - ModuleTestBitString {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 23 } diff --git a/tests/24-sequence-OK.asn1.-EF b/tests/24-sequence-OK.asn1.-EF index 87740d67..e45e04ae 100644 --- a/tests/24-sequence-OK.asn1.-EF +++ b/tests/24-sequence-OK.asn1.-EF @@ -1,4 +1,3 @@ - ModuleTestSequence {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 24 } diff --git a/tests/31-set-of-OK.asn1.-EF b/tests/31-set-of-OK.asn1.-EF index 46a7dfbf..692450b1 100644 --- a/tests/31-set-of-OK.asn1.-EF +++ b/tests/31-set-of-OK.asn1.-EF @@ -1,4 +1,3 @@ - ModuleTestSetOfSimple {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 31 } diff --git a/tests/32-sequence-of-OK.asn1.-EF b/tests/32-sequence-of-OK.asn1.-EF index 543c2ab9..3697ef12 100644 --- a/tests/32-sequence-of-OK.asn1.-EF +++ b/tests/32-sequence-of-OK.asn1.-EF @@ -1,4 +1,3 @@ - ModuleTestSequenceSimple {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 32 } diff --git a/tests/34-class-OK.asn1.-EF b/tests/34-class-OK.asn1.-EF index 7a181c3b..52ba8670 100644 --- a/tests/34-class-OK.asn1.-EF +++ b/tests/34-class-OK.asn1.-EF @@ -1,4 +1,3 @@ - ModuleTestClassSimple {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 34 } diff --git a/tests/37-indirect-choice-OK.asn1.-EF b/tests/37-indirect-choice-OK.asn1.-EF index 88f7b03b..4f8c80b7 100644 --- a/tests/37-indirect-choice-OK.asn1.-EF +++ b/tests/37-indirect-choice-OK.asn1.-EF @@ -1,4 +1,3 @@ - ModuleTestIndirectChoiceFine {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 37 } diff --git a/tests/42-real-life-OK.asn1.-EF b/tests/42-real-life-OK.asn1.-EF index c07dccf4..6b5249d8 100644 --- a/tests/42-real-life-OK.asn1.-EF +++ b/tests/42-real-life-OK.asn1.-EF @@ -1,4 +1,3 @@ - ModuleLAPStorage {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 42 } diff --git a/tests/45-undefined-type-SE.asn1.-EFfknown-extern-type=KnownExt b/tests/45-undefined-type-SE.asn1.-EFfknown-extern-type=KnownExt index 62dc0e37..99dcd60f 100644 --- a/tests/45-undefined-type-SE.asn1.-EFfknown-extern-type=KnownExt +++ b/tests/45-undefined-type-SE.asn1.-EFfknown-extern-type=KnownExt @@ -1,4 +1,3 @@ - ModuleKnownExternType {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 45 } diff --git a/tests/49-real-life-OK.asn1.-E b/tests/49-real-life-OK.asn1.-E index 7439005c..e3d9d351 100644 --- a/tests/49-real-life-OK.asn1.-E +++ b/tests/49-real-life-OK.asn1.-E @@ -1,4 +1,3 @@ - ModuleSetChoiceExtensibility {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 49 } diff --git a/tests/50-constraint-OK.asn1.-EFprint-constraints b/tests/50-constraint-OK.asn1.-EFprint-constraints index 8fb42287a37bce51bb499db79915d675f2f72716..393826debc19315dfa975409058e6052c311a890 100644 GIT binary patch delta 8 PcmdmLxy5oL;}#hJ5Z?n{ delta 9 QcmdmDxz&=9Yr_^901__)X8-^I diff --git a/tests/55-components-of-OK.asn1.-EF b/tests/55-components-of-OK.asn1.-EF index e6655db8..1ace8593 100644 --- a/tests/55-components-of-OK.asn1.-EF +++ b/tests/55-components-of-OK.asn1.-EF @@ -1,4 +1,3 @@ - ModuleTestComponentsOf {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 55 } diff --git a/tests/58-param-OK.asn1.-EF b/tests/58-param-OK.asn1.-EF index 3f950bfb..168b0577 100644 --- a/tests/58-param-OK.asn1.-EF +++ b/tests/58-param-OK.asn1.-EF @@ -1,4 +1,3 @@ - ModuleTestParam {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 58 } diff --git a/tests/60-any-OK.asn1.-EF b/tests/60-any-OK.asn1.-EF index e2c89e68..064a0b9f 100644 --- a/tests/60-any-OK.asn1.-EF +++ b/tests/60-any-OK.asn1.-EF @@ -1,4 +1,3 @@ - ModuleTestANY {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 60 } diff --git a/tests/62-any-OK.asn1.-EF b/tests/62-any-OK.asn1.-EF index bc08f038..76549a69 100644 --- a/tests/62-any-OK.asn1.-EF +++ b/tests/62-any-OK.asn1.-EF @@ -1,4 +1,3 @@ - ModuleTestANYSyntax {iso org(3) dod(6) internet(1) private(4) enterprise(1) spelio(9363) software(1) asn1c(5) test(1) 62 }