summaryrefslogtreecommitdiff
path: root/ext/intl/intl_data.h
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2008-07-22 20:23:47 +0000
committerStanislav Malyshev <stas@php.net>2008-07-22 20:23:47 +0000
commitd54c396dcaaa220f620463ce750cd9180830b179 (patch)
treec481a1a58250776ce01a582b5acc7002c79c7d23 /ext/intl/intl_data.h
parent1fb3313f7584b8554f774d8351a0e283fe814ade (diff)
downloadphp-git-d54c396dcaaa220f620463ce750cd9180830b179.tar.gz
refactor ctors, cleanup code
Diffstat (limited to 'ext/intl/intl_data.h')
-rwxr-xr-xext/intl/intl_data.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/intl/intl_data.h b/ext/intl/intl_data.h
index ebbcb1660a..4c887abab0 100755
--- a/ext/intl/intl_data.h
+++ b/ext/intl/intl_data.h
@@ -64,13 +64,12 @@ typedef struct _intl_data {
}
// Check status, if error - destroy value and exit
-#define INTL_CTOR_CHECK_STATUS(obj, msg, val) \
+#define INTL_CTOR_CHECK_STATUS(obj, msg) \
intl_error_set_code( NULL, INTL_DATA_ERROR_CODE((obj)) TSRMLS_CC ); \
if( U_FAILURE( INTL_DATA_ERROR_CODE((obj)) ) ) \
{ \
intl_errors_set_custom_msg( INTL_DATA_ERROR_P((obj)), msg, 0 TSRMLS_CC ); \
- zval_dtor((val)); \
- ZVAL_NULL((val)); \
+ zval_dtor(return_value); \
RETURN_NULL(); \
}