diff options
author | Anatol Belski <ab@php.net> | 2014-12-13 23:06:14 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-12-13 23:06:14 +0100 |
commit | bdeb220f48825642f84cdbf3ff23a30613c92e86 (patch) | |
tree | 1a6cf34d20420e4815b4becb21311a4457d84103 /ext/intl/resourcebundle/resourcebundle_iterator.c | |
parent | bb66f385d09e7e55390e9f57fcbca08f6b43ff91 (diff) | |
download | php-git-bdeb220f48825642f84cdbf3ff23a30613c92e86.tar.gz |
first shot remove TSRMLS_* things
Diffstat (limited to 'ext/intl/resourcebundle/resourcebundle_iterator.c')
-rw-r--r-- | ext/intl/resourcebundle/resourcebundle_iterator.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/ext/intl/resourcebundle/resourcebundle_iterator.c b/ext/intl/resourcebundle/resourcebundle_iterator.c index cf38c6b676..8243e69268 100644 --- a/ext/intl/resourcebundle/resourcebundle_iterator.c +++ b/ext/intl/resourcebundle/resourcebundle_iterator.c @@ -29,7 +29,7 @@ */ /* {{{ resourcebundle_iterator_read */ -static void resourcebundle_iterator_read( ResourceBundle_iterator *iterator TSRMLS_DC ) +static void resourcebundle_iterator_read( ResourceBundle_iterator *iterator ) { UErrorCode icuerror = U_ZERO_ERROR; ResourceBundle_object *rb = iterator->subject; @@ -41,17 +41,17 @@ static void resourcebundle_iterator_read( ResourceBundle_iterator *iterator TSRM if (iterator->is_table) { iterator->currentkey = estrdup( ures_getKey( rb->child ) ); } - resourcebundle_extract_value( &iterator->current, rb TSRMLS_CC ); + resourcebundle_extract_value( &iterator->current, rb ); } else { - // zend_throw_exception( spl_ce_OutOfRangeException, "Running past end of ResourceBundle", 0 TSRMLS_CC); + // zend_throw_exception( spl_ce_OutOfRangeException, "Running past end of ResourceBundle", 0); ZVAL_UNDEF(&iterator->current); } } /* }}} */ /* {{{ resourcebundle_iterator_invalidate */ -static void resourcebundle_iterator_invalidate( zend_object_iterator *iter TSRMLS_DC ) +static void resourcebundle_iterator_invalidate( zend_object_iterator *iter ) { ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; @@ -67,19 +67,19 @@ static void resourcebundle_iterator_invalidate( zend_object_iterator *iter TSRML /* }}} */ /* {{{ resourcebundle_iterator_dtor */ -static void resourcebundle_iterator_dtor( zend_object_iterator *iter TSRMLS_DC ) +static void resourcebundle_iterator_dtor( zend_object_iterator *iter ) { ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; zval *object = &iterator->intern.data; - resourcebundle_iterator_invalidate( iter TSRMLS_CC ); + resourcebundle_iterator_invalidate( iter ); zval_ptr_dtor(object); } /* }}} */ /* {{{ resourcebundle_iterator_has_more */ -static int resourcebundle_iterator_has_more( zend_object_iterator *iter TSRMLS_DC ) +static int resourcebundle_iterator_has_more( zend_object_iterator *iter ) { ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; return (iterator->i < iterator->length) ? SUCCESS : FAILURE; @@ -87,23 +87,23 @@ static int resourcebundle_iterator_has_more( zend_object_iterator *iter TSRMLS_D /* }}} */ /* {{{ resourcebundle_iterator_current */ -static zval *resourcebundle_iterator_current( zend_object_iterator *iter TSRMLS_DC ) +static zval *resourcebundle_iterator_current( zend_object_iterator *iter ) { ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; if (Z_ISUNDEF(iterator->current)) { - resourcebundle_iterator_read( iterator TSRMLS_CC); + resourcebundle_iterator_read( iterator); } return &iterator->current; } /* }}} */ /* {{{ resourcebundle_iterator_key */ -static void resourcebundle_iterator_key( zend_object_iterator *iter, zval *key TSRMLS_DC ) +static void resourcebundle_iterator_key( zend_object_iterator *iter, zval *key ) { ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; if (Z_ISUNDEF(iterator->current)) { - resourcebundle_iterator_read( iterator TSRMLS_CC); + resourcebundle_iterator_read( iterator); } if (iterator->is_table) { @@ -115,22 +115,22 @@ static void resourcebundle_iterator_key( zend_object_iterator *iter, zval *key T /* }}} */ /* {{{ resourcebundle_iterator_step */ -static void resourcebundle_iterator_step( zend_object_iterator *iter TSRMLS_DC ) +static void resourcebundle_iterator_step( zend_object_iterator *iter ) { ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; iterator->i++; - resourcebundle_iterator_invalidate( iter TSRMLS_CC ); + resourcebundle_iterator_invalidate( iter ); } /* }}} */ /* {{{ resourcebundle_iterator_has_reset */ -static void resourcebundle_iterator_reset( zend_object_iterator *iter TSRMLS_DC ) +static void resourcebundle_iterator_reset( zend_object_iterator *iter ) { ResourceBundle_iterator *iterator = (ResourceBundle_iterator *) iter; iterator->i = 0; - resourcebundle_iterator_invalidate( iter TSRMLS_CC ); + resourcebundle_iterator_invalidate( iter ); } /* }}} */ @@ -147,7 +147,7 @@ static zend_object_iterator_funcs resourcebundle_iterator_funcs = { /* }}} */ /* {{{ resourcebundle_get_iterator */ -zend_object_iterator *resourcebundle_get_iterator( zend_class_entry *ce, zval *object, int byref TSRMLS_DC ) +zend_object_iterator *resourcebundle_get_iterator( zend_class_entry *ce, zval *object, int byref ) { ResourceBundle_object *rb = Z_INTL_RESOURCEBUNDLE_P(object ); ResourceBundle_iterator *iterator = emalloc( sizeof( ResourceBundle_iterator ) ); @@ -156,7 +156,7 @@ zend_object_iterator *resourcebundle_get_iterator( zend_class_entry *ce, zval *o php_error( E_ERROR, "ResourceBundle does not support writable iterators" ); } - zend_iterator_init(&iterator->intern TSRMLS_CC); + zend_iterator_init(&iterator->intern); ZVAL_COPY(&iterator->intern.data, object); iterator->intern.funcs = &resourcebundle_iterator_funcs; |