1/* 2 * DO NOT EDIT THIS FILE BY HAND! 3 * It is generated by ./base/MKlib_gen.sh generated. 4 * 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. 8 * 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. 13 */ 14#include <curses.priv.h> 15 16 17#undef addch 18NCURSES_EXPORT(int) addch (const chtype z) 19{ 20 T((T_CALLED("addch(%s)"), _tracechtype2(0,z))); returnCode(waddch(stdscr, z)); 21} 22 23 24#undef addchnstr 25NCURSES_EXPORT(int) addchnstr (const chtype * a1, int z) 26{ 27 T((T_CALLED("addchnstr(%p,%d)"), a1, z)); returnCode(waddchnstr(stdscr, a1, z)); 28} 29 30 31#undef addchstr 32NCURSES_EXPORT(int) addchstr (const chtype * z) 33{ 34 T((T_CALLED("addchstr(%p)"), z)); returnCode(waddchnstr(stdscr, z,-1)); 35} 36 37 38#undef addnstr 39NCURSES_EXPORT(int) addnstr (const char * a1, int z) 40{ 41 T((T_CALLED("addnstr(%s,%d)"), _nc_visbuf2(0,a1), z)); returnCode(waddnstr(stdscr, a1, z)); 42} 43 44 45#undef addstr 46NCURSES_EXPORT(int) addstr (const char * z) 47{ 48 T((T_CALLED("addstr(%s)"), _nc_visbuf2(0,z))); returnCode(waddnstr(stdscr, z,-1)); 49} 50 51 52#undef attroff 53NCURSES_EXPORT(int) attroff (attr_t z) 54{ 55 T((T_CALLED("attroff(%s)"), _traceattr2(0,z))); returnCode(wattr_off(stdscr, (attr_t)(z), ((void *)0))); 56} 57 58 59#undef attron 60NCURSES_EXPORT(int) attron (attr_t z) 61{ 62 T((T_CALLED("attron(%s)"), _traceattr2(0,z))); returnCode(wattr_on(stdscr, (attr_t)(z), ((void *)0))); 63} 64 65 66#undef attrset 67NCURSES_EXPORT(int) attrset (attr_t z) 68{ 69 T((T_CALLED("attrset(%s)"), _traceattr2(0,z))); returnAttr(((stdscr)->_attrs = (z))); 70} 71 72 73#undef attr_get 74NCURSES_EXPORT(int) attr_get (attr_t * a1, short * a2, void * z) 75{ 76 T((T_CALLED("attr_get(%p,%p,%p)"), a1, a2, z)); returnCode(((void)((a1) != 0 && (*(a1) = (stdscr)->_attrs)), (void)((a2) != 0 && (*(a2) = ((int)(((((stdscr)->_attrs) & ((((1UL) << 8) - 1UL) << ((0) + 8))) >> 8))))), (0))); 77} 78 79 80#undef attr_off 81NCURSES_EXPORT(int) attr_off (attr_t a1, void * z) 82{ 83 T((T_CALLED("attr_off(%s,%p)"), _traceattr2(0,a1), z)); returnCode(wattr_off(stdscr, a1, z)); 84} 85 86 87#undef attr_on 88NCURSES_EXPORT(int) attr_on (attr_t a1, void * z) 89{ 90 T((T_CALLED("attr_on(%s,%p)"), _traceattr2(0,a1), z)); returnCode(wattr_on(stdscr, a1, z)); 91} 92 93 94#undef attr_set 95NCURSES_EXPORT(int) attr_set (attr_t a1, short a2, void * z) 96{ 97 T((T_CALLED("attr_set(%s,%d,%p)"), _traceattr2(0,a1), a2, z)); returnCode(((stdscr)->_attrs = (((a1) & ~((((1UL) << 8) - 1UL) << ((0) + 8))) | ((a2) << ((0) + 8))), (0))); 98} 99 100 101#undef bkgd 102NCURSES_EXPORT(int) bkgd (chtype z) 103{ 104 T((T_CALLED("bkgd(%s)"), _tracechtype2(0,z))); returnCode(wbkgd(stdscr, z)); 105} 106 107 108#undef bkgdset 109NCURSES_EXPORT(void) bkgdset (chtype z) 110{ 111 T((T_CALLED("bkgdset(%s)"), _tracechtype2(0,z))); wbkgdset(stdscr, z) ; 112 returnVoid; 113} 114 115 116#undef border 117NCURSES_EXPORT(int) border (chtype a1, chtype a2, chtype a3, chtype a4, chtype a5, chtype a6, chtype a7, chtype z) 118{ 119 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)); 120} 121 122 123#undef box 124NCURSES_EXPORT(int) box (WINDOW * a1, chtype a2, chtype z) 125{ 126 T((T_CALLED("box(%p,%s,%s)"), a1, _tracechtype2(1,a2), _tracechtype2(2,z))); returnCode(wborder(a1, a2, a2, z, z, 0, 0, 0, 0)); 127} 128 129 130#undef chgat 131NCURSES_EXPORT(int) chgat (int a1, attr_t a2, short a3, const void * z) 132{ 133 T((T_CALLED("chgat(%d,%s,%d,%p)"), a1, _traceattr2(1,a2), a3, z)); returnCode(wchgat(stdscr, a1, a2, a3, z)); 134} 135 136 137#undef clear 138NCURSES_EXPORT(int) clear (void) 139{ 140 T((T_CALLED("clear()"))); returnCode(wclear(stdscr)); 141} 142 143 144#undef clrtobot 145NCURSES_EXPORT(int) clrtobot (void) 146{ 147 T((T_CALLED("clrtobot()"))); returnCode(wclrtobot(stdscr)); 148} 149 150 151#undef clrtoeol 152NCURSES_EXPORT(int) clrtoeol (void) 153{ 154 T((T_CALLED("clrtoeol()"))); returnCode(wclrtoeol(stdscr)); 155} 156 157 158#undef color_set 159NCURSES_EXPORT(int) color_set (short a1, void * z) 160{ 161 T((T_CALLED("color_set(%d,%p)"), a1, z)); returnCode(wcolor_set(stdscr, a1, z)); 162} 163 164 165#undef COLOR_PAIR 166NCURSES_EXPORT(int) COLOR_PAIR (int z) 167{ 168 T((T_CALLED("COLOR_PAIR(%d)"), z)); returnCode(((z) << ((0) + 8))); 169} 170 171 172#undef delch 173NCURSES_EXPORT(int) delch (void) 174{ 175 T((T_CALLED("delch()"))); returnCode(wdelch(stdscr)); 176} 177 178 179#undef deleteln 180NCURSES_EXPORT(int) deleteln (void) 181{ 182 T((T_CALLED("deleteln()"))); returnCode(winsdelln(stdscr,-1)); 183} 184 185 186#undef echochar 187NCURSES_EXPORT(int) echochar (const chtype z) 188{ 189 T((T_CALLED("echochar(%s)"), _tracechtype2(0,z))); returnCode(wechochar(stdscr, z)); 190} 191 192 193#undef erase 194NCURSES_EXPORT(int) erase (void) 195{ 196 T((T_CALLED("erase()"))); returnCode(werase(stdscr)); 197} 198 199 200#undef getbkgd 201NCURSES_EXPORT(chtype) getbkgd (WINDOW * z) 202{ 203 T((T_CALLED("getbkgd(%p)"), z)); returnChar(((z)->_bkgd)); 204} 205 206 207#undef getch 208NCURSES_EXPORT(int) getch (void) 209{ 210 T((T_CALLED("getch()"))); returnCode(wgetch(stdscr)); 211} 212 213 214#undef getnstr 215NCURSES_EXPORT(int) getnstr (char * a1, int z) 216{ 217 T((T_CALLED("getnstr(%s,%d)"), _nc_visbuf2(0,a1), z)); returnCode(wgetnstr(stdscr, a1, z)); 218} 219 220 221#undef getstr 222NCURSES_EXPORT(int) getstr (char * z) 223{ 224 T((T_CALLED("getstr(%s)"), _nc_visbuf2(0,z))); returnCode(wgetnstr(stdscr, z, -1)); 225} 226 227 228#undef hline 229NCURSES_EXPORT(int) hline (chtype a1, int z) 230{ 231 T((T_CALLED("hline(%s,%d)"), _tracechtype2(0,a1), z)); returnCode(whline(stdscr, a1, z)); 232} 233 234 235#undef inch 236NCURSES_EXPORT(chtype) inch (void) 237{ 238 T((T_CALLED("inch()"))); returnChar(winch(stdscr)); 239} 240 241 242#undef inchnstr 243NCURSES_EXPORT(int) inchnstr (chtype * a1, int z) 244{ 245 T((T_CALLED("inchnstr(%p,%d)"), a1, z)); returnCode(winchnstr(stdscr, a1, z)); 246} 247 248 249#undef inchstr 250NCURSES_EXPORT(int) inchstr (chtype * z) 251{ 252 T((T_CALLED("inchstr(%p)"), z)); returnCode(winchnstr(stdscr, z, -1)); 253} 254 255 256#undef innstr 257NCURSES_EXPORT(int) innstr (char * a1, int z) 258{ 259 return winnstr(stdscr, a1, z) ; 260} 261 262 263#undef insch 264NCURSES_EXPORT(int) insch (chtype z) 265{ 266 T((T_CALLED("insch(%s)"), _tracechtype2(0,z))); returnCode(winsch(stdscr, z)); 267} 268 269 270#undef insdelln 271NCURSES_EXPORT(int) insdelln (int z) 272{ 273 T((T_CALLED("insdelln(%d)"), z)); returnCode(winsdelln(stdscr, z)); 274} 275 276 277#undef insertln 278NCURSES_EXPORT(int) insertln (void) 279{ 280 T((T_CALLED("insertln()"))); returnCode(winsdelln(stdscr,1)); 281} 282 283 284#undef insnstr 285NCURSES_EXPORT(int) insnstr (const char * a1, int z) 286{ 287 T((T_CALLED("insnstr(%s,%d)"), _nc_visbuf2(0,a1), z)); returnCode(winsnstr(stdscr, a1, z)); 288} 289 290 291#undef insstr 292NCURSES_EXPORT(int) insstr (const char * z) 293{ 294 T((T_CALLED("insstr(%s)"), _nc_visbuf2(0,z))); returnCode(winsnstr(stdscr, z, -1)); 295} 296 297 298#undef instr 299NCURSES_EXPORT(int) instr (char * z) 300{ 301 T((T_CALLED("instr(%s)"), _nc_visbuf2(0,z))); returnCode(winnstr(stdscr, z, -1)); 302} 303 304 305#undef move 306NCURSES_EXPORT(int) move (int a1, int z) 307{ 308 T((T_CALLED("move(%d,%d)"), a1, z)); returnCode(wmove(stdscr, a1, z)); 309} 310 311 312#undef mvaddch 313NCURSES_EXPORT(int) mvaddch (int a1, int a2, const chtype z) 314{ 315 T((T_CALLED("mvaddch(%d,%d,%s)"), a1, a2, _tracechtype2(2,z))); returnCode((wmove(stdscr, a1, a2) == (-1) ? (-1) : waddch(stdscr, z))); 316} 317 318 319#undef mvaddchnstr 320NCURSES_EXPORT(int) mvaddchnstr (int a1, int a2, const chtype * a3, int z) 321{ 322 T((T_CALLED("mvaddchnstr(%d,%d,%p,%d)"), a1, a2, a3, z)); returnCode((wmove(stdscr, a1, a2) == (-1) ? (-1) : waddchnstr(stdscr, a3, z))); 323} 324 325 326#undef mvaddchstr 327NCURSES_EXPORT(int) mvaddchstr (int a1, int a2, const chtype * z) 328{ 329 T((T_CALLED("mvaddchstr(%d,%d,%p)"), a1, a2, z)); returnCode((wmove(stdscr, a1, a2) == (-1) ? (-1) : waddchnstr(stdscr, z,-1))); 330} 331 332 333#undef mvaddnstr 334NCURSES_EXPORT(int) mvaddnstr (int a1, int a2, const char * a3, int z) 335{ 336 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))); 337} 338 339 340#undef mvaddstr 341NCURSES_EXPORT(int) mvaddstr (int a1, int a2, const char * z) 342{ 343 T((T_CALLED("mvaddstr(%d,%d,%s)"), a1, a2, _nc_visbuf2(2,z))); returnCode((wmove(stdscr, a1, a2) == (-1) ? (-1) : waddnstr(stdscr, z,-1))); 344} 345 346 347#undef mvchgat 348NCURSES_EXPORT(int) mvchgat (int a1, int a2, int a3, attr_t a4, short a5, const void * z) 349{ 350 T((T_CALLED("mvchgat(%d,%d,%d,%s,%d,%p)"), a1, a2, a3, _traceattr2(3,a4), a5, z)); returnCode((wmove(stdscr, a1, a2) == (-1) ? (-1) : wchgat(stdscr, a3, a4, a5, z))); 351} 352 353 354#undef mvdelch 355NCURSES_EXPORT(int) mvdelch (int a1, int z) 356{ 357 T((T_CALLED("mvdelch(%d,%d)"), a1, z)); returnCode((wmove(stdscr, a1, z) == (-1) ? (-1) : wdelch(stdscr))); 358} 359 360 361#undef mvgetch 362NCURSES_EXPORT(int) mvgetch (int a1, int z) 363{ 364 T((T_CALLED("mvgetch(%d,%d)"), a1, z)); returnCode((wmove(stdscr, a1, z) == (-1) ? (-1) : wgetch(stdscr))); 365} 366 367 368#undef mvgetnstr 369NCURSES_EXPORT(int) mvgetnstr (int a1, int a2, char * a3, int z) 370{ 371 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))); 372} 373 374 375#undef mvgetstr 376NCURSES_EXPORT(int) mvgetstr (int a1, int a2, char * z) 377{ 378 T((T_CALLED("mvgetstr(%d,%d,%s)"), a1, a2, _nc_visbuf2(2,z))); returnCode((wmove(stdscr, a1, a2) == (-1) ? (-1) : wgetnstr(stdscr, z, -1))); 379} 380 381 382#undef mvhline 383NCURSES_EXPORT(int) mvhline (int a1, int a2, chtype a3, int z) 384{ 385 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))); 386} 387 388 389#undef mvinch 390NCURSES_EXPORT(chtype) mvinch (int a1, int z) 391{ 392 T((T_CALLED("mvinch(%d,%d)"), a1, z)); returnChar((wmove(stdscr, a1, z) == (-1) ? (chtype)((-1)) : winch(stdscr))); 393} 394 395 396#undef mvinchnstr 397NCURSES_EXPORT(int) mvinchnstr (int a1, int a2, chtype * a3, int z) 398{ 399 T((T_CALLED("mvinchnstr(%d,%d,%p,%d)"), a1, a2, a3, z)); returnCode((wmove(stdscr, a1, a2) == (-1) ? (-1) : winchnstr(stdscr, a3, z))); 400} 401 402 403#undef mvinchstr 404NCURSES_EXPORT(int) mvinchstr (int a1, int a2, chtype * z) 405{ 406 T((T_CALLED("mvinchstr(%d,%d,%p)"), a1, a2, z)); returnCode((wmove(stdscr, a1, a2) == (-1) ? (-1) : winchnstr(stdscr, z, -1))); 407} 408 409 410#undef mvinnstr 411NCURSES_EXPORT(int) mvinnstr (int a1, int a2, char * a3, int z) 412{ 413 return (wmove(stdscr, a1, a2) == (-1) ? (-1) : winnstr(stdscr, a3, z)) ; 414} 415 416 417#undef mvinsch 418NCURSES_EXPORT(int) mvinsch (int a1, int a2, chtype z) 419{ 420 T((T_CALLED("mvinsch(%d,%d,%s)"), a1, a2, _tracechtype2(2,z))); returnCode((wmove(stdscr, a1, a2) == (-1) ? (-1) : winsch(stdscr, z))); 421} 422 423 424#undef mvinsnstr 425NCURSES_EXPORT(int) mvinsnstr (int a1, int a2, const char * a3, int z) 426{ 427 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))); 428} 429 430 431#undef mvinsstr 432NCURSES_EXPORT(int) mvinsstr (int a1, int a2, const char * z) 433{ 434 T((T_CALLED("mvinsstr(%d,%d,%s)"), a1, a2, _nc_visbuf2(2,z))); returnCode((wmove(stdscr, a1, a2) == (-1) ? (-1) : winsnstr(stdscr, z, -1))); 435} 436 437 438#undef mvinstr 439NCURSES_EXPORT(int) mvinstr (int a1, int a2, char * z) 440{ 441 T((T_CALLED("mvinstr(%d,%d,%s)"), a1, a2, _nc_visbuf2(2,z))); returnCode((wmove(stdscr, a1, a2) == (-1) ? (-1) : winnstr(stdscr, z, -1))); 442} 443 444 445#undef mvvline 446NCURSES_EXPORT(int) mvvline (int a1, int a2, chtype a3, int z) 447{ 448 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))); 449} 450 451 452#undef mvwaddch 453NCURSES_EXPORT(int) mvwaddch (WINDOW * a1, int a2, int a3, const chtype z) 454{ 455 T((T_CALLED("mvwaddch(%p,%d,%d,%s)"), a1, a2, a3, _tracechtype2(3,z))); returnCode((wmove(a1, a2, a3) == (-1) ? (-1) : waddch(a1, z))); 456} 457 458 459#undef mvwaddchnstr 460NCURSES_EXPORT(int) mvwaddchnstr (WINDOW * a1, int a2, int a3, const chtype * a4, int z) 461{ 462 T((T_CALLED("mvwaddchnstr(%p,%d,%d,%p,%d)"), a1, a2, a3, a4, z)); returnCode((wmove(a1, a2, a3) == (-1) ? (-1) : waddchnstr(a1, a4, z))); 463} 464 465 466#undef mvwaddchstr 467NCURSES_EXPORT(int) mvwaddchstr (WINDOW * a1, int a2, int a3, const chtype * z) 468{ 469 T((T_CALLED("mvwaddchstr(%p,%d,%d,%p)"), a1, a2, a3, z)); returnCode((wmove(a1, a2, a3) == (-1) ? (-1) : waddchnstr(a1, z,-1))); 470} 471 472 473#undef mvwaddnstr 474NCURSES_EXPORT(int) mvwaddnstr (WINDOW * a1, int a2, int a3, const char * a4, int z) 475{ 476 T((T_CALLED("mvwaddnstr(%p,%d,%d,%s,%d)"), a1, a2, a3, _nc_visbuf2(3,a4), z)); returnCode((wmove(a1, a2, a3) == (-1) ? (-1) : waddnstr(a1, a4, z))); 477} 478 479 480#undef mvwaddstr 481NCURSES_EXPORT(int) mvwaddstr (WINDOW * a1, int a2, int a3, const char * z) 482{ 483 T((T_CALLED("mvwaddstr(%p,%d,%d,%s)"), a1, a2, a3, _nc_visbuf2(3,z))); returnCode((wmove(a1, a2, a3) == (-1) ? (-1) : waddnstr(a1, z,-1))); 484} 485 486 487#undef mvwchgat 488NCURSES_EXPORT(int) mvwchgat (WINDOW * a1, int a2, int a3, int a4, attr_t a5, short a6, const void * z) 489{ 490 T((T_CALLED("mvwchgat(%p,%d,%d,%d,%s,%d,%p)"), a1, a2, a3, a4, _traceattr2(4,a5), a6, z)); returnCode((wmove(a1, a2, a3) == (-1) ? (-1) : wchgat(a1, a4, a5, a6, z))); 491} 492 493 494#undef mvwdelch 495NCURSES_EXPORT(int) mvwdelch (WINDOW * a1, int a2, int z) 496{ 497 T((T_CALLED("mvwdelch(%p,%d,%d)"), a1, a2, z)); returnCode((wmove(a1, a2, z) == (-1) ? (-1) : wdelch(a1))); 498} 499 500 501#undef mvwgetch 502NCURSES_EXPORT(int) mvwgetch (WINDOW * a1, int a2, int z) 503{ 504 T((T_CALLED("mvwgetch(%p,%d,%d)"), a1, a2, z)); returnCode((wmove(a1, a2, z) == (-1) ? (-1) : wgetch(a1))); 505} 506 507 508#undef mvwgetnstr 509NCURSES_EXPORT(int) mvwgetnstr (WINDOW * a1, int a2, int a3, char * a4, int z) 510{ 511 T((T_CALLED("mvwgetnstr(%p,%d,%d,%s,%d)"), a1, a2, a3, _nc_visbuf2(3,a4), z)); returnCode((wmove(a1, a2, a3) == (-1) ? (-1) : wgetnstr(a1, a4, z))); 512} 513 514 515#undef mvwgetstr 516NCURSES_EXPORT(int) mvwgetstr (WINDOW * a1, int a2, int a3, char * z) 517{ 518 T((T_CALLED("mvwgetstr(%p,%d,%d,%s)"), a1, a2, a3, _nc_visbuf2(3,z))); returnCode((wmove(a1, a2, a3) == (-1) ? (-1) : wgetnstr(a1, z, -1))); 519} 520 521 522#undef mvwhline 523NCURSES_EXPORT(int) mvwhline (WINDOW * a1, int a2, int a3, chtype a4, int z) 524{ 525 T((T_CALLED("mvwhline(%p,%d,%d,%s,%d)"), a1, a2, a3, _tracechtype2(3,a4), z)); returnCode((wmove(a1, a2, a3) == (-1) ? (-1) : whline(a1, a4, z))); 526} 527 528 529#undef mvwinch 530NCURSES_EXPORT(chtype) mvwinch (WINDOW * a1, int a2, int z) 531{ 532 T((T_CALLED("mvwinch(%p,%d,%d)"), a1, a2, z)); returnChar((wmove(a1, a2, z) == (-1) ? (chtype)((-1)) : winch(a1))); 533} 534 535 536#undef mvwinchnstr 537NCURSES_EXPORT(int) mvwinchnstr (WINDOW * a1, int a2, int a3, chtype * a4, int z) 538{ 539 T((T_CALLED("mvwinchnstr(%p,%d,%d,%p,%d)"), a1, a2, a3, a4, z)); returnCode((wmove(a1, a2, a3) == (-1) ? (-1) : winchnstr(a1, a4, z))); 540} 541 542 543#undef mvwinchstr 544NCURSES_EXPORT(int) mvwinchstr (WINDOW * a1, int a2, int a3, chtype * z) 545{ 546 T((T_CALLED("mvwinchstr(%p,%d,%d,%p)"), a1, a2, a3, z)); returnCode((wmove(a1, a2, a3) == (-1) ? (-1) : winchnstr(a1, z, -1))); 547} 548 549 550#undef mvwinnstr 551NCURSES_EXPORT(int) mvwinnstr (WINDOW * a1, int a2, int a3, char * a4, int z) 552{ 553 return (wmove(a1, a2, a3) == (-1) ? (-1) : winnstr(a1, a4, z)) ; 554} 555 556 557#undef mvwinsch 558NCURSES_EXPORT(int) mvwinsch (WINDOW * a1, int a2, int a3, chtype z) 559{ 560 T((T_CALLED("mvwinsch(%p,%d,%d,%s)"), a1, a2, a3, _tracechtype2(3,z))); returnCode((wmove(a1, a2, a3) == (-1) ? (-1) : winsch(a1, z))); 561} 562 563 564#undef mvwinsnstr 565NCURSES_EXPORT(int) mvwinsnstr (WINDOW * a1, int a2, int a3, const char * a4, int z) 566{ 567 T((T_CALLED("mvwinsnstr(%p,%d,%d,%s,%d)"), a1, a2, a3, _nc_visbuf2(3,a4), z)); returnCode((wmove(a1, a2, a3) == (-1) ? (-1) : winsnstr(a1, a4, z))); 568} 569 570 571#undef mvwinsstr 572NCURSES_EXPORT(int) mvwinsstr (WINDOW * a1, int a2, int a3, const char * z) 573{ 574 T((T_CALLED("mvwinsstr(%p,%d,%d,%s)"), a1, a2, a3, _nc_visbuf2(3,z))); returnCode((wmove(a1, a2, a3) == (-1) ? (-1) : winsnstr(a1, z, -1))); 575} 576 577 578#undef mvwinstr 579NCURSES_EXPORT(int) mvwinstr (WINDOW * a1, int a2, int a3, char * z) 580{ 581 T((T_CALLED("mvwinstr(%p,%d,%d,%s)"), a1, a2, a3, _nc_visbuf2(3,z))); returnCode((wmove(a1, a2, a3) == (-1) ? (-1) : winnstr(a1, z, -1))); 582} 583 584 585#undef mvwvline 586NCURSES_EXPORT(int) mvwvline (WINDOW * a1, int a2, int a3, chtype a4, int z) 587{ 588 T((T_CALLED("mvwvline(%p,%d,%d,%s,%d)"), a1, a2, a3, _tracechtype2(3,a4), z)); returnCode((wmove(a1, a2, a3) == (-1) ? (-1) : wvline(a1, a4, z))); 589} 590 591 592#undef PAIR_NUMBER 593NCURSES_EXPORT(int) PAIR_NUMBER (int z) 594{ 595 T((T_CALLED("PAIR_NUMBER(%d)"), z)); returnCode(((int)((((z) & ((((1UL) << 8) - 1UL) << ((0) + 8))) >> 8)))); 596} 597 598 599#undef redrawwin 600NCURSES_EXPORT(int) redrawwin (WINDOW * z) 601{ 602 T((T_CALLED("redrawwin(%p)"), z)); returnCode(wredrawln(z, 0, (z)->_maxy+1)); 603} 604 605 606#undef refresh 607NCURSES_EXPORT(int) refresh (void) 608{ 609 T((T_CALLED("refresh()"))); returnCode(wrefresh(stdscr)); 610} 611 612 613#undef scrl 614NCURSES_EXPORT(int) scrl (int z) 615{ 616 T((T_CALLED("scrl(%d)"), z)); returnCode(wscrl(stdscr, z)); 617} 618 619 620#undef scroll 621NCURSES_EXPORT(int) scroll (WINDOW * z) 622{ 623 T((T_CALLED("scroll(%p)"), z)); returnCode(wscrl(z,1)); 624} 625 626 627#undef setscrreg 628NCURSES_EXPORT(int) setscrreg (int a1, int z) 629{ 630 T((T_CALLED("setscrreg(%d,%d)"), a1, z)); returnCode(wsetscrreg(stdscr, a1, z)); 631} 632 633 634#if USE_WIDEC_SUPPORT 635#undef slk_attr_off 636NCURSES_EXPORT(int) slk_attr_off (const attr_t a1, void * z) 637{ 638 T((T_CALLED("slk_attr_off(%s,%p)"), _traceattr2(0,a1), z)); returnCode(((z) ? (-1) : slk_attroff(a1))); 639} 640#endif 641 642 643#if USE_WIDEC_SUPPORT 644#undef slk_attr_on 645NCURSES_EXPORT(int) slk_attr_on (attr_t a1, void * z) 646{ 647 T((T_CALLED("slk_attr_on(%s,%p)"), _traceattr2(0,a1), z)); returnCode(((z) ? (-1) : slk_attron(a1))); 648} 649#endif 650 651 652#undef standout 653NCURSES_EXPORT(int) standout (void) 654{ 655 T((T_CALLED("standout()"))); returnAttr((((stdscr)->_attrs = (((1UL) << ((8) + 8)))))); 656} 657 658 659#undef standend 660NCURSES_EXPORT(int) standend (void) 661{ 662 T((T_CALLED("standend()"))); returnAttr((((stdscr)->_attrs = ((1UL - 1UL))))); 663} 664 665 666#undef timeout 667NCURSES_EXPORT(void) timeout (int z) 668{ 669 T((T_CALLED("timeout(%d)"), z)); wtimeout(stdscr, z) ; 670 returnVoid; 671} 672 673 674#undef touchline 675NCURSES_EXPORT(int) touchline (WINDOW * a1, int a2, int z) 676{ 677 T((T_CALLED("touchline(%p,%d,%d)"), a1, a2, z)); returnCode(wtouchln((a1), a2, z, 1)); 678} 679 680 681#undef touchwin 682NCURSES_EXPORT(int) touchwin (WINDOW * z) 683{ 684 T((T_CALLED("touchwin(%p)"), z)); returnCode(wtouchln((z), 0, ((z)?((z)->_maxy + 1): (-1)), 1)); 685} 686 687 688#undef untouchwin 689NCURSES_EXPORT(int) untouchwin (WINDOW * z) 690{ 691 T((T_CALLED("untouchwin(%p)"), z)); returnCode(wtouchln((z), 0, ((z)?((z)->_maxy + 1): (-1)), 0)); 692} 693 694 695#undef vline 696NCURSES_EXPORT(int) vline (chtype a1, int z) 697{ 698 T((T_CALLED("vline(%s,%d)"), _tracechtype2(0,a1), z)); returnCode(wvline(stdscr, a1, z)); 699} 700 701 702#undef vw_printw 703NCURSES_EXPORT(int) vw_printw (WINDOW * a1, const char * a2, va_list z) 704{ 705 T((T_CALLED("vw_printw(%p,%s,%s)"), a1, _nc_visbuf2(1,a2), "va_list")); returnCode(vwprintw (a1, a2, z)); 706} 707 708 709#undef vw_scanw 710NCURSES_EXPORT(int) vw_scanw (WINDOW * a1, char * a2, va_list z) 711{ 712 T((T_CALLED("vw_scanw(%p,%s,%s)"), a1, _nc_visbuf2(1,a2), "va_list")); returnCode(vwscanw (a1, a2, z)); 713} 714 715 716#undef waddchstr 717NCURSES_EXPORT(int) waddchstr (WINDOW * a1, const chtype * z) 718{ 719 T((T_CALLED("waddchstr(%p,%p)"), a1, z)); returnCode(waddchnstr(a1, z,-1)); 720} 721 722 723#undef waddstr 724NCURSES_EXPORT(int) waddstr (WINDOW * a1, const char * z) 725{ 726 T((T_CALLED("waddstr(%p,%s)"), a1, _nc_visbuf2(1,z))); returnCode(waddnstr(a1, z,-1)); 727} 728 729 730#undef wattron 731NCURSES_EXPORT(int) wattron (WINDOW * a1, int z) 732{ 733 T((T_CALLED("wattron(%p,%d)"), a1, z)); returnCode(wattr_on(a1, (attr_t)(z), ((void *)0))); 734} 735 736 737#undef wattroff 738NCURSES_EXPORT(int) wattroff (WINDOW * a1, int z) 739{ 740 T((T_CALLED("wattroff(%p,%d)"), a1, z)); returnCode(wattr_off(a1, (attr_t)(z), ((void *)0))); 741} 742 743 744#undef wattrset 745NCURSES_EXPORT(int) wattrset (WINDOW * a1, int z) 746{ 747 T((T_CALLED("wattrset(%p,%d)"), a1, z)); returnAttr(((a1)->_attrs = (z))); 748} 749 750 751#undef wattr_get 752NCURSES_EXPORT(int) wattr_get (WINDOW * a1, attr_t * a2, short * a3, void * z) 753{ 754 T((T_CALLED("wattr_get(%p,%p,%p,%p)"), a1, a2, a3, z)); returnCode(((void)((a2) != 0 && (*(a2) = (a1)->_attrs)), (void)((a3) != 0 && (*(a3) = ((int)(((((a1)->_attrs) & ((((1UL) << 8) - 1UL) << ((0) + 8))) >> 8))))), (0))); 755} 756 757 758#undef wattr_set 759NCURSES_EXPORT(int) wattr_set (WINDOW * a1, attr_t a2, short a3, void * z) 760{ 761 T((T_CALLED("wattr_set(%p,%s,%d,%p)"), a1, _traceattr2(1,a2), a3, z)); returnCode(((a1)->_attrs = (((a2) & ~((((1UL) << 8) - 1UL) << ((0) + 8))) | ((a3) << ((0) + 8))), (0))); 762} 763 764 765#undef wdeleteln 766NCURSES_EXPORT(int) wdeleteln (WINDOW * z) 767{ 768 T((T_CALLED("wdeleteln(%p)"), z)); returnCode(winsdelln(z,-1)); 769} 770 771 772#undef wgetstr 773NCURSES_EXPORT(int) wgetstr (WINDOW * a1, char * z) 774{ 775 T((T_CALLED("wgetstr(%p,%s)"), a1, _nc_visbuf2(1,z))); returnCode(wgetnstr(a1, z, -1)); 776} 777 778 779#undef winchstr 780NCURSES_EXPORT(int) winchstr (WINDOW * a1, chtype * z) 781{ 782 T((T_CALLED("winchstr(%p,%p)"), a1, z)); returnCode(winchnstr(a1, z, -1)); 783} 784 785 786#undef winsertln 787NCURSES_EXPORT(int) winsertln (WINDOW * z) 788{ 789 T((T_CALLED("winsertln(%p)"), z)); returnCode(winsdelln(z,1)); 790} 791 792 793#undef winsstr 794NCURSES_EXPORT(int) winsstr (WINDOW * a1, const char * z) 795{ 796 T((T_CALLED("winsstr(%p,%s)"), a1, _nc_visbuf2(1,z))); returnCode(winsnstr(a1, z, -1)); 797} 798 799 800#undef winstr 801NCURSES_EXPORT(int) winstr (WINDOW * a1, char * z) 802{ 803 T((T_CALLED("winstr(%p,%s)"), a1, _nc_visbuf2(1,z))); returnCode(winnstr(a1, z, -1)); 804} 805 806 807#undef wstandout 808NCURSES_EXPORT(int) wstandout (WINDOW * z) 809{ 810 T((T_CALLED("wstandout(%p)"), z)); returnAttr((((z)->_attrs = (((1UL) << ((8) + 8)))))); 811} 812 813 814#undef wstandend 815NCURSES_EXPORT(int) wstandend (WINDOW * z) 816{ 817 T((T_CALLED("wstandend(%p)"), z)); returnAttr((((z)->_attrs = ((1UL - 1UL))))); 818} 819 820 821#undef mouse_trafo 822NCURSES_EXPORT(NCURSES_BOOL) mouse_trafo (int * a1, int * a2, NCURSES_BOOL z) 823{ 824 T((T_CALLED("mouse_trafo(%p,%p,%#lx)"), a1, a2, (long)z)); returnBool(wmouse_trafo(stdscr, a1, a2, z)); 825} 826