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/tokenizer/tokenizer.c | |
parent | bb66f385d09e7e55390e9f57fcbca08f6b43ff91 (diff) | |
download | php-git-bdeb220f48825642f84cdbf3ff23a30613c92e86.tar.gz |
first shot remove TSRMLS_* things
Diffstat (limited to 'ext/tokenizer/tokenizer.c')
-rw-r--r-- | ext/tokenizer/tokenizer.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/tokenizer/tokenizer.c b/ext/tokenizer/tokenizer.c index 26e05c2be3..379fe5db7e 100644 --- a/ext/tokenizer/tokenizer.c +++ b/ext/tokenizer/tokenizer.c @@ -101,7 +101,7 @@ PHP_MINFO_FUNCTION(tokenizer) } /* }}} */ -static void tokenize(zval *return_value TSRMLS_DC) +static void tokenize(zval *return_value) { zval token; zval keyword; @@ -113,7 +113,7 @@ static void tokenize(zval *return_value TSRMLS_DC) array_init(return_value); ZVAL_NULL(&token); - while ((token_type = lex_scan(&token TSRMLS_CC))) { + while ((token_type = lex_scan(&token))) { destroy = 1; switch (token_type) { case T_CLOSE_TAG: @@ -181,23 +181,23 @@ PHP_FUNCTION(token_get_all) zval source_zval; zend_lex_state original_lex_state; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "S", &source) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &source) == FAILURE) { return; } ZVAL_STR_COPY(&source_zval, source); - zend_save_lexical_state(&original_lex_state TSRMLS_CC); + zend_save_lexical_state(&original_lex_state); - if (zend_prepare_string_for_scanning(&source_zval, "" TSRMLS_CC) == FAILURE) { - zend_restore_lexical_state(&original_lex_state TSRMLS_CC); + if (zend_prepare_string_for_scanning(&source_zval, "") == FAILURE) { + zend_restore_lexical_state(&original_lex_state); RETURN_FALSE; } LANG_SCNG(yy_state) = yycINITIAL; - tokenize(return_value TSRMLS_CC); + tokenize(return_value); - zend_restore_lexical_state(&original_lex_state TSRMLS_CC); + zend_restore_lexical_state(&original_lex_state); zval_dtor(&source_zval); } /* }}} */ @@ -208,7 +208,7 @@ PHP_FUNCTION(token_name) { zend_long type; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &type) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &type) == FAILURE) { return; } |