diff options
Diffstat (limited to 'src/lib/libcrypto/util/mkerr.pl')
-rw-r--r-- | src/lib/libcrypto/util/mkerr.pl | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/lib/libcrypto/util/mkerr.pl b/src/lib/libcrypto/util/mkerr.pl index 8e18f3c2df..7d98b5234d 100644 --- a/src/lib/libcrypto/util/mkerr.pl +++ b/src/lib/libcrypto/util/mkerr.pl | |||
@@ -38,7 +38,7 @@ while (@ARGV) { | |||
38 | } | 38 | } |
39 | 39 | ||
40 | if($recurse) { | 40 | if($recurse) { |
41 | @source = (<crypto/*.c>, <crypto/*/*.c>, ,<rsaref/*.c>, <ssl/*.c>); | 41 | @source = (<crypto/*.c>, <crypto/*/*.c>, <rsaref/*.c>, <ssl/*.c>); |
42 | } else { | 42 | } else { |
43 | @source = @ARGV; | 43 | @source = @ARGV; |
44 | } | 44 | } |
@@ -79,8 +79,11 @@ while (($lib, $hdr) = each %hinc) | |||
79 | next if($hdr eq "NONE"); | 79 | next if($hdr eq "NONE"); |
80 | print STDERR "Scanning header file $hdr\n" if $debug; | 80 | print STDERR "Scanning header file $hdr\n" if $debug; |
81 | open(IN, "<$hdr") || die "Can't open Header file $hdr\n"; | 81 | open(IN, "<$hdr") || die "Can't open Header file $hdr\n"; |
82 | my $line = "", $def= ""; | 82 | my $line = "", $def= "", $linenr = 0; |
83 | while(<IN>) { | 83 | while(<IN>) { |
84 | $linenr++; | ||
85 | print STDERR "line: $linenr\r" if $debug; | ||
86 | |||
84 | last if(/BEGIN\s+ERROR\s+CODES/); | 87 | last if(/BEGIN\s+ERROR\s+CODES/); |
85 | if ($line ne '') { | 88 | if ($line ne '') { |
86 | $_ = $line . $_; | 89 | $_ = $line . $_; |
@@ -110,7 +113,12 @@ while (($lib, $hdr) = each %hinc) | |||
110 | } | 113 | } |
111 | } | 114 | } |
112 | 115 | ||
116 | print STDERR " \r" if $debug; | ||
117 | $defnr = 0; | ||
113 | foreach (split /;/, $def) { | 118 | foreach (split /;/, $def) { |
119 | $defnr++; | ||
120 | print STDERR "def: $defnr\r" if $debug; | ||
121 | |||
114 | s/^[\n\s]*//g; | 122 | s/^[\n\s]*//g; |
115 | s/[\n\s]*$//g; | 123 | s/[\n\s]*$//g; |
116 | next if(/typedef\W/); | 124 | next if(/typedef\W/); |
@@ -136,6 +144,8 @@ while (($lib, $hdr) = each %hinc) | |||
136 | } | 144 | } |
137 | } | 145 | } |
138 | 146 | ||
147 | print STDERR " \r" if $debug; | ||
148 | |||
139 | next if $reindex; | 149 | next if $reindex; |
140 | 150 | ||
141 | # Scan function and reason codes and store them: keep a note of the | 151 | # Scan function and reason codes and store them: keep a note of the |