summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2001-11-15 12:18:01 +0000
committerRichard Levitte <levitte@openssl.org>2001-11-15 12:18:01 +0000
commit6f3fa4b71d53854f15c41b9dd07d2e14ab757e8e (patch)
treedbd1aa43bf8fae8075d13d03bca41fc8aa3874d5 /util
parent2f4dca70529ab97ac951d4edb9e69f5b3ba8e526 (diff)
Apply the following changes from the main trunk:
2001-03-08 13:14 bodo * util/mkerr.pl (1.14): Change mkerr.pl so that it puts the ERR_load_..._strings() prototype in header files that it writes. 2001-05-10 02:07 steve * util/mkerr.pl (1.15): Fix to allow multiple NONE libraries in mkerr.pl .
Diffstat (limited to 'util')
-rw-r--r--util/mkerr.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/mkerr.pl b/util/mkerr.pl
index 7d98b5234d..f833bfe87a 100644
--- a/util/mkerr.pl
+++ b/util/mkerr.pl
@@ -53,6 +53,7 @@ while(<IN>)
{
if(/^L\s+(\S+)\s+(\S+)\s+(\S+)/) {
$hinc{$1} = $2;
+ $libinc{$2} = $1;
$cskip{$3} = $1;
if($3 ne "NONE") {
$csrc{$1} = $3;
@@ -74,7 +75,7 @@ close IN;
# Scan each header file in turn and make a list of error codes
# and function names
-while (($lib, $hdr) = each %hinc)
+while (($hdr, $lib) = each %libinc)
{
next if($hdr eq "NONE");
print STDERR "Scanning header file $hdr\n" if $debug;
@@ -257,6 +258,7 @@ foreach $lib (keys %csrc)
/* The following lines are auto generated by the script mkerr.pl. Any changes
* made after this point may be overwritten when the script is next run.
*/
+void ERR_load_${lib}_strings(void);
/* Error codes for the $lib functions. */
@@ -288,7 +290,6 @@ EOF
}
#endif
#endif
-
EOF
close OUT;