diff options
| author | Andi Gutmans <andi@php.net> | 2000-06-05 19:47:54 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2000-06-05 19:47:54 +0000 |
| commit | 3701bc420774c1b689f8a43f0ed891c99fea3cd2 (patch) | |
| tree | 9bbc5d33a0a90e290889dbca3d8fa9bb1dfe38a9 /ext/readline | |
| parent | 1cefd77f1c6ec98c23ba04998ca3a07c8c4e7b68 (diff) | |
| download | php-git-3701bc420774c1b689f8a43f0ed891c99fea3cd2.tar.gz | |
- ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch
Diffstat (limited to 'ext/readline')
| -rw-r--r-- | ext/readline/readline.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c index dca43434b4..37900e43ca 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -94,7 +94,7 @@ PHP_FUNCTION(readline) { char *result; pval **arg; - int ac = ARG_COUNT(ht); + int ac = ZEND_NUM_ARGS(); if (ac < 0 || ac > 1 || zend_get_parameters_ex(ac, &arg) == FAILURE) { WRONG_PARAM_COUNT; @@ -123,7 +123,7 @@ PHP_FUNCTION(readline_info) zval **value; int oldval; char *oldstr; - int ac = ARG_COUNT(ht); + int ac = ZEND_NUM_ARGS(); if (ac < 0 || ac > 2 || zend_get_parameters_ex(ac, &what, &value) == FAILURE) { WRONG_PARAM_COUNT; @@ -208,7 +208,7 @@ PHP_FUNCTION(readline_info) PHP_FUNCTION(readline_add_history) { pval **arg; - int ac = ARG_COUNT(ht); + int ac = ZEND_NUM_ARGS(); if (ac < 1 || ac > 1 || zend_get_parameters_ex(ac, &arg) == FAILURE) { WRONG_PARAM_COUNT; @@ -225,7 +225,7 @@ PHP_FUNCTION(readline_add_history) Clears the history */ PHP_FUNCTION(readline_clear_history) { - int ac = ARG_COUNT(ht); + int ac = ZEND_NUM_ARGS(); if (ac < 0 || ac > 0) { WRONG_PARAM_COUNT; @@ -242,7 +242,7 @@ PHP_FUNCTION(readline_clear_history) PHP_FUNCTION(readline_list_history) { HIST_ENTRY **history; - int ac = ARG_COUNT(ht); + int ac = ZEND_NUM_ARGS(); if (ac) { WRONG_PARAM_COUNT; @@ -267,7 +267,7 @@ PHP_FUNCTION(readline_read_history) { pval **arg; char *filename = NULL; - int ac = ARG_COUNT(ht); + int ac = ZEND_NUM_ARGS(); if (ac < 0 || ac > 1 || zend_get_parameters_ex(ac, &arg) == FAILURE) { WRONG_PARAM_COUNT; @@ -294,7 +294,7 @@ PHP_FUNCTION(readline_write_history) { pval **arg; char *filename = NULL; - int ac = ARG_COUNT(ht); + int ac = ZEND_NUM_ARGS(); if (ac < 0 || ac > 1 || zend_get_parameters_ex(ac, &arg) == FAILURE) { WRONG_PARAM_COUNT; @@ -393,7 +393,7 @@ static char **_readline_completion_cb(char *text, int start, int end) PHP_FUNCTION(readline_completion_function) { pval **arg; - int ac = ARG_COUNT(ht); + int ac = ZEND_NUM_ARGS(); if (ac < 0 || ac > 1 || zend_get_parameters_ex(ac, &arg) == FAILURE) { WRONG_PARAM_COUNT; |
