summaryrefslogtreecommitdiff
path: root/ext/ncurses
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2003-08-03 17:44:39 +0000
committerZeev Suraski <zeev@php.net>2003-08-03 17:44:39 +0000
commit538d58dd5f13a3ffda958ec002733dcbbc965352 (patch)
tree6d82510f96846c52de5ca250ddb337e1a21918c7 /ext/ncurses
parent4e796a70802e42ed03b12a18375b0f446a251e59 (diff)
downloadphp-git-538d58dd5f13a3ffda958ec002733dcbbc965352.tar.gz
Use new infrastructure.
There are bound to be some messups, please report build/runtime bugs!
Diffstat (limited to 'ext/ncurses')
-rw-r--r--ext/ncurses/ncurses_fe.c31
1 files changed, 23 insertions, 8 deletions
diff --git a/ext/ncurses/ncurses_fe.c b/ext/ncurses/ncurses_fe.c
index 24668594b2..07106706b3 100644
--- a/ext/ncurses/ncurses_fe.c
+++ b/ext/ncurses/ncurses_fe.c
@@ -25,11 +25,26 @@
#include "php_ini.h"
#include "php_ncurses.h"
-static unsigned char first_args_force_ref[] = {1, BYREF_FORCE};
-static unsigned char firstandsecond_args_force_ref[] = {2, BYREF_FORCE, BYREF_FORCE};
-static unsigned char second_args_force_ref[] = {2, BYREF_NONE, BYREF_FORCE};
-static unsigned char secondandthird_args_force_ref[] = {3, BYREF_NONE, BYREF_FORCE, BYREF_FORCE};
-static unsigned char second_thru_fourth_args_force_ref[] = {4, BYREF_NONE, BYREF_FORCE, BYREF_FORCE, BYREF_FORCE};
+static
+ ZEND_BEGIN_ARG_INFO(firstandsecond_args_force_ref, 0)
+ ZEND_ARG_PASS_INFO(1)
+ ZEND_ARG_PASS_INFO(1)
+ ZEND_END_ARG_INFO();
+
+static
+ ZEND_BEGIN_ARG_INFO(secondandthird_args_force_ref, 0)
+ ZEND_ARG_PASS_INFO(0)
+ ZEND_ARG_PASS_INFO(1)
+ ZEND_ARG_PASS_INFO(1)
+ ZEND_END_ARG_INFO();
+
+static
+ ZEND_BEGIN_ARG_INFO(second_thru_fourth_args_force_ref, 0)
+ ZEND_ARG_PASS_INFO(0)
+ ZEND_ARG_PASS_INFO(1)
+ ZEND_ARG_PASS_INFO(1)
+ ZEND_ARG_PASS_INFO(1)
+ ZEND_END_ARG_INFO();
/* ncurses_functions[]
*
@@ -151,7 +166,7 @@ function_entry ncurses_functions[] = {
PHP_FE(ncurses_mvinch, NULL)
PHP_FE(ncurses_mvwaddstr, NULL)
PHP_FE(ncurses_insstr, NULL)
- PHP_FE(ncurses_instr, first_args_force_ref)
+ PHP_FE(ncurses_instr, first_arg_force_ref)
PHP_FE(ncurses_mvhline, NULL)
PHP_FE(ncurses_mvcur, NULL)
PHP_FE(ncurses_init_color, NULL)
@@ -165,8 +180,8 @@ function_entry ncurses_functions[] = {
PHP_FE(ncurses_keyok, NULL)
PHP_FE(ncurses_termname, NULL)
PHP_FE(ncurses_longname, NULL)
- PHP_FE(ncurses_mousemask, second_args_force_ref)
- PHP_FE(ncurses_getmouse, first_args_force_ref)
+ PHP_FE(ncurses_mousemask, second_arg_force_ref)
+ PHP_FE(ncurses_getmouse, first_arg_force_ref)
PHP_FE(ncurses_ungetmouse, NULL)
PHP_FE(ncurses_mouse_trafo, firstandsecond_args_force_ref)
PHP_FE(ncurses_wmouse_trafo, secondandthird_args_force_ref)