Bring objects.pl output even closer to new format.
authorAndy Polyakov <appro@openssl.org>
Mon, 9 Feb 2015 14:59:09 +0000 (15:59 +0100)
committerAndy Polyakov <appro@openssl.org>
Mon, 9 Feb 2015 15:07:51 +0000 (16:07 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
(cherry picked from commit 849037169d98d070c27d094ac341fc6aca1ed2ca)

crypto/objects/objects.pl

index 719b5cd7d26b961901632d0416a11b81601cf366..e2fbd15071b434b1abd73ef62534c28f97481396 100644 (file)
@@ -184,7 +184,6 @@ print OUT <<'EOF';
 #define LN_undef                        "undefined"
 #define NID_undef                       0
 #define OBJ_undef                       0L
-
 EOF
 
 sub expand
@@ -199,11 +198,11 @@ sub expand
 foreach (sort { $a <=> $b } keys %ordern)
        {
        $Cname=$ordern{$_};
+       print OUT "\n";
        print OUT expand("#define SN_$Cname\t\t\"$sn{$Cname}\"\n") if $sn{$Cname} ne "";
        print OUT expand("#define LN_$Cname\t\t\"$ln{$Cname}\"\n") if $ln{$Cname} ne "";
        print OUT expand("#define NID_$Cname\t\t$nid{$Cname}\n") if $nid{$Cname} ne "";
        print OUT expand("#define OBJ_$Cname\t\t$obj{$Cname}\n") if $obj{$Cname} ne "";
-       print OUT "\n";
        }
 
 close OUT;