diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-04-24 00:15:18 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-04-24 00:15:18 +0000 |
commit | 6d31193858f176c276fe5f27d36408977933c1d6 (patch) | |
tree | 111d45fb6403491f47cbeed5293016e46b4400b2 /crypto/comp | |
parent | dd3c43c5323d236a42efb1c7d6b509b927747953 (diff) | |
download | openssl-6d31193858f176c276fe5f27d36408977933c1d6.zip openssl-6d31193858f176c276fe5f27d36408977933c1d6.tar.gz openssl-6d31193858f176c276fe5f27d36408977933c1d6.tar.bz2 |
Complete rewrite of the error code generation script. It now runs as a single
script, translates function codes better and doesn't need the K&R function
prototypes to work (NB. the K&R prototypes can't be wiped just yet: they are
still needed by the DEF generator...). I also ran the script with the -rewrite
option to update all the header and source files.
Diffstat (limited to 'crypto/comp')
-rw-r--r-- | crypto/comp/Makefile.ssl | 12 | ||||
-rw-r--r-- | crypto/comp/comp.err | 0 | ||||
-rw-r--r-- | crypto/comp/comp.h | 11 | ||||
-rw-r--r-- | crypto/comp/comp_err.c | 2 |
4 files changed, 12 insertions, 13 deletions
diff --git a/crypto/comp/Makefile.ssl b/crypto/comp/Makefile.ssl index ba9def9..dccd2ec 100644 --- a/crypto/comp/Makefile.ssl +++ b/crypto/comp/Makefile.ssl @@ -79,18 +79,6 @@ dclean: clean: rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff -# This is a dummy to create comp.err: remove if we add any real errors to this -# stuff. - -comp.err: - touch comp.err - -errors: $(ERRC).c - -$(ERRC).c: $(ERR).err - $(PERL) $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h - $(PERL) ../err/err_genc.pl -s $(ERR).h $(ERRC).c - # DO NOT DELETE THIS LINE -- make depend depends on it. c_rle.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h diff --git a/crypto/comp/comp.err b/crypto/comp/comp.err deleted file mode 100644 index e69de29..0000000 --- a/crypto/comp/comp.err +++ /dev/null diff --git a/crypto/comp/comp.h b/crypto/comp/comp.h index 7870a1e..4d81062 100644 --- a/crypto/comp/comp.h +++ b/crypto/comp/comp.h @@ -56,7 +56,16 @@ COMP_METHOD *COMP_zlib(); #endif /* BEGIN ERROR CODES */ - +/* 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. + */ + +/* Error codes for the COMP functions. */ + +/* Function codes. */ + +/* Reason codes. */ + #ifdef __cplusplus } #endif diff --git a/crypto/comp/comp_err.c b/crypto/comp/comp_err.c index e67c91d..58329a3 100644 --- a/crypto/comp/comp_err.c +++ b/crypto/comp/comp_err.c @@ -71,6 +71,8 @@ void ERR_load__strings(void) { init=0; #ifndef NO_ERR + ERR_load_strings(ERR_LIB_COMP,COMP_str_functs); + ERR_load_strings(ERR_LIB_COMP,COMP_str_reasons); #endif } |