Skip to content

Commit

Permalink
Merge branch '5.4'
Browse files Browse the repository at this point in the history
* 5.4:
  Fix SPOOFCHECKER_METHOD_FETCH_OBJECT definition
  • Loading branch information
cataphract committed Aug 23, 2012
2 parents 3ef3b80 + d212a5d commit d9f5b1e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ext/intl/spoofchecker/spoofchecker_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "intl_common.h"
#include "spoofchecker_create.h"
#include "intl_error.h"
#include "intl_data.h"

#include <unicode/uspoof.h>

Expand Down Expand Up @@ -57,17 +58,13 @@ extern zend_class_entry *Spoofchecker_ce_ptr;

#define SPOOFCHECKER_METHOD_FETCH_OBJECT_NO_CHECK INTL_METHOD_FETCH_OBJECT(Spoofchecker, co)
#define SPOOFCHECKER_METHOD_FETCH_OBJECT \
SPOOFCHECKERMETHOD_FETCH_OBJECT_NO_CHECK; \
SPOOFCHECKER_METHOD_FETCH_OBJECT_NO_CHECK; \
if (co->uspoof == NULL) { \
intl_errors_set(&co->err, U_ILLEGAL_ARGUMENT_ERROR, \
"Found unconstructed Spoofchecker", 0 TSRMLS_CC); \
RETURN_FALSE; \
}

#define SPOOFCHECKER_METHOD_FETCH_OBJECT \
co = (Spoofchecker_object *) zend_object_store_get_object(object TSRMLS_CC); \
intl_error_reset(SPOOFCHECKER_ERROR_P(co) TSRMLS_CC); \

// Macro to check return value of a ucol_* function call.
#define SPOOFCHECKER_CHECK_STATUS(co, msg) \
intl_error_set_code(NULL, SPOOFCHECKER_ERROR_CODE(co) TSRMLS_CC); \
Expand Down

0 comments on commit d9f5b1e

Please sign in to comment.