From cd420b0b1f2336972e386eba1cccf23b47d99538 Mon Sep 17 00:00:00 2001 From: Pauli Date: Tue, 22 Aug 2017 07:17:35 +1000 Subject: Move the REF_PRINT support from e_os.h to internal/refcount.h. Reviewed-by: Andy Polyakov Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/4188) --- e_os.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'e_os.h') diff --git a/e_os.h b/e_os.h index 2310e32c84..14089f5655 100644 --- a/e_os.h +++ b/e_os.h @@ -25,13 +25,6 @@ extern "C" { #endif -/* Used to checking reference counts, most while doing perl5 stuff :-) */ -# if defined(OPENSSL_NO_STDIO) -# if defined(REF_PRINT) -# error "REF_PRINT requires stdio" -# endif -# endif - /* * Format specifier for printing size_t. Original conundrum was to * get it working with -Wformat [-Werror], which can be considered @@ -59,19 +52,6 @@ extern "C" { * stand for in ILP32 and LP64 */ # endif -# if !defined(NDEBUG) && !defined(OPENSSL_NO_STDIO) -# define REF_ASSERT_ISNT(test) \ - (void)((test) ? (OPENSSL_die("refcount error", __FILE__, __LINE__), 1) : 0) -# else -# define REF_ASSERT_ISNT(i) -# endif -# ifdef REF_PRINT -# define REF_PRINT_COUNT(a, b) \ - fprintf(stderr, "%p:%4d:%s\n", b, b->references, a) -# else -# define REF_PRINT_COUNT(a, b) -# endif - # define OPENSSL_CONF "openssl.cnf" # ifndef DEVRANDOM -- cgit v1.2.1