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 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450
|
/* codger-generated yorick package wrapper file */
#include "play.h"
#include "ydata.h"
#include <curses.h>
#include "ycurses.h"
/*----------------begin curses.i */
//extern BuiltIn Y_kbdinit;
//extern void kbdinit(void );
void
Y_kbdinit(int n)
{
if (n!=0) YError("kbdinit takes exactly 0 arguments");
kbdinit();
}
//extern BuiltIn Y_kbd;
//extern int kbd(int );
void
Y_kbd(int n)
{
if (n!=1) YError("kbd takes exactly 1 arguments");
PushIntValue(kbd(yarg_si(0)));
}
//extern BuiltIn Y_kbdend;
//extern void kbdend(void );
void
Y_kbdend(int n)
{
if (n!=0) YError("kbdend takes exactly 0 arguments");
kbdend();
}
//extern BuiltIn Y_cgetch;
//extern int getch(void );
void
Y_cgetch(int n)
{
if (n>1) YError("cgetch takes void argument");
PushIntValue(getch());
}
//extern BuiltIn Y_cinitscr;
//extern long initscr(void );
void
Y_cinitscr(int n)
{
if (n>1) YError("cinitscr takes void argument");
PushLongValue((long)initscr());
}
//extern BuiltIn Y_cendwin;
//extern int endwin(void );
void
Y_cendwin(int n)
{
if (n>1) YError("cendwin takes void argument");
PushIntValue(endwin());
}
//extern BuiltIn Y_cisendwin;
//extern int isendwin(void );
void
Y_cisendwin(int n)
{
if (n>1) YError("cisendwin takes void argument");
PushIntValue(isendwin());
}
//extern BuiltIn Y_ccbreak;
//extern int cbreak(void );
void
Y_ccbreak(int n)
{
if (n>1) YError("ccbreak takes void argument");
PushIntValue(cbreak());
}
//extern BuiltIn Y_cnocbreak;
//extern int nocbreak(void );
void
Y_cnocbreak(int n)
{
if (n>1) YError("cnocbreak takes void argument");
PushIntValue(nocbreak());
}
//extern BuiltIn Y_chalfdelay;
//extern int halfdelay(int );
void
Y_chalfdelay(int n)
{
if (n!=1) YError("chalfdelay takes exactly 1 arguments");
PushIntValue(halfdelay(yarg_si(0)));
}
//extern BuiltIn Y_craw;
//extern int raw(void );
void
Y_craw(int n)
{
if (n>1) YError("craw takes void argument");
PushIntValue(raw());
}
//extern BuiltIn Y_cnoraw;
//extern int noraw(void );
void
Y_cnoraw(int n)
{
if (n>1) YError("cnoraw takes void argument");
PushIntValue(noraw());
}
//extern BuiltIn Y_ctimeout;
//extern void timeout(int );
void
Y_ctimeout(int n)
{
if (n!=1) YError("ctimeout takes exactly 1 arguments");
timeout(yarg_si(0));
}
//extern BuiltIn Y_cnl;
//extern int nl(void );
void
Y_cnl(int n)
{
if (n>1) YError("cnl takes void argument");
PushIntValue(nl());
}
//extern BuiltIn Y_cnonl;
//extern int nonl(void );
void
Y_cnonl(int n)
{
if (n>1) YError("cnonl takes void argument");
PushIntValue(nonl());
}
//extern BuiltIn Y_cprintw;
//extern int printw(char *, char *);
void
Y_cprintw(int n)
{
if (n!=2) YError("cprintw takes exactly 2 arguments");
PushIntValue(printw(yarg_sq(1), yarg_sq(0)));
}
//extern BuiltIn Y_cmvprintw;
//extern int mvprintw(int , int , char *, char *);
void
Y_cmvprintw(int n)
{
if (n!=4) YError("cmvprintw takes exactly 4 arguments");
PushIntValue(mvprintw(yarg_si(3), yarg_si(2), yarg_sq(1),
yarg_sq(0)));
}
//extern BuiltIn Y_crefresh;
//extern int refresh(void );
void
Y_crefresh(int n)
{
if (n>1) YError("crefresh takes void argument");
PushIntValue(refresh());
}
//extern BuiltIn Y_caddch;
//extern int addch(char );
void
Y_caddch(int n)
{
if (n!=1) YError("caddch takes exactly 1 arguments");
PushIntValue(addch(yarg_sc(0)));
}
//extern BuiltIn Y_cmvaddch;
//extern int mvaddch(int , int , char );
void
Y_cmvaddch(int n)
{
if (n!=3) YError("cmvaddch takes exactly 3 arguments");
PushIntValue(mvaddch(yarg_si(2), yarg_si(1), yarg_sc(0)));
}
//extern BuiltIn Y_cerase;
//extern int erase(void );
void
Y_cerase(int n)
{
if (n>1) YError("cerase takes void argument");
PushIntValue(erase());
}
//extern BuiltIn Y_cclear;
//extern int clear(void );
void
Y_cclear(int n)
{
if (n>1) YError("cclear takes void argument");
PushIntValue(clear());
}
//extern BuiltIn Y_cclrtobot;
//extern int clrtobot(void );
void
Y_cclrtobot(int n)
{
if (n>1) YError("cclrtobot takes void argument");
PushIntValue(clrtobot());
}
//extern BuiltIn Y_cclrtoeol;
//extern int clrtoeol(void );
void
Y_cclrtoeol(int n)
{
if (n>1) YError("cclrtoeol takes void argument");
PushIntValue(clrtoeol());
}
//extern BuiltIn Y_cbkgdset;
//extern void bkgdset(char );
void
Y_cbkgdset(int n)
{
if (n!=1) YError("cbkgdset takes exactly 1 arguments");
bkgdset(yarg_sc(0));
}
//extern BuiltIn Y_cgetlines;
//extern int getlines(void );
void
Y_cgetlines(int n)
{
if (n>1) YError("cgetlines takes void argument");
PushIntValue(getlines());
}
//extern BuiltIn Y_cgetcols;
//extern int getcols(void );
void
Y_cgetcols(int n)
{
if (n>1) YError("cgetcols takes void argument");
PushIntValue(getcols());
}
//extern BuiltIn Y_ccurs_set;
//extern int curs_set(int );
void
Y_ccurs_set(int n)
{
if (n!=1) YError("ccurs_set takes exactly 1 arguments");
PushIntValue(curs_set(yarg_si(0)));
}
//extern BuiltIn Y_ccurs_move;
//extern int move(int , int );
void
Y_ccurs_move(int n)
{
if (n!=2) YError("ccurs_move takes exactly 2 arguments");
PushIntValue(move(yarg_si(1), yarg_si(0)));
}
//extern BuiltIn Y_cbeep;
//extern int beep(void );
void
Y_cbeep(int n)
{
if (n>1) YError("cbeep takes void argument");
PushIntValue(beep());
}
//extern BuiltIn Y_cflash;
//extern int flash(void );
void
Y_cflash(int n)
{
if (n>1) YError("cflash takes void argument");
PushIntValue(flash());
}
//extern BuiltIn Y_cecho;
//extern int echo(void );
void
Y_cecho(int n)
{
if (n>1) YError("cecho takes void argument");
PushIntValue(echo());
}
//extern BuiltIn Y_cnoecho;
//extern int noecho(void );
void
Y_cnoecho(int n)
{
if (n>1) YError("cnoecho takes void argument");
PushIntValue(noecho());
}
//extern BuiltIn Y_cgetstr;
//extern int getstr(char *);
void
Y_cgetstr(int n)
{
if (n!=1) YError("cgetstr takes exactly 1 arguments");
PushIntValue(getstr(yarg_sq(0)));
}
//extern BuiltIn Y_cmvgetstr;
//extern int mvgetstr(int , int , char *);
void
Y_cmvgetstr(int n)
{
if (n!=3) YError("cmvgetstr takes exactly 3 arguments");
PushIntValue(mvgetstr(yarg_si(2), yarg_si(1), yarg_sq(0)));
}
//extern BuiltIn Y_cnodelay;
//extern int ynodelay(int );
void
Y_cnodelay(int n)
{
if (n!=1) YError("cnodelay takes exactly 1 arguments");
PushIntValue(ynodelay(yarg_si(0)));
}
//extern BuiltIn Y_cnotimeout;
//extern int ynotimeout(int );
void
Y_cnotimeout(int n)
{
if (n!=1) YError("cnotimeout takes exactly 1 arguments");
PushIntValue(ynotimeout(yarg_si(0)));
}
//extern BuiltIn Y_ckeypad;
//extern int ykeypad(int );
void
Y_ckeypad(int n)
{
if (n!=1) YError("ckeypad takes exactly 1 arguments");
PushIntValue(ykeypad(yarg_si(0)));
}
//extern BuiltIn Y_cmeta;
//extern int ymeta(int );
void
Y_cmeta(int n)
{
if (n!=1) YError("cmeta takes exactly 1 arguments");
PushIntValue(ymeta(yarg_si(0)));
}
//extern BuiltIn Y_cintrflush;
//extern int yintrflush(int );
void
Y_cintrflush(int n)
{
if (n!=1) YError("cintrflush takes exactly 1 arguments");
PushIntValue(yintrflush(yarg_si(0)));
}
//extern BuiltIn Y_cscrollok;
//extern int yscrollok(int );
void
Y_cscrollok(int n)
{
if (n!=1) YError("cscrollok takes exactly 1 arguments");
PushIntValue(yscrollok(yarg_si(0)));
}
//extern BuiltIn Y_cleaveok;
//extern int yleaveok(int );
void
Y_cleaveok(int n)
{
if (n!=1) YError("cleaveok takes exactly 1 arguments");
PushIntValue(yleaveok(yarg_si(0)));
}
//extern BuiltIn Y_cclearok;
//extern int yclearok(int );
void
Y_cclearok(int n)
{
if (n!=1) YError("cclearok takes exactly 1 arguments");
PushIntValue(yclearok(yarg_si(0)));
}
//extern BuiltIn Y_cidlok;
//extern int yidlok(int );
void
Y_cidlok(int n)
{
if (n!=1) YError("cidlok takes exactly 1 arguments");
PushIntValue(yidlok(yarg_si(0)));
}
/*----------------list include files */
|