[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Thu Mar 24 18:05:51 UTC 2016


The branch master has been updated
       via  c3ddb263315c7196b488f384b3bc82cd474c8698 (commit)
      from  a5bb160c8c1cb7da13865a5b7916fe1292fae4c0 (commit)


- Log -----------------------------------------------------------------
commit c3ddb263315c7196b488f384b3bc82cd474c8698
Author: Rich Salz <rsalz at openssl.org>
Date:   Thu Mar 24 13:36:23 2016 -0400

    More Borland removal.
    
    And thanks to Miod Vallat for the nudge about ERR_PACK :)
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 e_os.h                | 8 --------
 include/openssl/err.h | 9 ++-------
 ms/applink.c          | 9 ---------
 3 files changed, 2 insertions(+), 24 deletions(-)

diff --git a/e_os.h b/e_os.h
index 212a524..f0a441e 100644
--- a/e_os.h
+++ b/e_os.h
@@ -300,14 +300,6 @@ extern FILE *_imp___iob;
 #   define OPENSSL_NO_POSIX_IO
 #  endif
 
-#  if defined (__BORLANDC__)
-#   define _setmode setmode
-#   define _O_TEXT O_TEXT
-#   define _O_BINARY O_BINARY
-#   define _int64 __int64
-#   define _kbhit kbhit
-#  endif
-
 #  define EXIT(n) exit(n)
 #  define LIST_SEPARATOR_CHAR ';'
 #  ifndef X_OK
diff --git a/include/openssl/err.h b/include/openssl/err.h
index 4b6c663..d372520 100644
--- a/include/openssl/err.h
+++ b/include/openssl/err.h
@@ -234,13 +234,8 @@ typedef struct err_state_st {
 # define ASYNCerr(f,r) ERR_PUT_error(ERR_LIB_ASYNC,(f),(r),OPENSSL_FILE,OPENSSL_LINE)
 # define KDFerr(f,r) ERR_PUT_error(ERR_LIB_KDF,(f),(r),OPENSSL_FILE,OPENSSL_LINE)
 
-/*
- * Borland C seems too stupid to be able to shift and do longs in the
- * pre-processor :-(
- */
-# define ERR_PACK(l,f,r)         (((((unsigned long)l)&0xffL)*0x1000000)| \
-                                ((((unsigned long)f)&0xfffL)*0x1000)| \
-                                ((((unsigned long)r)&0xfffL)))
+# define ERR_PACK(l,f,r) \
+    ( (((l) & 0x0FF) << 24L) | (((f) & 0xFFF) << 12L) | ((r) & 0xFFF) )
 # define ERR_GET_LIB(l)          (int)((((unsigned long)l)>>24L)&0xffL)
 # define ERR_GET_FUNC(l)         (int)((((unsigned long)l)>>12L)&0xfffL)
 # define ERR_GET_REASON(l)       (int)((l)&0xfffL)
diff --git a/ms/applink.c b/ms/applink.c
index 2831b39..c844b01 100644
--- a/ms/applink.c
+++ b/ms/applink.c
@@ -75,16 +75,7 @@ extern "C" {
 
 __declspec(dllexport)
 void **
-# if defined(__BORLANDC__)
-/*
- * __stdcall appears to be the only way to get the name
- * decoration right with Borland C. Otherwise it works
- * purely incidentally, as we pass no parameters.
- */
- __stdcall
-# else
  __cdecl
-# endif
 OPENSSL_Applink(void)
 {
     static int once = 1;


More information about the openssl-commits mailing list