summaryrefslogtreecommitdiff
path: root/ext/tokenizer/tokenizer.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-06-23 17:25:01 +0000
committerFelipe Pena <felipe@php.net>2008-06-23 17:25:01 +0000
commit898cf23f7490b1a38da0c9603e5958e740ccfe43 (patch)
tree85693a1294e1fd3f04161e4d45ac8e80a529cd0a /ext/tokenizer/tokenizer.c
parentcdacf4487a72acea3613c9c434b04121a2063351 (diff)
downloadphp-git-898cf23f7490b1a38da0c9603e5958e740ccfe43.tar.gz
- Added arginfo
Diffstat (limited to 'ext/tokenizer/tokenizer.c')
-rw-r--r--ext/tokenizer/tokenizer.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/ext/tokenizer/tokenizer.c b/ext/tokenizer/tokenizer.c
index c5b8879fa1..7c341d6acc 100644
--- a/ext/tokenizer/tokenizer.c
+++ b/ext/tokenizer/tokenizer.c
@@ -35,13 +35,25 @@
#define zendtext LANG_SCNG(yy_text)
#define zendleng LANG_SCNG(yy_leng)
+/* {{{ arginfo */
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_token_get_all, 0, 0, 1)
+ ZEND_ARG_INFO(0, source)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_token_name, 0, 0, 1)
+ ZEND_ARG_INFO(0, token)
+ZEND_END_ARG_INFO()
+/* }}} */
+
/* {{{ tokenizer_functions[]
*
* Every user visible function must have an entry in tokenizer_functions[].
*/
const zend_function_entry tokenizer_functions[] = {
- PHP_FE(token_get_all, NULL)
- PHP_FE(token_name, NULL)
+ PHP_FE(token_get_all, arginfo_token_get_all)
+ PHP_FE(token_name, arginfo_token_name)
{NULL, NULL, NULL} /* Must be the last line in tokenizer_functions[] */
};
/* }}} */