mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
reapply platform related onig patches
This commit is contained in:
parent
20eacb787f
commit
b8a334f149
3 changed files with 9 additions and 3 deletions
|
@ -15,6 +15,7 @@
|
|||
#define SIZEOF_VOIDP 4
|
||||
#define SIZEOF_FLOAT 4
|
||||
#define SIZEOF_DOUBLE 8
|
||||
#define SIZEOF_SIZE_T 4
|
||||
#define HAVE_PROTOTYPES 1
|
||||
#define TOKEN_PASTE(x,y) x##y
|
||||
#define HAVE_STDARG_PROTOTYPES 1
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#define SIZEOF_VOIDP 8
|
||||
#define SIZEOF_FLOAT 4
|
||||
#define SIZEOF_DOUBLE 8
|
||||
#define SIZEOF_SIZE_T 8
|
||||
#define HAVE_PROTOTYPES 1
|
||||
#define TOKEN_PASTE(x,y) x##y
|
||||
#define HAVE_STDARG_PROTOTYPES 1
|
||||
|
|
|
@ -201,17 +201,17 @@
|
|||
} while(0)
|
||||
|
||||
/* sizeof(OnigCodePoint) */
|
||||
#define WORD_ALIGNMENT_SIZE SIZEOF_LONG
|
||||
#define WORD_ALIGNMENT_SIZE SIZEOF_SIZE_T
|
||||
|
||||
#define GET_ALIGNMENT_PAD_SIZE(addr,pad_size) do {\
|
||||
(pad_size) = WORD_ALIGNMENT_SIZE \
|
||||
- ((unsigned int )(addr) % WORD_ALIGNMENT_SIZE);\
|
||||
- ((size_t)(addr) % WORD_ALIGNMENT_SIZE);\
|
||||
if ((pad_size) == WORD_ALIGNMENT_SIZE) (pad_size) = 0;\
|
||||
} while (0)
|
||||
|
||||
#define ALIGNMENT_RIGHT(addr) do {\
|
||||
(addr) += (WORD_ALIGNMENT_SIZE - 1);\
|
||||
(addr) -= ((unsigned int )(addr) % WORD_ALIGNMENT_SIZE);\
|
||||
(addr) -= ((size_t)(addr) % WORD_ALIGNMENT_SIZE);\
|
||||
} while (0)
|
||||
|
||||
#endif /* PLATFORM_UNALIGNED_WORD_ACCESS */
|
||||
|
@ -662,7 +662,11 @@ typedef struct {
|
|||
BBuf* mbuf; /* multi-byte info or NULL */
|
||||
} CClassNode;
|
||||
|
||||
#ifdef _WIN64
|
||||
typedef __int64 OnigStackIndex;
|
||||
#else
|
||||
typedef long OnigStackIndex;
|
||||
#endif
|
||||
|
||||
typedef struct _OnigStackType {
|
||||
unsigned int type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue