diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-04-13 16:28:55 +0200 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-04-14 11:49:02 +0200 |
commit | c5fb4f0794c6efe06f64d6d462e14357d527b564 (patch) | |
tree | c34c643b8505356beaa091904a8e8aa9d9cd4519 /ext/tokenizer/tokenizer.c | |
parent | 80598f12507c5cbde04163289e4d2575f05d2a0c (diff) | |
download | php-git-c5fb4f0794c6efe06f64d6d462e14357d527b564.tar.gz |
Generate function entries from stubs for a couple of extensions
Migrates ext/standard, ext/tidy, ext/tokenizer,
ext/xml, ext/xml_reader, and ext/xml_writer. Closes GH-5381.
Diffstat (limited to 'ext/tokenizer/tokenizer.c')
-rw-r--r-- | ext/tokenizer/tokenizer.c | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/ext/tokenizer/tokenizer.c b/ext/tokenizer/tokenizer.c index 364d70bf08..f07a839bb6 100644 --- a/ext/tokenizer/tokenizer.c +++ b/ext/tokenizer/tokenizer.c @@ -44,23 +44,12 @@ void tokenizer_token_get_all_register_constants(INIT_FUNC_ARGS) { REGISTER_LONG_CONSTANT("TOKEN_PARSE", TOKEN_PARSE, CONST_CS|CONST_PERSISTENT); } -/* {{{ tokenizer_functions[] - * - * Every user visible function must have an entry in tokenizer_functions[]. - */ -static const zend_function_entry tokenizer_functions[] = { - PHP_FE(token_get_all, arginfo_token_get_all) - PHP_FE(token_name, arginfo_token_name) - PHP_FE_END -}; -/* }}} */ - /* {{{ tokenizer_module_entry */ zend_module_entry tokenizer_module_entry = { STANDARD_MODULE_HEADER, "tokenizer", - tokenizer_functions, + ext_functions, PHP_MINIT(tokenizer), NULL, NULL, @@ -260,16 +249,6 @@ PHP_METHOD(PhpToken, __toString) RETURN_STR_COPY(text); } -static const zend_function_entry php_token_methods[] = { - PHP_ME(PhpToken, getAll, arginfo_class_PhpToken_getAll, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC) - PHP_ME(PhpToken, __construct, arginfo_class_PhpToken___construct, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - PHP_ME(PhpToken, is, arginfo_class_PhpToken_is, ZEND_ACC_PUBLIC) - PHP_ME(PhpToken, isIgnorable, arginfo_class_PhpToken_isIgnorable, ZEND_ACC_PUBLIC) - PHP_ME(PhpToken, getTokenName, arginfo_class_PhpToken_getTokenName, ZEND_ACC_PUBLIC) - PHP_ME(PhpToken, __toString, arginfo_class_PhpToken___toString, ZEND_ACC_PUBLIC) - PHP_FE_END -}; - /* {{{ PHP_MINIT_FUNCTION */ PHP_MINIT_FUNCTION(tokenizer) @@ -282,7 +261,7 @@ PHP_MINIT_FUNCTION(tokenizer) tokenizer_register_constants(INIT_FUNC_ARGS_PASSTHRU); tokenizer_token_get_all_register_constants(INIT_FUNC_ARGS_PASSTHRU); - INIT_CLASS_ENTRY(ce, "PhpToken", php_token_methods); + INIT_CLASS_ENTRY(ce, "PhpToken", class_PhpToken_methods); php_token_ce = zend_register_internal_class(&ce); zend_class_implements(php_token_ce, 1, zend_ce_stringable); |