[pcre-dev] Changes in PCRE JIT for Borland CPP compiler

Top Page
Delete this message
Author: Дмитрий Уколов
Date:  
To: pcre-dev
Subject: [pcre-dev] Changes in PCRE JIT for Borland CPP compiler
Hello!



I test PCRE 8.20.

You may make small changes in JIT codes for Borland C compiler (correct
compilation error and JIT call convention):

This is patches:





Index: sljitConfigInternal.h

===================================================================

--- sljitConfigInternal.h (revision 693)

+++ sljitConfigInternal.h              (working copy)


@@ -229,7 +229,11 @@

#define SLJIT_CALL __attribute__ ((fastcall))

#define SLJIT_X86_32_FASTCALL 1

#elif defined(_WIN32)

+ #ifdef __BORLANDC__

+#define SLJIT_CALL __msfastcall

+ #else

#define SLJIT_CALL __fastcall

+ #endif

#define SLJIT_X86_32_FASTCALL 1

#else

#define SLJIT_CALL __stdcall







And







Index: sljitNativeX86_common.c

===================================================================

--- sljitNativeX86_common.c     (revision 693)


+++ sljitNativeX86_common.c (working copy)

@@ -1875,7 +1875,7 @@

                              :


                              : "%eax", "%ecx", "%edx"


               );


-#elif defined(_MSC_VER)

+#elif defined(_MSC_VER) || defined(__BORLANDC__)

               /* Intel syntax. */


               __asm {


                              mov eax, 1












Regards,

Dmitry Ukolov