Strong types for the result codes SUCCESS & FAILURE. These are common

symbol names and using #defines can cause conflicts.
This commit is contained in:
Stuart Langley 2012-08-07 13:06:13 +10:00 committed by Lars Strojny
parent e7a714b35e
commit e3ef84c59b

View File

@ -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"