mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Strong types for the result codes SUCCESS & FAILURE. These are common
symbol names and using #defines can cause conflicts.
This commit is contained in:
parent
e7a714b35e
commit
e3ef84c59b
@ -276,10 +276,10 @@ static const char long_min_digits[] = "9223372036854775808";
|
||||
|
||||
#define MAX_LENGTH_OF_DOUBLE 32
|
||||
|
||||
#undef SUCCESS
|
||||
#undef FAILURE
|
||||
#define SUCCESS 0
|
||||
#define FAILURE -1 /* this MUST stay a negative number, or it may affect functions! */
|
||||
typedef enum {
|
||||
SUCCESS = 0,
|
||||
FAILURE = -1, /* this MUST stay a negative number, or it may affect functions! */
|
||||
} RESULT_CODE;
|
||||
|
||||
#include "zend_hash.h"
|
||||
#include "zend_ts_hash.h"
|
||||
|
Loading…
Reference in New Issue
Block a user