~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/ncurses/ncurses_fe.c

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
   +----------------------------------------------------------------------+
 
3
   | PHP Version 5                                                        |
 
4
   +----------------------------------------------------------------------+
 
5
   | Copyright (c) 1997-2004 The PHP Group                                |
 
6
   +----------------------------------------------------------------------+
 
7
   | This source file is subject to version 3.0 of the PHP license,       |
 
8
   | that is bundled with this package in the file LICENSE, and is        |
 
9
   | available through the world-wide-web at the following url:           |
 
10
   | http://www.php.net/license/3_0.txt.                                  |
 
11
   | If you did not receive a copy of the PHP license and are unable to   |
 
12
   | obtain it through the world-wide-web, please send a note to          |
 
13
   | license@php.net so we can mail you a copy immediately.               |
 
14
   +----------------------------------------------------------------------+
 
15
   | Authors: Hartmut Holzgraefe <hholzgra@php.net>                       |
 
16
   |          Georg Richter <georg.richter@php-ev.de>                     |
 
17
   +----------------------------------------------------------------------+
 
18
 */
 
19
 
 
20
#ifdef HAVE_CONFIG_H
 
21
#include "config.h"
 
22
#endif
 
23
 
 
24
#include "php.h"
 
25
#include "php_ini.h"
 
26
#include "php_ncurses.h"
 
27
 
 
28
static 
 
29
        ZEND_BEGIN_ARG_INFO(firstandsecond_args_force_ref, 0)
 
30
                ZEND_ARG_PASS_INFO(1)
 
31
                ZEND_ARG_PASS_INFO(1)
 
32
        ZEND_END_ARG_INFO();
 
33
 
 
34
static
 
35
        ZEND_BEGIN_ARG_INFO(secondandthird_args_force_ref, 0)
 
36
                ZEND_ARG_PASS_INFO(0)
 
37
                ZEND_ARG_PASS_INFO(1)
 
38
                ZEND_ARG_PASS_INFO(1)
 
39
        ZEND_END_ARG_INFO();
 
40
 
 
41
static 
 
42
        ZEND_BEGIN_ARG_INFO(second_thru_fourth_args_force_ref, 0)
 
43
                ZEND_ARG_PASS_INFO(0)
 
44
                ZEND_ARG_PASS_INFO(1)
 
45
                ZEND_ARG_PASS_INFO(1)
 
46
                ZEND_ARG_PASS_INFO(1)
 
47
        ZEND_END_ARG_INFO();
 
48
 
 
49
/* ncurses_functions[]
 
50
 *
 
51
 * Every user visible function must have an entry in ncurses_functions[].
 
52
 */
 
53
function_entry ncurses_functions[] = {
 
54
        PHP_FE(ncurses_addch,                   NULL)
 
55
#ifdef HAVE_NCURSES_COLOR_SET
 
56
        PHP_FE(ncurses_color_set,               NULL)
 
57
#endif
 
58
        PHP_FE(ncurses_delwin,                  NULL)
 
59
        PHP_FE(ncurses_end,                     NULL)
 
60
        PHP_FE(ncurses_getch,                   NULL)
 
61
        PHP_FE(ncurses_has_colors,              NULL)
 
62
        PHP_FE(ncurses_init,                    NULL)
 
63
        PHP_FE(ncurses_init_pair,               NULL)
 
64
        PHP_FE(ncurses_color_content,           second_thru_fourth_args_force_ref)
 
65
        PHP_FE(ncurses_pair_content,            secondandthird_args_force_ref)
 
66
        PHP_FE(ncurses_move,                    NULL)
 
67
        PHP_FE(ncurses_newwin,                  NULL)
 
68
        PHP_FE(ncurses_refresh,                 NULL)
 
69
        PHP_FE(ncurses_start_color,             NULL)
 
70
        PHP_FE(ncurses_standout,                NULL)
 
71
        PHP_FE(ncurses_standend,                NULL)
 
72
        PHP_FE(ncurses_baudrate,                NULL)
 
73
        PHP_FE(ncurses_beep,                    NULL)
 
74
        PHP_FE(ncurses_can_change_color,        NULL)
 
75
        PHP_FE(ncurses_cbreak,                  NULL)
 
76
        PHP_FE(ncurses_clear,                   NULL)
 
77
        PHP_FE(ncurses_clrtobot,                NULL)
 
78
        PHP_FE(ncurses_clrtoeol,                NULL)
 
79
        PHP_FE(ncurses_def_prog_mode,           NULL)
 
80
        PHP_FE(ncurses_reset_prog_mode,         NULL)
 
81
        PHP_FE(ncurses_def_shell_mode,          NULL)
 
82
        PHP_FE(ncurses_reset_shell_mode,        NULL)
 
83
        PHP_FE(ncurses_delch,                   NULL)
 
84
        PHP_FE(ncurses_deleteln,                NULL)
 
85
        PHP_FE(ncurses_doupdate,                NULL)
 
86
        PHP_FE(ncurses_echo,                    NULL)
 
87
        PHP_FE(ncurses_erase,                   NULL)
 
88
        PHP_FE(ncurses_werase,                  NULL)
 
89
        PHP_FE(ncurses_erasechar,               NULL)
 
90
        PHP_FE(ncurses_flash,                   NULL)
 
91
        PHP_FE(ncurses_flushinp,                NULL)
 
92
        PHP_FE(ncurses_has_ic,                  NULL)
 
93
        PHP_FE(ncurses_has_il,                  NULL)
 
94
        PHP_FE(ncurses_inch,                    NULL)
 
95
        PHP_FE(ncurses_insertln,                NULL)
 
96
        PHP_FE(ncurses_isendwin,                NULL)
 
97
        PHP_FE(ncurses_killchar,                NULL)
 
98
        PHP_FE(ncurses_nl,                      NULL)
 
99
        PHP_FE(ncurses_nocbreak,                NULL)
 
100
        PHP_FE(ncurses_noecho,                  NULL)
 
101
        PHP_FE(ncurses_nonl,                    NULL)
 
102
        PHP_FE(ncurses_noraw,                   NULL)
 
103
        PHP_FE(ncurses_raw,                     NULL)
 
104
        PHP_FE(ncurses_meta,                    NULL)
 
105
        PHP_FE(ncurses_resetty,                 NULL)
 
106
        PHP_FE(ncurses_savetty,                 NULL)
 
107
        PHP_FE(ncurses_termattrs,               NULL)
 
108
        PHP_FE(ncurses_use_default_colors,      NULL)
 
109
        PHP_FE(ncurses_slk_attr,                NULL)
 
110
        PHP_FE(ncurses_slk_clear,               NULL)
 
111
        PHP_FE(ncurses_slk_noutrefresh,         NULL)
 
112
        PHP_FE(ncurses_slk_refresh,             NULL)
 
113
        PHP_FE(ncurses_slk_restore,             NULL)
 
114
        PHP_FE(ncurses_slk_touch,               NULL)
 
115
        PHP_FE(ncurses_attroff,                 NULL)
 
116
        PHP_FE(ncurses_attron,                  NULL)
 
117
        PHP_FE(ncurses_attrset,                 NULL)
 
118
        PHP_FE(ncurses_bkgd,                    NULL)
 
119
        PHP_FE(ncurses_curs_set,                NULL)
 
120
        PHP_FE(ncurses_delay_output,            NULL)
 
121
        PHP_FE(ncurses_echochar,                NULL)
 
122
        PHP_FE(ncurses_halfdelay,               NULL)
 
123
        PHP_FE(ncurses_has_key,                 NULL)
 
124
        PHP_FE(ncurses_insch,                   NULL)
 
125
        PHP_FE(ncurses_insdelln,                NULL)
 
126
        PHP_FE(ncurses_mouseinterval,           NULL)
 
127
        PHP_FE(ncurses_napms,                   NULL)
 
128
        PHP_FE(ncurses_scrl,                    NULL)
 
129
        PHP_FE(ncurses_slk_attroff,             NULL)
 
130
        PHP_FE(ncurses_slk_attron,              NULL)
 
131
        PHP_FE(ncurses_slk_attrset,             NULL)
 
132
#ifdef HAVE_NCURSES_SLK_COLOR
 
133
        PHP_FE(ncurses_slk_color,               NULL)
 
134
#endif
 
135
        PHP_FE(ncurses_slk_init,                NULL)
 
136
        PHP_FE(ncurses_slk_set,                 NULL)
 
137
        PHP_FE(ncurses_typeahead,               NULL)
 
138
        PHP_FE(ncurses_ungetch,                 NULL)
 
139
        PHP_FE(ncurses_vidattr,                 NULL)
 
140
        PHP_FE(ncurses_wrefresh,                NULL)
 
141
#ifdef HAVE_NCURSES_USE_EXTENDED_NAMES
 
142
        PHP_FE(ncurses_use_extended_names,      NULL)
 
143
#endif
 
144
        PHP_FE(ncurses_bkgdset,                 NULL)
 
145
        PHP_FE(ncurses_filter,                  NULL)
 
146
        PHP_FE(ncurses_noqiflush,               NULL)
 
147
        PHP_FE(ncurses_qiflush,                 NULL)
 
148
        PHP_FE(ncurses_timeout,                 NULL)
 
149
        PHP_FE(ncurses_use_env,                 NULL)
 
150
        PHP_FE(ncurses_addstr,                  NULL)
 
151
        PHP_FE(ncurses_putp,                    NULL)
 
152
        PHP_FE(ncurses_scr_dump,                NULL)
 
153
        PHP_FE(ncurses_scr_init,                NULL)
 
154
        PHP_FE(ncurses_scr_restore,             NULL)
 
155
        PHP_FE(ncurses_scr_set,                 NULL)
 
156
        PHP_FE(ncurses_mvaddch,                 NULL)
 
157
        PHP_FE(ncurses_mvaddchnstr,             NULL)
 
158
        PHP_FE(ncurses_addchnstr,               NULL)
 
159
        PHP_FE(ncurses_mvaddchstr,              NULL)
 
160
        PHP_FE(ncurses_addchstr,                NULL)
 
161
        PHP_FE(ncurses_mvaddnstr,               NULL)
 
162
        PHP_FE(ncurses_addnstr,                 NULL)
 
163
        PHP_FE(ncurses_mvaddstr,                NULL)
 
164
        PHP_FE(ncurses_mvdelch,                 NULL)
 
165
        PHP_FE(ncurses_mvgetch,                 NULL)
 
166
        PHP_FE(ncurses_mvinch,                  NULL)
 
167
        PHP_FE(ncurses_mvwaddstr,               NULL)
 
168
        PHP_FE(ncurses_insstr,                  NULL)
 
169
        PHP_FE(ncurses_instr,                   first_arg_force_ref)
 
170
        PHP_FE(ncurses_mvhline,                 NULL)
 
171
        PHP_FE(ncurses_mvcur,                   NULL)
 
172
        PHP_FE(ncurses_init_color,              NULL)
 
173
        PHP_FE(ncurses_border,                  NULL)
 
174
#ifdef HAVE_NCURSES_ASSUME_DEFAULT_COLORS
 
175
        PHP_FE(ncurses_assume_default_colors,   NULL)
 
176
#endif
 
177
        PHP_FE(ncurses_define_key,      NULL)
 
178
        PHP_FE(ncurses_hline,           NULL)
 
179
        PHP_FE(ncurses_vline,           NULL)
 
180
        PHP_FE(ncurses_keyok,           NULL)
 
181
        PHP_FE(ncurses_termname,        NULL)
 
182
        PHP_FE(ncurses_longname,        NULL)
 
183
        PHP_FE(ncurses_mousemask,       second_arg_force_ref)
 
184
        PHP_FE(ncurses_getmouse,        first_arg_force_ref)
 
185
        PHP_FE(ncurses_ungetmouse,      NULL)
 
186
        PHP_FE(ncurses_mouse_trafo,     firstandsecond_args_force_ref)
 
187
        PHP_FE(ncurses_wmouse_trafo,    secondandthird_args_force_ref)
 
188
        PHP_FE(ncurses_waddstr,         NULL)
 
189
        PHP_FE(ncurses_wnoutrefresh,    NULL)
 
190
        PHP_FE(ncurses_wclear,          NULL)
 
191
#ifdef HAVE_NCURSES_COLOR_SET
 
192
        PHP_FE(ncurses_wcolor_set,      NULL)
 
193
#endif
 
194
        PHP_FE(ncurses_wgetch,          NULL)
 
195
        PHP_FE(ncurses_keypad,          NULL)
 
196
        PHP_FE(ncurses_wmove,           NULL)
 
197
 
 
198
        PHP_FE(ncurses_newpad,          NULL)
 
199
        PHP_FE(ncurses_prefresh,        NULL)
 
200
        PHP_FE(ncurses_pnoutrefresh,    NULL)
 
201
        PHP_FE(ncurses_wstandout,       NULL)
 
202
        PHP_FE(ncurses_wstandend,       NULL)
 
203
        PHP_FE(ncurses_wattrset,        NULL)
 
204
        PHP_FE(ncurses_wattron,         NULL)
 
205
        PHP_FE(ncurses_wattroff,        NULL)
 
206
        PHP_FE(ncurses_waddch,          NULL)
 
207
        PHP_FE(ncurses_wborder,         NULL)
 
208
        PHP_FE(ncurses_whline,          NULL)
 
209
        PHP_FE(ncurses_wvline,          NULL)
 
210
        PHP_FE(ncurses_getyx,           secondandthird_args_force_ref)
 
211
        PHP_FE(ncurses_getmaxyx,        secondandthird_args_force_ref)
 
212
        
 
213
#if HAVE_NCURSES_PANEL
 
214
        PHP_FE(ncurses_update_panels,   NULL)
 
215
        PHP_FE(ncurses_panel_window,    NULL)
 
216
        PHP_FE(ncurses_panel_below,     NULL)
 
217
        PHP_FE(ncurses_panel_above,     NULL)
 
218
        PHP_FE(ncurses_replace_panel,   NULL)
 
219
        PHP_FE(ncurses_move_panel,      NULL)
 
220
        PHP_FE(ncurses_bottom_panel,    NULL)
 
221
        PHP_FE(ncurses_top_panel,       NULL)
 
222
        PHP_FE(ncurses_show_panel,      NULL)
 
223
        PHP_FE(ncurses_hide_panel,      NULL)
 
224
        PHP_FE(ncurses_del_panel,       NULL)
 
225
        PHP_FE(ncurses_new_panel,       NULL)
 
226
#endif
 
227
 
 
228
  {NULL, NULL, NULL}  /* Must be the last line in ncurses_functions[] */
 
229
};
 
230
 
 
231
/*
 
232
 * Local variables:
 
233
 * tab-width: 4
 
234
 * c-basic-offset: 4
 
235
 * End:
 
236
 * vim600: sw=4 ts=4 fdm=marker
 
237
 * vim<600: sw=4 ts=4
 
238
 */