2 * DO NOT EDIT THIS FILE BY HAND!
3 * It is generated by ./base/MKlib_gen.sh generated.
5 * This is a file of trivial functions generated from macro
6 * definitions in curses.h to satisfy the XSI Curses requirement
7 * that every macro also exist as a callable function.
9 * It will never be linked unless you call one of the entry
10 * points with its normal macro definition disabled. In that
11 * case, if you have no shared libraries, it will indirectly
12 * pull most of the rest of the library into your link image.
14 #define NCURSES_ATTR_T int
15 #include <ncurses_cfg.h>
17 #undef NCURSES_NOMACROS /* _this_ file uses macros */
19 #include <curses.priv.h>
27 NCURSES_EXPORT(int) (addch
) (const chtype z
)
29 T((T_CALLED("addch(%s)"), _tracechtype2(0,z
))); returnCode(waddch(stdscr
,z
));
33 NCURSES_EXPORT(int) (addchnstr
) (const chtype
* a1
, int z
)
35 T((T_CALLED("addchnstr(%p,%d)"), (const void *)a1
, z
)); returnCode(waddchnstr(stdscr
,a1
,z
));
39 NCURSES_EXPORT(int) (addchstr
) (const chtype
* z
)
41 T((T_CALLED("addchstr(%p)"), (const void *)z
)); returnCode(waddchnstr(stdscr
,z
,-1));
45 NCURSES_EXPORT(int) (addnstr
) (const char * a1
, int z
)
47 T((T_CALLED("addnstr(%s,%d)"), _nc_visbuf2(0,a1
), z
)); returnCode(waddnstr(stdscr
,a1
,z
));
51 NCURSES_EXPORT(int) (addstr
) (const char * z
)
53 T((T_CALLED("addstr(%s)"), _nc_visbuf2(0,z
))); returnCode(waddnstr(stdscr
,z
,-1));
57 NCURSES_EXPORT(int) (attroff
) (int z
)
59 T((T_CALLED("attroff(%s)"), _traceattr2(0,(chtype
)z
))); returnCode(wattr_off(stdscr
, (attr_t
)(z
), ((void *)0)));
63 NCURSES_EXPORT(int) (attron
) (int z
)
65 T((T_CALLED("attron(%s)"), _traceattr2(0,(chtype
)z
))); returnCode(wattr_on(stdscr
, (attr_t
)(z
), ((void *)0)));
69 NCURSES_EXPORT(int) (attrset
) (int z
)
71 T((T_CALLED("attrset(%s)"), _traceattr2(0,(chtype
)z
))); returnIntAttr((attr_t
)((stdscr
) ? ((stdscr
)->_attrs
= (attr_t
)(z
), (0)) : (-1)));
75 NCURSES_EXPORT(int) (attr_get
) (attr_t
* a1
, short * a2
, void * z
)
77 T((T_CALLED("attr_get(%p,%p,%p)"), (const void *)a1
, (const void *)a2
, (const void *)z
)); returnCode(((void)((a1
) != (void *)0 && (*(a1
) = (stdscr
)->_attrs
)), (void)((a2
) != (void *)0 && (*(a2
) = (short)((int)((((unsigned long)((stdscr
)->_attrs
) & ((((1UL) << 8) - 1UL) << ((0) + 8))) >> 8))))), (0)));
81 NCURSES_EXPORT(int) (attr_off
) (attr_t a1
, void * z
)
83 T((T_CALLED("attr_off(%s,%p)"), _traceattr2(0,a1
), (const void *)z
)); returnCode(wattr_off(stdscr
,a1
,z
));
87 NCURSES_EXPORT(int) (attr_on
) (attr_t a1
, void * z
)
89 T((T_CALLED("attr_on(%s,%p)"), _traceattr2(0,a1
), (const void *)z
)); returnCode(wattr_on(stdscr
,a1
,z
));
93 NCURSES_EXPORT(int) (attr_set
) (attr_t a1
, short a2
, void * z
)
95 T((T_CALLED("attr_set(%s,%d,%p)"), _traceattr2(0,a1
), a2
, (const void *)z
)); returnCode(((stdscr
)->_attrs
= (((a1
) & ~((((1UL) << 8) - 1UL) << ((0) + 8))) | (attr_t
)((a2
) << ((0) + 8))), (0)));
99 NCURSES_EXPORT(int) (bkgd
) (chtype z
)
101 T((T_CALLED("bkgd(%s)"), _tracechtype2(0,z
))); returnCode(wbkgd(stdscr
,z
));
105 NCURSES_EXPORT(void) (bkgdset
) (chtype z
)
107 T((T_CALLED("bkgdset(%s)"), _tracechtype2(0,z
))); wbkgdset(stdscr
,z
);
112 NCURSES_EXPORT(int) (border
) (chtype a1
, chtype a2
, chtype a3
, chtype a4
, chtype a5
, chtype a6
, chtype a7
, chtype z
)
114 T((T_CALLED("border(%s,%s,%s,%s,%s,%s,%s,%s)"), _tracechtype2(0,a1
), _tracechtype2(1,a2
), _tracechtype2(2,a3
), _tracechtype2(3,a4
), _tracechtype2(4,a5
), _tracechtype2(5,a6
), _tracechtype2(6,a7
), _tracechtype2(7,z
))); returnCode(wborder(stdscr
, a1
, a2
, a3
, a4
, a5
, a6
, a7
, z
));
118 NCURSES_EXPORT(int) (box
) (WINDOW
* a1
, chtype a2
, chtype z
)
120 T((T_CALLED("box(%p,%s,%s)"), (const void *)a1
, _tracechtype2(1,a2
), _tracechtype2(2,z
))); returnCode(wborder(a1
, a2
, a2
, z
, z
, 0, 0, 0, 0));
124 NCURSES_EXPORT(int) (chgat
) (int a1
, attr_t a2
, short a3
, const void * z
)
126 T((T_CALLED("chgat(%d,%s,%d,%p)"), a1
, _traceattr2(1,a2
), a3
, (const void *)z
)); returnCode(wchgat(stdscr
,a1
,a2
,a3
,z
));
130 NCURSES_EXPORT(int) (clear
) (void)
132 T((T_CALLED("clear()"))); returnCode(wclear(stdscr
));
136 NCURSES_EXPORT(int) (clrtobot
) (void)
138 T((T_CALLED("clrtobot()"))); returnCode(wclrtobot(stdscr
));
142 NCURSES_EXPORT(int) (clrtoeol
) (void)
144 T((T_CALLED("clrtoeol()"))); returnCode(wclrtoeol(stdscr
));
148 NCURSES_EXPORT(int) (color_set
) (short a1
, void * z
)
150 T((T_CALLED("color_set(%d,%p)"), a1
, (const void *)z
)); returnCode(wcolor_set(stdscr
,a1
,z
));
154 NCURSES_EXPORT(int) (COLOR_PAIR
) (int z
)
156 T((T_CALLED("COLOR_PAIR(%d)"), z
)); returnCode(((z
) << ((0) + 8)));
160 NCURSES_EXPORT(int) (delch
) (void)
162 T((T_CALLED("delch()"))); returnCode(wdelch(stdscr
));
166 NCURSES_EXPORT(int) (deleteln
) (void)
168 T((T_CALLED("deleteln()"))); returnCode(winsdelln(stdscr
,-1));
172 NCURSES_EXPORT(int) (echochar
) (const chtype z
)
174 T((T_CALLED("echochar(%s)"), _tracechtype2(0,z
))); returnCode(wechochar(stdscr
,z
));
178 NCURSES_EXPORT(int) (erase
) (void)
180 T((T_CALLED("erase()"))); returnCode(werase(stdscr
));
184 NCURSES_EXPORT(chtype
) (getbkgd
) (WINDOW
* z
)
186 T((T_CALLED("getbkgd(%p)"), (const void *)z
)); returnChtype(((z
)->_bkgd
));
190 NCURSES_EXPORT(int) (getch
) (void)
192 T((T_CALLED("getch()"))); returnCode(wgetch(stdscr
));
196 NCURSES_EXPORT(int) (getnstr
) (char * a1
, int z
)
198 T((T_CALLED("getnstr(%s,%d)"), _nc_visbuf2(0,a1
), z
)); returnCode(wgetnstr(stdscr
, a1
, z
));
202 NCURSES_EXPORT(int) (getstr
) (char * z
)
204 T((T_CALLED("getstr(%s)"), _nc_visbuf2(0,z
))); returnCode(wgetnstr(stdscr
, z
, -1));
208 NCURSES_EXPORT(int) (hline
) (chtype a1
, int z
)
210 T((T_CALLED("hline(%s,%d)"), _tracechtype2(0,a1
), z
)); returnCode(whline(stdscr
, a1
, z
));
214 NCURSES_EXPORT(chtype
) (inch
) (void)
216 T((T_CALLED("inch()"))); returnChtype(winch(stdscr
));
220 NCURSES_EXPORT(int) (inchnstr
) (chtype
* a1
, int z
)
222 T((T_CALLED("inchnstr(%p,%d)"), (const void *)a1
, z
)); returnCode(winchnstr(stdscr
,a1
,z
));
226 NCURSES_EXPORT(int) (inchstr
) (chtype
* z
)
228 T((T_CALLED("inchstr(%p)"), (const void *)z
)); returnCode(winchnstr(stdscr
, z
, -1));
232 NCURSES_EXPORT(int) (innstr
) (char * a1
, int z
)
234 return winnstr(stdscr
,a1
,z
) ;
238 NCURSES_EXPORT(int) (insch
) (chtype z
)
240 T((T_CALLED("insch(%s)"), _tracechtype2(0,z
))); returnCode(winsch(stdscr
,z
));
244 NCURSES_EXPORT(int) (insdelln
) (int z
)
246 T((T_CALLED("insdelln(%d)"), z
)); returnCode(winsdelln(stdscr
,z
));
250 NCURSES_EXPORT(int) (insertln
) (void)
252 T((T_CALLED("insertln()"))); returnCode(winsdelln(stdscr
,1));
256 NCURSES_EXPORT(int) (insnstr
) (const char * a1
, int z
)
258 T((T_CALLED("insnstr(%s,%d)"), _nc_visbuf2(0,a1
), z
)); returnCode(winsnstr(stdscr
,a1
,z
));
262 NCURSES_EXPORT(int) (insstr
) (const char * z
)
264 T((T_CALLED("insstr(%s)"), _nc_visbuf2(0,z
))); returnCode(winsnstr(stdscr
, z
, -1));
268 NCURSES_EXPORT(int) (instr
) (char * z
)
270 T((T_CALLED("instr(%s)"), _nc_visbuf2(0,z
))); returnCode(winnstr(stdscr
, z
, -1));
274 NCURSES_EXPORT(int) (move
) (int a1
, int z
)
276 T((T_CALLED("move(%d,%d)"), a1
, z
)); returnCode(wmove(stdscr
,a1
,z
));
280 NCURSES_EXPORT(int) (mvaddch
) (int a1
, int a2
, const chtype z
)
282 T((T_CALLED("mvaddch(%d,%d,%s)"), a1
, a2
, _tracechtype2(2,z
))); returnCode((wmove(stdscr
,a1
,a2
) == (-1) ? (-1) : waddch(stdscr
,z
)));
286 NCURSES_EXPORT(int) (mvaddchnstr
) (int a1
, int a2
, const chtype
* a3
, int z
)
288 T((T_CALLED("mvaddchnstr(%d,%d,%p,%d)"), a1
, a2
, (const void *)a3
, z
)); returnCode((wmove(stdscr
,a1
,a2
) == (-1) ? (-1) : waddchnstr(stdscr
,a3
,z
)));
292 NCURSES_EXPORT(int) (mvaddchstr
) (int a1
, int a2
, const chtype
* z
)
294 T((T_CALLED("mvaddchstr(%d,%d,%p)"), a1
, a2
, (const void *)z
)); returnCode((wmove(stdscr
,a1
,a2
) == (-1) ? (-1) : waddchnstr(stdscr
,z
,-1)));
298 NCURSES_EXPORT(int) (mvaddnstr
) (int a1
, int a2
, const char * a3
, int z
)
300 T((T_CALLED("mvaddnstr(%d,%d,%s,%d)"), a1
, a2
, _nc_visbuf2(2,a3
), z
)); returnCode((wmove(stdscr
,a1
,a2
) == (-1) ? (-1) : waddnstr(stdscr
,a3
,z
)));
304 NCURSES_EXPORT(int) (mvaddstr
) (int a1
, int a2
, const char * z
)
306 T((T_CALLED("mvaddstr(%d,%d,%s)"), a1
, a2
, _nc_visbuf2(2,z
))); returnCode((wmove(stdscr
,a1
,a2
) == (-1) ? (-1) : waddnstr(stdscr
,z
,-1)));
310 NCURSES_EXPORT(int) (mvchgat
) (int a1
, int a2
, int a3
, attr_t a4
, short a5
, const void * z
)
312 T((T_CALLED("mvchgat(%d,%d,%d,%s,%d,%p)"), a1
, a2
, a3
, _traceattr2(3,a4
), a5
, (const void *)z
)); returnCode((wmove(stdscr
,a1
,a2
) == (-1) ? (-1) : wchgat(stdscr
,a3
,a4
,a5
,z
)));
316 NCURSES_EXPORT(int) (mvdelch
) (int a1
, int z
)
318 T((T_CALLED("mvdelch(%d,%d)"), a1
, z
)); returnCode((wmove(stdscr
,a1
,z
) == (-1) ? (-1) : wdelch(stdscr
)));
322 NCURSES_EXPORT(int) (mvgetch
) (int a1
, int z
)
324 T((T_CALLED("mvgetch(%d,%d)"), a1
, z
)); returnCode((wmove(stdscr
,a1
,z
) == (-1) ? (-1) : wgetch(stdscr
)));
328 NCURSES_EXPORT(int) (mvgetnstr
) (int a1
, int a2
, char * a3
, int z
)
330 T((T_CALLED("mvgetnstr(%d,%d,%s,%d)"), a1
, a2
, _nc_visbuf2(2,a3
), z
)); returnCode((wmove(stdscr
,a1
,a2
) == (-1) ? (-1) : wgetnstr(stdscr
,a3
,z
)));
334 NCURSES_EXPORT(int) (mvgetstr
) (int a1
, int a2
, char * z
)
336 T((T_CALLED("mvgetstr(%d,%d,%s)"), a1
, a2
, _nc_visbuf2(2,z
))); returnCode((wmove(stdscr
,a1
,a2
) == (-1) ? (-1) : wgetnstr(stdscr
, z
, -1)));
340 NCURSES_EXPORT(int) (mvhline
) (int a1
, int a2
, chtype a3
, int z
)
342 T((T_CALLED("mvhline(%d,%d,%s,%d)"), a1
, a2
, _tracechtype2(2,a3
), z
)); returnCode((wmove(stdscr
,a1
,a2
) == (-1) ? (-1) : whline(stdscr
,a3
,z
)));
346 NCURSES_EXPORT(chtype
) (mvinch
) (int a1
, int z
)
348 T((T_CALLED("mvinch(%d,%d)"), a1
, z
)); returnChtype((wmove(stdscr
,a1
,z
) == (-1) ? (chtype
)((-1)) : winch(stdscr
)));
352 NCURSES_EXPORT(int) (mvinchnstr
) (int a1
, int a2
, chtype
* a3
, int z
)
354 T((T_CALLED("mvinchnstr(%d,%d,%p,%d)"), a1
, a2
, (const void *)a3
, z
)); returnCode((wmove(stdscr
,a1
,a2
) == (-1) ? (-1) : winchnstr(stdscr
,a3
,z
)));
358 NCURSES_EXPORT(int) (mvinchstr
) (int a1
, int a2
, chtype
* z
)
360 T((T_CALLED("mvinchstr(%d,%d,%p)"), a1
, a2
, (const void *)z
)); returnCode((wmove(stdscr
,a1
,a2
) == (-1) ? (-1) : winchnstr(stdscr
, z
, -1)));
364 NCURSES_EXPORT(int) (mvinnstr
) (int a1
, int a2
, char * a3
, int z
)
366 return (wmove(stdscr
,a1
,a2
) == (-1) ? (-1) : winnstr(stdscr
,a3
,z
)) ;
370 NCURSES_EXPORT(int) (mvinsch
) (int a1
, int a2
, chtype z
)
372 T((T_CALLED("mvinsch(%d,%d,%s)"), a1
, a2
, _tracechtype2(2,z
))); returnCode((wmove(stdscr
,a1
,a2
) == (-1) ? (-1) : winsch(stdscr
,z
)));
376 NCURSES_EXPORT(int) (mvinsnstr
) (int a1
, int a2
, const char * a3
, int z
)
378 T((T_CALLED("mvinsnstr(%d,%d,%s,%d)"), a1
, a2
, _nc_visbuf2(2,a3
), z
)); returnCode((wmove(stdscr
,a1
,a2
) == (-1) ? (-1) : winsnstr(stdscr
,a3
,z
)));
382 NCURSES_EXPORT(int) (mvinsstr
) (int a1
, int a2
, const char * z
)
384 T((T_CALLED("mvinsstr(%d,%d,%s)"), a1
, a2
, _nc_visbuf2(2,z
))); returnCode((wmove(stdscr
,a1
,a2
) == (-1) ? (-1) : winsnstr(stdscr
, z
, -1)));
388 NCURSES_EXPORT(int) (mvinstr
) (int a1
, int a2
, char * z
)
390 T((T_CALLED("mvinstr(%d,%d,%s)"), a1
, a2
, _nc_visbuf2(2,z
))); returnCode((wmove(stdscr
,a1
,a2
) == (-1) ? (-1) : winnstr(stdscr
, z
, -1)));
394 NCURSES_EXPORT(int) (mvvline
) (int a1
, int a2
, chtype a3
, int z
)
396 T((T_CALLED("mvvline(%d,%d,%s,%d)"), a1
, a2
, _tracechtype2(2,a3
), z
)); returnCode((wmove(stdscr
,a1
,a2
) == (-1) ? (-1) : wvline(stdscr
,a3
,z
)));
400 NCURSES_EXPORT(int) (mvwaddch
) (WINDOW
* a1
, int a2
, int a3
, const chtype z
)
402 T((T_CALLED("mvwaddch(%p,%d,%d,%s)"), (const void *)a1
, a2
, a3
, _tracechtype2(3,z
))); returnCode((wmove(a1
,a2
,a3
) == (-1) ? (-1) : waddch(a1
,z
)));
406 NCURSES_EXPORT(int) (mvwaddchnstr
) (WINDOW
* a1
, int a2
, int a3
, const chtype
* a4
, int z
)
408 T((T_CALLED("mvwaddchnstr(%p,%d,%d,%p,%d)"), (const void *)a1
, a2
, a3
, (const void *)a4
, z
)); returnCode((wmove(a1
,a2
,a3
) == (-1) ? (-1) : waddchnstr(a1
,a4
,z
)));
412 NCURSES_EXPORT(int) (mvwaddchstr
) (WINDOW
* a1
, int a2
, int a3
, const chtype
* z
)
414 T((T_CALLED("mvwaddchstr(%p,%d,%d,%p)"), (const void *)a1
, a2
, a3
, (const void *)z
)); returnCode((wmove(a1
,a2
,a3
) == (-1) ? (-1) : waddchnstr(a1
,z
,-1)));
418 NCURSES_EXPORT(int) (mvwaddnstr
) (WINDOW
* a1
, int a2
, int a3
, const char * a4
, int z
)
420 T((T_CALLED("mvwaddnstr(%p,%d,%d,%s,%d)"), (const void *)a1
, a2
, a3
, _nc_visbuf2(3,a4
), z
)); returnCode((wmove(a1
,a2
,a3
) == (-1) ? (-1) : waddnstr(a1
,a4
,z
)));
424 NCURSES_EXPORT(int) (mvwaddstr
) (WINDOW
* a1
, int a2
, int a3
, const char * z
)
426 T((T_CALLED("mvwaddstr(%p,%d,%d,%s)"), (const void *)a1
, a2
, a3
, _nc_visbuf2(3,z
))); returnCode((wmove(a1
,a2
,a3
) == (-1) ? (-1) : waddnstr(a1
,z
,-1)));
430 NCURSES_EXPORT(int) (mvwchgat
) (WINDOW
* a1
, int a2
, int a3
, int a4
, attr_t a5
, short a6
, const void * z
)
432 T((T_CALLED("mvwchgat(%p,%d,%d,%d,%s,%d,%p)"), (const void *)a1
, a2
, a3
, a4
, _traceattr2(4,a5
), a6
, (const void *)z
)); returnCode((wmove(a1
,a2
,a3
) == (-1) ? (-1) : wchgat(a1
,a4
,a5
,a6
,z
)));
436 NCURSES_EXPORT(int) (mvwdelch
) (WINDOW
* a1
, int a2
, int z
)
438 T((T_CALLED("mvwdelch(%p,%d,%d)"), (const void *)a1
, a2
, z
)); returnCode((wmove(a1
,a2
,z
) == (-1) ? (-1) : wdelch(a1
)));
442 NCURSES_EXPORT(int) (mvwgetch
) (WINDOW
* a1
, int a2
, int z
)
444 T((T_CALLED("mvwgetch(%p,%d,%d)"), (const void *)a1
, a2
, z
)); returnCode((wmove(a1
,a2
,z
) == (-1) ? (-1) : wgetch(a1
)));
448 NCURSES_EXPORT(int) (mvwgetnstr
) (WINDOW
* a1
, int a2
, int a3
, char * a4
, int z
)
450 T((T_CALLED("mvwgetnstr(%p,%d,%d,%s,%d)"), (const void *)a1
, a2
, a3
, _nc_visbuf2(3,a4
), z
)); returnCode((wmove(a1
,a2
,a3
) == (-1) ? (-1) : wgetnstr(a1
,a4
,z
)));
454 NCURSES_EXPORT(int) (mvwgetstr
) (WINDOW
* a1
, int a2
, int a3
, char * z
)
456 T((T_CALLED("mvwgetstr(%p,%d,%d,%s)"), (const void *)a1
, a2
, a3
, _nc_visbuf2(3,z
))); returnCode((wmove(a1
,a2
,a3
) == (-1) ? (-1) : wgetnstr(a1
, z
, -1)));
460 NCURSES_EXPORT(int) (mvwhline
) (WINDOW
* a1
, int a2
, int a3
, chtype a4
, int z
)
462 T((T_CALLED("mvwhline(%p,%d,%d,%s,%d)"), (const void *)a1
, a2
, a3
, _tracechtype2(3,a4
), z
)); returnCode((wmove(a1
,a2
,a3
) == (-1) ? (-1) : whline(a1
,a4
,z
)));
466 NCURSES_EXPORT(chtype
) (mvwinch
) (WINDOW
* a1
, int a2
, int z
)
468 T((T_CALLED("mvwinch(%p,%d,%d)"), (const void *)a1
, a2
, z
)); returnChtype((wmove(a1
,a2
,z
) == (-1) ? (chtype
)((-1)) : winch(a1
)));
472 NCURSES_EXPORT(int) (mvwinchnstr
) (WINDOW
* a1
, int a2
, int a3
, chtype
* a4
, int z
)
474 T((T_CALLED("mvwinchnstr(%p,%d,%d,%p,%d)"), (const void *)a1
, a2
, a3
, (const void *)a4
, z
)); returnCode((wmove(a1
,a2
,a3
) == (-1) ? (-1) : winchnstr(a1
,a4
,z
)));
478 NCURSES_EXPORT(int) (mvwinchstr
) (WINDOW
* a1
, int a2
, int a3
, chtype
* z
)
480 T((T_CALLED("mvwinchstr(%p,%d,%d,%p)"), (const void *)a1
, a2
, a3
, (const void *)z
)); returnCode((wmove(a1
,a2
,a3
) == (-1) ? (-1) : winchnstr(a1
, z
, -1)));
484 NCURSES_EXPORT(int) (mvwinnstr
) (WINDOW
* a1
, int a2
, int a3
, char * a4
, int z
)
486 return (wmove(a1
,a2
,a3
) == (-1) ? (-1) : winnstr(a1
,a4
,z
)) ;
490 NCURSES_EXPORT(int) (mvwinsch
) (WINDOW
* a1
, int a2
, int a3
, chtype z
)
492 T((T_CALLED("mvwinsch(%p,%d,%d,%s)"), (const void *)a1
, a2
, a3
, _tracechtype2(3,z
))); returnCode((wmove(a1
,a2
,a3
) == (-1) ? (-1) : winsch(a1
,z
)));
496 NCURSES_EXPORT(int) (mvwinsnstr
) (WINDOW
* a1
, int a2
, int a3
, const char * a4
, int z
)
498 T((T_CALLED("mvwinsnstr(%p,%d,%d,%s,%d)"), (const void *)a1
, a2
, a3
, _nc_visbuf2(3,a4
), z
)); returnCode((wmove(a1
,a2
,a3
) == (-1) ? (-1) : winsnstr(a1
,a4
,z
)));
502 NCURSES_EXPORT(int) (mvwinsstr
) (WINDOW
* a1
, int a2
, int a3
, const char * z
)
504 T((T_CALLED("mvwinsstr(%p,%d,%d,%s)"), (const void *)a1
, a2
, a3
, _nc_visbuf2(3,z
))); returnCode((wmove(a1
,a2
,a3
) == (-1) ? (-1) : winsnstr(a1
, z
, -1)));
508 NCURSES_EXPORT(int) (mvwinstr
) (WINDOW
* a1
, int a2
, int a3
, char * z
)
510 T((T_CALLED("mvwinstr(%p,%d,%d,%s)"), (const void *)a1
, a2
, a3
, _nc_visbuf2(3,z
))); returnCode((wmove(a1
,a2
,a3
) == (-1) ? (-1) : winnstr(a1
, z
, -1)));
514 NCURSES_EXPORT(int) (mvwvline
) (WINDOW
* a1
, int a2
, int a3
, chtype a4
, int z
)
516 T((T_CALLED("mvwvline(%p,%d,%d,%s,%d)"), (const void *)a1
, a2
, a3
, _tracechtype2(3,a4
), z
)); returnCode((wmove(a1
,a2
,a3
) == (-1) ? (-1) : wvline(a1
,a4
,z
)));
520 NCURSES_EXPORT(int) (PAIR_NUMBER
) (int z
)
522 T((T_CALLED("PAIR_NUMBER(%d)"), z
)); returnCode(((int)((((unsigned long)(z
) & ((((1UL) << 8) - 1UL) << ((0) + 8))) >> 8))));
526 NCURSES_EXPORT(int) (redrawwin
) (WINDOW
* z
)
528 T((T_CALLED("redrawwin(%p)"), (const void *)z
)); returnCode(wredrawln(z
, 0, (z
)->_maxy
+1));
532 NCURSES_EXPORT(int) (refresh
) (void)
534 T((T_CALLED("refresh()"))); returnCode(wrefresh(stdscr
));
538 NCURSES_EXPORT(int) (scrl
) (int z
)
540 T((T_CALLED("scrl(%d)"), z
)); returnCode(wscrl(stdscr
,z
));
544 NCURSES_EXPORT(int) (scroll
) (WINDOW
* z
)
546 T((T_CALLED("scroll(%p)"), (const void *)z
)); returnCode(wscrl(z
,1));
550 NCURSES_EXPORT(int) (setscrreg
) (int a1
, int z
)
552 T((T_CALLED("setscrreg(%d,%d)"), a1
, z
)); returnCode(wsetscrreg(stdscr
,a1
,z
));
556 #if USE_WIDEC_SUPPORT
557 NCURSES_EXPORT(int) (slk_attr_off
) (const attr_t a1
, void * z
)
559 T((T_CALLED("slk_attr_off(%s,%p)"), _traceattr2(0,a1
), (const void *)z
)); returnCode(((z
) ? (-1) : slk_attroff(a1
)));
564 #if USE_WIDEC_SUPPORT
565 NCURSES_EXPORT(int) (slk_attr_on
) (attr_t a1
, void * z
)
567 T((T_CALLED("slk_attr_on(%s,%p)"), _traceattr2(0,a1
), (const void *)z
)); returnCode(((z
) ? (-1) : slk_attron(a1
)));
572 NCURSES_EXPORT(int) (standout
) (void)
574 T((T_CALLED("standout()"))); returnIntAttr((attr_t
)(((stdscr
) ? ((stdscr
)->_attrs
= (attr_t
)(((1UL) << ((8) + 8))), (0)) : (-1))));
578 NCURSES_EXPORT(int) (standend
) (void)
580 T((T_CALLED("standend()"))); returnIntAttr((attr_t
)(((stdscr
) ? ((stdscr
)->_attrs
= (attr_t
)((1UL - 1UL)), (0)) : (-1))));
584 NCURSES_EXPORT(void) (timeout
) (int z
)
586 T((T_CALLED("timeout(%d)"), z
)); wtimeout(stdscr
,z
);
591 NCURSES_EXPORT(int) (touchline
) (WINDOW
* a1
, int a2
, int z
)
593 T((T_CALLED("touchline(%p,%d,%d)"), (const void *)a1
, a2
, z
)); returnCode(wtouchln((a1
), a2
, z
, 1));
597 NCURSES_EXPORT(int) (touchwin
) (WINDOW
* z
)
599 T((T_CALLED("touchwin(%p)"), (const void *)z
)); returnCode(wtouchln((z
), 0, ((z
) ? ((z
)->_maxy
+ 1) : (-1)), 1));
603 NCURSES_EXPORT(int) (untouchwin
) (WINDOW
* z
)
605 T((T_CALLED("untouchwin(%p)"), (const void *)z
)); returnCode(wtouchln((z
), 0, ((z
) ? ((z
)->_maxy
+ 1) : (-1)), 0));
609 NCURSES_EXPORT(int) (vline
) (chtype a1
, int z
)
611 T((T_CALLED("vline(%s,%d)"), _tracechtype2(0,a1
), z
)); returnCode(wvline(stdscr
, a1
, z
));
615 NCURSES_EXPORT(int) (vw_printw
) (WINDOW
* a1
, const char * a2
, va_list z
)
617 T((T_CALLED("vw_printw(%p,%s,%s)"), (const void *)a1
, _nc_visbuf2(1,a2
), "va_list")); returnCode(vwprintw(a1
, a2
, z
));
621 NCURSES_EXPORT(int) (vw_scanw
) (WINDOW
* a1
, char * a2
, va_list z
)
623 T((T_CALLED("vw_scanw(%p,%s,%s)"), (const void *)a1
, _nc_visbuf2(1,a2
), "va_list")); returnCode(vwscanw(a1
, a2
, z
));
627 NCURSES_EXPORT(int) (waddchstr
) (WINDOW
* a1
, const chtype
* z
)
629 T((T_CALLED("waddchstr(%p,%p)"), (const void *)a1
, (const void *)z
)); returnCode(waddchnstr(a1
,z
,-1));
633 NCURSES_EXPORT(int) (waddstr
) (WINDOW
* a1
, const char * z
)
635 T((T_CALLED("waddstr(%p,%s)"), (const void *)a1
, _nc_visbuf2(1,z
))); returnCode(waddnstr(a1
,z
,-1));
639 NCURSES_EXPORT(int) (wattron
) (WINDOW
* a1
, int z
)
641 T((T_CALLED("wattron(%p,%d)"), (const void *)a1
, z
)); returnCode(wattr_on(a1
, (attr_t
)(z
), ((void *)0)));
645 NCURSES_EXPORT(int) (wattroff
) (WINDOW
* a1
, int z
)
647 T((T_CALLED("wattroff(%p,%d)"), (const void *)a1
, z
)); returnCode(wattr_off(a1
, (attr_t
)(z
), ((void *)0)));
651 NCURSES_EXPORT(int) (wattrset
) (WINDOW
* a1
, int z
)
653 T((T_CALLED("wattrset(%p,%d)"), (const void *)a1
, z
)); returnIntAttr((attr_t
)((a1
) ? ((a1
)->_attrs
= (attr_t
)(z
), (0)) : (-1)));
657 NCURSES_EXPORT(int) (wattr_get
) (WINDOW
* a1
, attr_t
* a2
, short * a3
, void * z
)
659 T((T_CALLED("wattr_get(%p,%p,%p,%p)"), (const void *)a1
, (const void *)a2
, (const void *)a3
, (const void *)z
)); returnCode(((void)((a2
) != (void *)0 && (*(a2
) = (a1
)->_attrs
)), (void)((a3
) != (void *)0 && (*(a3
) = (short)((int)((((unsigned long)((a1
)->_attrs
) & ((((1UL) << 8) - 1UL) << ((0) + 8))) >> 8))))), (0)));
663 NCURSES_EXPORT(int) (wattr_set
) (WINDOW
* a1
, attr_t a2
, short a3
, void * z
)
665 T((T_CALLED("wattr_set(%p,%s,%d,%p)"), (const void *)a1
, _traceattr2(1,a2
), a3
, (const void *)z
)); returnCode(((a1
)->_attrs
= (((a2
) & ~((((1UL) << 8) - 1UL) << ((0) + 8))) | (attr_t
)((a3
) << ((0) + 8))), (0)));
669 NCURSES_EXPORT(int) (wdeleteln
) (WINDOW
* z
)
671 T((T_CALLED("wdeleteln(%p)"), (const void *)z
)); returnCode(winsdelln(z
,-1));
675 NCURSES_EXPORT(int) (wgetstr
) (WINDOW
* a1
, char * z
)
677 T((T_CALLED("wgetstr(%p,%s)"), (const void *)a1
, _nc_visbuf2(1,z
))); returnCode(wgetnstr(a1
, z
, -1));
681 NCURSES_EXPORT(int) (winchstr
) (WINDOW
* a1
, chtype
* z
)
683 T((T_CALLED("winchstr(%p,%p)"), (const void *)a1
, (const void *)z
)); returnCode(winchnstr(a1
, z
, -1));
687 NCURSES_EXPORT(int) (winsertln
) (WINDOW
* z
)
689 T((T_CALLED("winsertln(%p)"), (const void *)z
)); returnCode(winsdelln(z
,1));
693 NCURSES_EXPORT(int) (winsstr
) (WINDOW
* a1
, const char * z
)
695 T((T_CALLED("winsstr(%p,%s)"), (const void *)a1
, _nc_visbuf2(1,z
))); returnCode(winsnstr(a1
, z
, -1));
699 NCURSES_EXPORT(int) (winstr
) (WINDOW
* a1
, char * z
)
701 T((T_CALLED("winstr(%p,%s)"), (const void *)a1
, _nc_visbuf2(1,z
))); returnCode(winnstr(a1
, z
, -1));
705 NCURSES_EXPORT(int) (wstandout
) (WINDOW
* z
)
707 T((T_CALLED("wstandout(%p)"), (const void *)z
)); returnIntAttr((attr_t
)(((z
) ? ((z
)->_attrs
= (attr_t
)(((1UL) << ((8) + 8))), (0)) : (-1))));
711 NCURSES_EXPORT(int) (wstandend
) (WINDOW
* z
)
713 T((T_CALLED("wstandend(%p)"), (const void *)z
)); returnIntAttr((attr_t
)(((z
) ? ((z
)->_attrs
= (attr_t
)((1UL - 1UL)), (0)) : (-1))));
717 NCURSES_EXPORT(int) (getattrs
) (const WINDOW
* z
)
719 T((T_CALLED("getattrs(%p)"), (const void *)z
)); returnCode((int)((z
) ? (z
)->_attrs
: (1UL - 1UL)));
723 NCURSES_EXPORT(int) (getcurx
) (const WINDOW
* z
)
725 T((T_CALLED("getcurx(%p)"), (const void *)z
)); returnCode(((z
) ? (z
)->_curx
: (-1)));
729 NCURSES_EXPORT(int) (getcury
) (const WINDOW
* z
)
731 T((T_CALLED("getcury(%p)"), (const void *)z
)); returnCode(((z
) ? (z
)->_cury
: (-1)));
735 NCURSES_EXPORT(int) (getbegx
) (const WINDOW
* z
)
737 T((T_CALLED("getbegx(%p)"), (const void *)z
)); returnCode(((z
) ? (z
)->_begx
: (-1)));
741 NCURSES_EXPORT(int) (getbegy
) (const WINDOW
* z
)
743 T((T_CALLED("getbegy(%p)"), (const void *)z
)); returnCode(((z
) ? (z
)->_begy
: (-1)));
747 NCURSES_EXPORT(int) (getmaxx
) (const WINDOW
* z
)
749 T((T_CALLED("getmaxx(%p)"), (const void *)z
)); returnCode(((z
) ? ((z
)->_maxx
+ 1) : (-1)));
753 NCURSES_EXPORT(int) (getmaxy
) (const WINDOW
* z
)
755 T((T_CALLED("getmaxy(%p)"), (const void *)z
)); returnCode(((z
) ? ((z
)->_maxy
+ 1) : (-1)));
759 NCURSES_EXPORT(int) (getparx
) (const WINDOW
* z
)
761 T((T_CALLED("getparx(%p)"), (const void *)z
)); returnCode(((z
) ? (z
)->_parx
: (-1)));
765 NCURSES_EXPORT(int) (getpary
) (const WINDOW
* z
)
767 T((T_CALLED("getpary(%p)"), (const void *)z
)); returnCode(((z
) ? (z
)->_pary
: (-1)));
771 NCURSES_EXPORT(WINDOW
*) (wgetparent
) (const WINDOW
* z
)
773 T((T_CALLED("wgetparent(%p)"), (const void *)z
)); returnWin(((z
) ? (z
)->_parent
: 0));
777 NCURSES_EXPORT(NCURSES_BOOL
) (is_cleared
) (const WINDOW
* z
)
779 T((T_CALLED("is_cleared(%p)"), (const void *)z
)); returnBool(((z
) ? (z
)->_clear
: 0));
783 NCURSES_EXPORT(NCURSES_BOOL
) (is_idcok
) (const WINDOW
* z
)
785 T((T_CALLED("is_idcok(%p)"), (const void *)z
)); returnBool(((z
) ? (z
)->_idcok
: 0));
789 NCURSES_EXPORT(NCURSES_BOOL
) (is_idlok
) (const WINDOW
* z
)
791 T((T_CALLED("is_idlok(%p)"), (const void *)z
)); returnBool(((z
) ? (z
)->_idlok
: 0));
795 NCURSES_EXPORT(NCURSES_BOOL
) (is_immedok
) (const WINDOW
* z
)
797 T((T_CALLED("is_immedok(%p)"), (const void *)z
)); returnBool(((z
) ? (z
)->_immed
: 0));
801 NCURSES_EXPORT(NCURSES_BOOL
) (is_keypad
) (const WINDOW
* z
)
803 T((T_CALLED("is_keypad(%p)"), (const void *)z
)); returnBool(((z
) ? (z
)->_use_keypad
: 0));
807 NCURSES_EXPORT(NCURSES_BOOL
) (is_leaveok
) (const WINDOW
* z
)
809 T((T_CALLED("is_leaveok(%p)"), (const void *)z
)); returnBool(((z
) ? (z
)->_leaveok
: 0));
813 NCURSES_EXPORT(NCURSES_BOOL
) (is_nodelay
) (const WINDOW
* z
)
815 T((T_CALLED("is_nodelay(%p)"), (const void *)z
)); returnBool(((z
) ? ((z
)->_delay
== 0) : 0));
819 NCURSES_EXPORT(NCURSES_BOOL
) (is_notimeout
) (const WINDOW
* z
)
821 T((T_CALLED("is_notimeout(%p)"), (const void *)z
)); returnBool(((z
) ? (z
)->_notimeout
: 0));
825 NCURSES_EXPORT(NCURSES_BOOL
) (is_pad
) (const WINDOW
* z
)
827 T((T_CALLED("is_pad(%p)"), (const void *)z
)); returnBool(((z
) ? ((z
)->_flags
& 0x10) != 0 : 0));
831 NCURSES_EXPORT(NCURSES_BOOL
) (is_scrollok
) (const WINDOW
* z
)
833 T((T_CALLED("is_scrollok(%p)"), (const void *)z
)); returnBool(((z
) ? (z
)->_scroll
: 0));
837 NCURSES_EXPORT(NCURSES_BOOL
) (is_subwin
) (const WINDOW
* z
)
839 T((T_CALLED("is_subwin(%p)"), (const void *)z
)); returnBool(((z
) ? ((z
)->_flags
& 0x01) != 0 : 0));
843 NCURSES_EXPORT(NCURSES_BOOL
) (is_syncok
) (const WINDOW
* z
)
845 T((T_CALLED("is_syncok(%p)"), (const void *)z
)); returnBool(((z
) ? (z
)->_sync
: 0));
849 NCURSES_EXPORT(int) (wgetscrreg
) (const WINDOW
* a1
, int * a2
, int * z
)
851 T((T_CALLED("wgetscrreg(%p,%p,%p)"), (const void *)a1
, (const void *)a2
, (const void *)z
)); returnCode(((a1
) ? (*(a2
) = (a1
)->_regtop
, *(z
) = (a1
)->_regbottom
, (0)) : (-1)));
855 NCURSES_EXPORT(NCURSES_BOOL
) (mouse_trafo
) (int * a1
, int * a2
, NCURSES_BOOL z
)
857 T((T_CALLED("mouse_trafo(%p,%p,%#lx)"), (const void *)a1
, (const void *)a2
, (long)z
)); returnBool(wmouse_trafo(stdscr
,a1
,a2
,z
));