summaryrefslogtreecommitdiff
path: root/ext/ncurses/ncurses_fe.c
blob: 4c8fadf00b2f7f1194298af9043b0493c4e6900c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/*
   +----------------------------------------------------------------------+
   | PHP Version 4                                                        |
   +----------------------------------------------------------------------+
   | Copyright (c) 1997-2002 The PHP Group                                |
   +----------------------------------------------------------------------+
   | This source file is subject to version 2.02 of the PHP license,      |
   | that is bundled with this package in the file LICENSE, and is        |
   | available at through the world-wide-web at                           |
   | http://www.php.net/license/2_02.txt.                                 |
   | If you did not receive a copy of the PHP license and are unable to   |
   | obtain it through the world-wide-web, please send a note to          |
   | license@php.net so we can mail you a copy immediately.               |
   +----------------------------------------------------------------------+
   | Authors: Hartmut Holzgraefe <hartmut@six.de>                         |
   |          Georg Richter <georg.richter@php-ev.de>                     |
   +----------------------------------------------------------------------+
 */

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "php.h"
#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};

/* ncurses_functions[]
 *
 * Every user visible function must have an entry in ncurses_functions[].
 */
function_entry ncurses_functions[] = {
  PHP_FE(ncurses_addch, NULL)
  PHP_FE(ncurses_color_set, NULL)
  PHP_FE(ncurses_delwin, NULL)
  PHP_FE(ncurses_end, NULL)
  PHP_FE(ncurses_getch, NULL)
  PHP_FE(ncurses_has_colors, NULL)
  PHP_FE(ncurses_init, NULL)
  PHP_FE(ncurses_init_pair, NULL)
  PHP_FE(ncurses_move, NULL)
  PHP_FE(ncurses_newwin, NULL)
  PHP_FE(ncurses_refresh, NULL)
  PHP_FE(ncurses_start_color, NULL)
  PHP_FE(ncurses_standout, NULL)
  PHP_FE(ncurses_standend, NULL)
  PHP_FE(ncurses_baudrate, NULL)
  PHP_FE(ncurses_beep, NULL)
  PHP_FE(ncurses_can_change_color, NULL)
  PHP_FE(ncurses_cbreak, NULL)
  PHP_FE(ncurses_clear, NULL)
  PHP_FE(ncurses_clrtobot, NULL)
  PHP_FE(ncurses_clrtoeol, NULL)
  PHP_FE(ncurses_def_prog_mode, NULL)
  PHP_FE(ncurses_def_shell_mode, NULL)
  PHP_FE(ncurses_delch, NULL)
  PHP_FE(ncurses_deleteln, NULL)
  PHP_FE(ncurses_doupdate, NULL)
  PHP_FE(ncurses_echo, NULL)
  PHP_FE(ncurses_erase, NULL)
  PHP_FE(ncurses_erasechar, NULL)
  PHP_FE(ncurses_flash, NULL)
  PHP_FE(ncurses_flushinp, NULL)
  PHP_FE(ncurses_has_ic, NULL)
  PHP_FE(ncurses_has_il, NULL)
  PHP_FE(ncurses_inch, NULL)
  PHP_FE(ncurses_insertln, NULL)
  PHP_FE(ncurses_isendwin, NULL)
  PHP_FE(ncurses_killchar, NULL)
  PHP_FE(ncurses_nl, NULL)
  PHP_FE(ncurses_nocbreak, NULL)
  PHP_FE(ncurses_noecho, NULL)
  PHP_FE(ncurses_nonl, NULL)
  PHP_FE(ncurses_noraw, NULL)
  PHP_FE(ncurses_raw, NULL)
  PHP_FE(ncurses_resetty, NULL)
  PHP_FE(ncurses_savetty, NULL)
  PHP_FE(ncurses_termattrs, NULL)
  PHP_FE(ncurses_use_default_colors, NULL)
  PHP_FE(ncurses_slk_attr, NULL)
  PHP_FE(ncurses_slk_clear, NULL)
  PHP_FE(ncurses_slk_noutrefresh, NULL)
  PHP_FE(ncurses_slk_refresh, NULL)
  PHP_FE(ncurses_slk_restore, NULL)
  PHP_FE(ncurses_slk_touch, NULL)
  PHP_FE(ncurses_attroff, NULL)
  PHP_FE(ncurses_attron, NULL)
  PHP_FE(ncurses_attrset, NULL)
  PHP_FE(ncurses_bkgd, NULL)
  PHP_FE(ncurses_curs_set, NULL)
  PHP_FE(ncurses_delay_output, NULL)
  PHP_FE(ncurses_echochar, NULL)
  PHP_FE(ncurses_halfdelay, NULL)
  PHP_FE(ncurses_has_key, NULL)
  PHP_FE(ncurses_insch, NULL)
  PHP_FE(ncurses_insdelln, NULL)
  PHP_FE(ncurses_mouseinterval, NULL)
  PHP_FE(ncurses_napms, NULL)
  PHP_FE(ncurses_scrl, NULL)
  PHP_FE(ncurses_slk_attroff, NULL)
  PHP_FE(ncurses_slk_attron, NULL)
  PHP_FE(ncurses_slk_attrset, NULL)
  PHP_FE(ncurses_slk_color, NULL)
  PHP_FE(ncurses_slk_init, NULL)
	PHP_FE(ncurses_slk_set, NULL)
  PHP_FE(ncurses_typeahead, NULL)
  PHP_FE(ncurses_ungetch, NULL)
  PHP_FE(ncurses_vidattr, NULL)
  PHP_FE(ncurses_wrefresh, NULL)
  PHP_FE(ncurses_use_extended_names, NULL)
  PHP_FE(ncurses_bkgdset, NULL)
  PHP_FE(ncurses_filter, NULL)
  PHP_FE(ncurses_noqiflush, NULL)
  PHP_FE(ncurses_qiflush, NULL)
  PHP_FE(ncurses_timeout, NULL)
  PHP_FE(ncurses_use_env, NULL)
  PHP_FE(ncurses_addstr, NULL)
  PHP_FE(ncurses_putp, NULL)
  PHP_FE(ncurses_scr_dump, NULL)
  PHP_FE(ncurses_scr_init, NULL)
  PHP_FE(ncurses_scr_restore, NULL)
  PHP_FE(ncurses_scr_set, NULL)
  PHP_FE(ncurses_mvaddch, NULL)
  PHP_FE(ncurses_mvaddchnstr, NULL)
  PHP_FE(ncurses_addchnstr, NULL)
  PHP_FE(ncurses_mvaddchstr, NULL)
  PHP_FE(ncurses_addchstr, NULL)
  PHP_FE(ncurses_mvaddnstr, NULL)
  PHP_FE(ncurses_addnstr, NULL)
  PHP_FE(ncurses_mvaddstr, NULL)
  PHP_FE(ncurses_mvdelch, NULL)
  PHP_FE(ncurses_mvgetch, NULL)
  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_mvhline, NULL)
  PHP_FE(ncurses_mvcur, NULL)
  PHP_FE(ncurses_init_color, NULL)
  PHP_FE(ncurses_border, NULL)
  PHP_FE(ncurses_assume_default_colors, NULL)
  PHP_FE(ncurses_define_key, NULL)
  PHP_FE(ncurses_hline, NULL)
  PHP_FE(ncurses_vline, NULL)
  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_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)
  PHP_FE(ncurses_wcolor_set, NULL)
  PHP_FE(ncurses_wgetch, NULL)
  PHP_FE(ncurses_keypad, NULL)
  PHP_FE(ncurses_wmove, NULL)
  {NULL, NULL, NULL}  /* Must be the last line in ncurses_functions[] */
};

/*
 * Local variables:
 * tab-width: 4
 * c-basic-offset: 4
 * End:
 * vim600: sw=4 ts=4 fdm=marker
 * vim<600: sw=4 ts=4
 */