summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/util/mkerr.pl
diff options
context:
space:
mode:
authorbeck <>2000-12-15 02:58:47 +0000
committerbeck <>2000-12-15 02:58:47 +0000
commit9200bb13d15da4b2a23e6bc92c20e95b74aa2113 (patch)
tree5c52d628ec1e34be76e7ef2a4235d248b7c44d24 /src/lib/libcrypto/util/mkerr.pl
parente131d25072e3d4197ba4b9bcc0d1b27d34d6488d (diff)
downloadopenbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.tar.gz
openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.tar.bz2
openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.zip
openssl-engine-0.9.6 merge
Diffstat (limited to 'src/lib/libcrypto/util/mkerr.pl')
-rw-r--r--src/lib/libcrypto/util/mkerr.pl14
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
40if($recurse) { 40if($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