diff options
author | Georg Richter <georg@php.net> | 2001-12-28 10:35:53 +0000 |
---|---|---|
committer | Georg Richter <georg@php.net> | 2001-12-28 10:35:53 +0000 |
commit | 87932e1e598275ddf9ae679a85bd03a94f8b03b8 (patch) | |
tree | a48e7ed4a2673cb1af62ffab1cd714a231c1f643 /ext/ncurses/ncurses_fe.c | |
parent | b22a77601836ce3ab79e63f9fffe0972d07fd454 (diff) | |
download | php-git-87932e1e598275ddf9ae679a85bd03a94f8b03b8.tar.gz |
mouse support for ncurses added:
ncurses_getmouse, ncurses_ungetmouse, ncurses_mouse_trafo, ncurses_wmouse_trafo
Diffstat (limited to 'ext/ncurses/ncurses_fe.c')
-rw-r--r-- | ext/ncurses/ncurses_fe.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/ncurses/ncurses_fe.c b/ext/ncurses/ncurses_fe.c index 769ba4fb6b..7cf3583bde 100644 --- a/ext/ncurses/ncurses_fe.c +++ b/ext/ncurses/ncurses_fe.c @@ -25,8 +25,11 @@ #include "php_ini.h" #include "php_ncurses.h" -static unsigned char second_args_force_ref[] = {2, BYREF_NONE, BYREF_FORCE}; 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}; + /* ncurses_functions[] * * Every user visible function must have an entry in ncurses_functions[]. @@ -147,6 +150,10 @@ function_entry ncurses_functions[] = { 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_ungetmouse, NULL) + PHP_FE(ncurses_mouse_trafo, firstandsecond_args_force_ref) + PHP_FE(ncurses_wmouse_trafo, secondandthird_args_force_ref) PHP_FE(ncurses_waddstr, NULL) PHP_FE(ncurses_wnoutrefresh, NULL) PHP_FE(ncurses_wclear, NULL) |