1/**************************************************************************** 2 * Copyright (c) 2002-2010,2013 Free Software Foundation, Inc. * 3 * * 4 * Permission is hereby granted, free of charge, to any person obtaining a * 5 * copy of this software and associated documentation files (the * 6 * "Software"), to deal in the Software without restriction, including * 7 * without limitation the rights to use, copy, modify, merge, publish, * 8 * distribute, distribute with modifications, sublicense, and/or sell * 9 * copies of the Software, and to permit persons to whom the Software is * 10 * furnished to do so, subject to the following conditions: * 11 * * 12 * The above copyright notice and this permission notice shall be included * 13 * in all copies or substantial portions of the Software. * 14 * * 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * 16 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * 17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * 18 * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * 19 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * 20 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * 21 * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * 22 * * 23 * Except as contained in this notice, the name(s) of the above copyright * 24 * holders shall not be used in advertising or otherwise to promote the * 25 * sale, use or other dealings in this Software without prior written * 26 * authorization. * 27 ****************************************************************************/ 28 29/**************************************************************************** 30 * Author: Thomas E. Dickey 2002-on * 31 ****************************************************************************/ 32/* LINTLIBRARY */ 33 34/* ./f_trace.c */ 35 36#include <form.priv.h> 37 38#undef _nc_retrace_field_ptr 39FIELD **_nc_retrace_field_ptr( 40 FIELD **code) 41 { return(*(FIELD ***)0); } 42 43#undef _nc_retrace_field 44FIELD *_nc_retrace_field( 45 FIELD *code) 46 { return(*(FIELD **)0); } 47 48#undef _nc_retrace_field_type 49FIELDTYPE *_nc_retrace_field_type( 50 FIELDTYPE *code) 51 { return(*(FIELDTYPE **)0); } 52 53#undef _nc_retrace_form 54FORM *_nc_retrace_form( 55 FORM *code) 56 { return(*(FORM **)0); } 57 58#undef _nc_retrace_form_hook 59Form_Hook _nc_retrace_form_hook( 60 Form_Hook code) 61 { return(*(Form_Hook *)0); } 62 63/* ./fld_arg.c */ 64 65#undef set_fieldtype_arg 66int set_fieldtype_arg( 67 FIELDTYPE *typ, 68 void *(*const make_arg)( 69 va_list *p1), 70 void *(*const copy_arg)( 71 const void *p1), 72 void (*const free_arg)( 73 void *p1)) 74 { return(*(int *)0); } 75 76#undef field_arg 77void *field_arg( 78 const FIELD *field) 79 { return(*(void **)0); } 80 81/* ./fld_attr.c */ 82 83#undef set_field_fore 84int set_field_fore( 85 FIELD *field, 86 chtype attr) 87 { return(*(int *)0); } 88 89#undef field_fore 90chtype field_fore( 91 const FIELD *field) 92 { return(*(chtype *)0); } 93 94#undef set_field_back 95int set_field_back( 96 FIELD *field, 97 chtype attr) 98 { return(*(int *)0); } 99 100#undef field_back 101chtype field_back( 102 const FIELD *field) 103 { return(*(chtype *)0); } 104 105/* ./fld_current.c */ 106 107#undef set_current_field 108int set_current_field( 109 FORM *form, 110 FIELD *field) 111 { return(*(int *)0); } 112 113#undef current_field 114FIELD *current_field( 115 const FORM *form) 116 { return(*(FIELD **)0); } 117 118#undef field_index 119int field_index( 120 const FIELD *field) 121 { return(*(int *)0); } 122 123/* ./fld_def.c */ 124 125#undef _nc_Default_Field 126FIELD *_nc_Default_Field; 127 128#undef _nc_Make_Argument 129TypeArgument *_nc_Make_Argument( 130 const FIELDTYPE *typ, 131 va_list *ap, 132 int *err) 133 { return(*(TypeArgument **)0); } 134 135#undef _nc_Copy_Argument 136TypeArgument *_nc_Copy_Argument( 137 const FIELDTYPE *typ, 138 const TypeArgument *argp, 139 int *err) 140 { return(*(TypeArgument **)0); } 141 142#undef _nc_Free_Argument 143void _nc_Free_Argument( 144 const FIELDTYPE *typ, 145 TypeArgument *argp) 146 { /* void */ } 147 148#undef _nc_Copy_Type 149NCURSES_BOOL _nc_Copy_Type( 150 FIELD *dst, 151 FIELD const *src) 152 { return(*(NCURSES_BOOL *)0); } 153 154#undef _nc_Free_Type 155void _nc_Free_Type( 156 FIELD *field) 157 { /* void */ } 158 159#undef new_field 160FIELD *new_field( 161 int rows, 162 int cols, 163 int frow, 164 int fcol, 165 int nrow, 166 int nbuf) 167 { return(*(FIELD **)0); } 168 169#undef free_field 170int free_field( 171 FIELD *field) 172 { return(*(int *)0); } 173 174/* ./fld_dup.c */ 175 176#undef dup_field 177FIELD *dup_field( 178 FIELD *field, 179 int frow, 180 int fcol) 181 { return(*(FIELD **)0); } 182 183/* ./fld_ftchoice.c */ 184 185#undef set_fieldtype_choice 186int set_fieldtype_choice( 187 FIELDTYPE *typ, 188 NCURSES_BOOL (*const next_choice)( 189 FIELD *p1, 190 const void *p2), 191 NCURSES_BOOL (*const prev_choice)( 192 FIELD *p1, 193 const void *p2)) 194 { return(*(int *)0); } 195 196/* ./fld_ftlink.c */ 197 198#undef link_fieldtype 199FIELDTYPE *link_fieldtype( 200 FIELDTYPE *type1, 201 FIELDTYPE *type2) 202 { return(*(FIELDTYPE **)0); } 203 204/* ./fld_info.c */ 205 206#undef field_info 207int field_info( 208 const FIELD *field, 209 int *rows, 210 int *cols, 211 int *frow, 212 int *fcol, 213 int *nrow, 214 int *nbuf) 215 { return(*(int *)0); } 216 217#undef dynamic_field_info 218int dynamic_field_info( 219 const FIELD *field, 220 int *drows, 221 int *dcols, 222 int *maxgrow) 223 { return(*(int *)0); } 224 225/* ./fld_just.c */ 226 227#undef set_field_just 228int set_field_just( 229 FIELD *field, 230 int just) 231 { return(*(int *)0); } 232 233#undef field_just 234int field_just( 235 const FIELD *field) 236 { return(*(int *)0); } 237 238/* ./fld_link.c */ 239 240#undef link_field 241FIELD *link_field( 242 FIELD *field, 243 int frow, 244 int fcol) 245 { return(*(FIELD **)0); } 246 247/* ./fld_max.c */ 248 249#undef set_max_field 250int set_max_field( 251 FIELD *field, 252 int maxgrow) 253 { return(*(int *)0); } 254 255/* ./fld_move.c */ 256 257#undef move_field 258int move_field( 259 FIELD *field, 260 int frow, 261 int fcol) 262 { return(*(int *)0); } 263 264/* ./fld_newftyp.c */ 265 266#undef _nc_Default_FieldType 267FIELDTYPE *_nc_Default_FieldType; 268 269#undef new_fieldtype 270FIELDTYPE *new_fieldtype( 271 NCURSES_BOOL (*const field_check)( 272 FIELD *p1, 273 const void *p2), 274 NCURSES_BOOL (*const char_check)( 275 int p1, 276 const void *p2)) 277 { return(*(FIELDTYPE **)0); } 278 279#undef free_fieldtype 280int free_fieldtype( 281 FIELDTYPE *typ) 282 { return(*(int *)0); } 283 284/* ./fld_opts.c */ 285 286#undef set_field_opts 287int set_field_opts( 288 FIELD *field, 289 Field_Options opts) 290 { return(*(int *)0); } 291 292#undef field_opts 293Field_Options field_opts( 294 const FIELD *field) 295 { return(*(Field_Options *)0); } 296 297#undef field_opts_on 298int field_opts_on( 299 FIELD *field, 300 Field_Options opts) 301 { return(*(int *)0); } 302 303#undef field_opts_off 304int field_opts_off( 305 FIELD *field, 306 Field_Options opts) 307 { return(*(int *)0); } 308 309/* ./fld_pad.c */ 310 311#undef set_field_pad 312int set_field_pad( 313 FIELD *field, 314 int ch) 315 { return(*(int *)0); } 316 317#undef field_pad 318int field_pad( 319 const FIELD *field) 320 { return(*(int *)0); } 321 322/* ./fld_page.c */ 323 324#undef set_new_page 325int set_new_page( 326 FIELD *field, 327 NCURSES_BOOL new_page_flag) 328 { return(*(int *)0); } 329 330#undef new_page 331NCURSES_BOOL new_page( 332 const FIELD *field) 333 { return(*(NCURSES_BOOL *)0); } 334 335/* ./fld_stat.c */ 336 337#undef set_field_status 338int set_field_status( 339 FIELD *field, 340 NCURSES_BOOL status) 341 { return(*(int *)0); } 342 343#undef field_status 344NCURSES_BOOL field_status( 345 const FIELD *field) 346 { return(*(NCURSES_BOOL *)0); } 347 348/* ./fld_type.c */ 349 350#undef set_field_type 351int set_field_type( 352 FIELD *field, 353 FIELDTYPE *type, 354 ...) 355 { return(*(int *)0); } 356 357#undef field_type 358FIELDTYPE *field_type( 359 const FIELD *field) 360 { return(*(FIELDTYPE **)0); } 361 362/* ./fld_user.c */ 363 364#undef set_field_userptr 365int set_field_userptr( 366 FIELD *field, 367 void *usrptr) 368 { return(*(int *)0); } 369 370#undef field_userptr 371void *field_userptr( 372 const FIELD *field) 373 { return(*(void **)0); } 374 375/* ./frm_cursor.c */ 376 377#undef pos_form_cursor 378int pos_form_cursor( 379 FORM *form) 380 { return(*(int *)0); } 381 382/* ./frm_data.c */ 383 384#undef data_behind 385NCURSES_BOOL data_behind( 386 const FORM *form) 387 { return(*(NCURSES_BOOL *)0); } 388 389#undef data_ahead 390NCURSES_BOOL data_ahead( 391 const FORM *form) 392 { return(*(NCURSES_BOOL *)0); } 393 394/* ./frm_def.c */ 395 396#undef _nc_Default_Form 397FORM *_nc_Default_Form; 398 399#undef new_form_sp 400FORM *new_form_sp( 401 SCREEN *sp, 402 FIELD **fields) 403 { return(*(FORM **)0); } 404 405#undef new_form 406FORM *new_form( 407 FIELD **fields) 408 { return(*(FORM **)0); } 409 410#undef free_form 411int free_form( 412 FORM *form) 413 { return(*(int *)0); } 414 415#undef set_form_fields 416int set_form_fields( 417 FORM *form, 418 FIELD **fields) 419 { return(*(int *)0); } 420 421#undef form_fields 422FIELD **form_fields( 423 const FORM *form) 424 { return(*(FIELD ***)0); } 425 426#undef field_count 427int field_count( 428 const FORM *form) 429 { return(*(int *)0); } 430 431/* ./frm_driver.c */ 432 433#undef _nc_get_fieldbuffer 434void _nc_get_fieldbuffer( 435 FORM *form, 436 FIELD *field, 437 cchar_t *buf) 438 { /* void */ } 439 440#undef _nc_Position_Form_Cursor 441int _nc_Position_Form_Cursor( 442 FORM *form) 443 { return(*(int *)0); } 444 445#undef _nc_Refresh_Current_Field 446int _nc_Refresh_Current_Field( 447 FORM *form) 448 { return(*(int *)0); } 449 450#undef _nc_Synchronize_Attributes 451int _nc_Synchronize_Attributes( 452 FIELD *field) 453 { return(*(int *)0); } 454 455#undef _nc_Synchronize_Options 456int _nc_Synchronize_Options( 457 FIELD *field, 458 Field_Options newopts) 459 { return(*(int *)0); } 460 461#undef _nc_Set_Current_Field 462int _nc_Set_Current_Field( 463 FORM *form, 464 FIELD *newfield) 465 { return(*(int *)0); } 466 467#undef _nc_Internal_Validation 468NCURSES_BOOL _nc_Internal_Validation( 469 FORM *form) 470 { return(*(NCURSES_BOOL *)0); } 471 472#undef _nc_First_Active_Field 473FIELD *_nc_First_Active_Field( 474 FORM *form) 475 { return(*(FIELD **)0); } 476 477#undef _nc_Set_Form_Page 478int _nc_Set_Form_Page( 479 FORM *form, 480 int page, 481 FIELD *field) 482 { return(*(int *)0); } 483 484typedef struct 485{ 486 int keycode; 487 int (*cmd) (FORM *); 488} 489Binding_Info; 490 491#undef form_driver 492int form_driver( 493 FORM *form, 494 int c) 495 { return(*(int *)0); } 496 497#undef form_driver_w 498int form_driver_w( 499 FORM *form, 500 int type, 501 wchar_t c) 502 { return(*(int *)0); } 503 504#undef set_field_buffer 505int set_field_buffer( 506 FIELD *field, 507 int buffer, 508 const char *value) 509 { return(*(int *)0); } 510 511#undef field_buffer 512char *field_buffer( 513 const FIELD *field, 514 int buffer) 515 { return(*(char **)0); } 516 517#undef _nc_Widen_String 518wchar_t *_nc_Widen_String( 519 char *source, 520 int *lengthp) 521 { return(*(wchar_t **)0); } 522 523/* ./frm_hook.c */ 524 525#undef set_field_init 526int set_field_init( 527 FORM *form, 528 Form_Hook func) 529 { return(*(int *)0); } 530 531#undef field_init 532Form_Hook field_init( 533 const FORM *form) 534 { return(*(Form_Hook *)0); } 535 536#undef set_field_term 537int set_field_term( 538 FORM *form, 539 Form_Hook func) 540 { return(*(int *)0); } 541 542#undef field_term 543Form_Hook field_term( 544 const FORM *form) 545 { return(*(Form_Hook *)0); } 546 547#undef set_form_init 548int set_form_init( 549 FORM *form, 550 Form_Hook func) 551 { return(*(int *)0); } 552 553#undef form_init 554Form_Hook form_init( 555 const FORM *form) 556 { return(*(Form_Hook *)0); } 557 558#undef set_form_term 559int set_form_term( 560 FORM *form, 561 Form_Hook func) 562 { return(*(int *)0); } 563 564#undef form_term 565Form_Hook form_term( 566 const FORM *form) 567 { return(*(Form_Hook *)0); } 568 569/* ./frm_opts.c */ 570 571#undef set_form_opts 572int set_form_opts( 573 FORM *form, 574 Form_Options opts) 575 { return(*(int *)0); } 576 577#undef form_opts 578Form_Options form_opts( 579 const FORM *form) 580 { return(*(Form_Options *)0); } 581 582#undef form_opts_on 583int form_opts_on( 584 FORM *form, 585 Form_Options opts) 586 { return(*(int *)0); } 587 588#undef form_opts_off 589int form_opts_off( 590 FORM *form, 591 Form_Options opts) 592 { return(*(int *)0); } 593 594/* ./frm_page.c */ 595 596#undef set_form_page 597int set_form_page( 598 FORM *form, 599 int page) 600 { return(*(int *)0); } 601 602#undef form_page 603int form_page( 604 const FORM *form) 605 { return(*(int *)0); } 606 607/* ./frm_post.c */ 608 609#undef post_form 610int post_form( 611 FORM *form) 612 { return(*(int *)0); } 613 614#undef unpost_form 615int unpost_form( 616 FORM *form) 617 { return(*(int *)0); } 618 619/* ./frm_req_name.c */ 620 621#undef form_request_name 622const char *form_request_name( 623 int request) 624 { return(*(const char **)0); } 625 626#undef form_request_by_name 627int form_request_by_name( 628 const char *str) 629 { return(*(int *)0); } 630 631/* ./frm_scale.c */ 632 633#undef scale_form 634int scale_form( 635 const FORM *form, 636 int *rows, 637 int *cols) 638 { return(*(int *)0); } 639 640/* ./frm_sub.c */ 641 642#undef set_form_sub 643int set_form_sub( 644 FORM *form, 645 WINDOW *win) 646 { return(*(int *)0); } 647 648#undef form_sub 649WINDOW *form_sub( 650 const FORM *form) 651 { return(*(WINDOW **)0); } 652 653/* ./frm_user.c */ 654 655#undef set_form_userptr 656int set_form_userptr( 657 FORM *form, 658 void *usrptr) 659 { return(*(int *)0); } 660 661#undef form_userptr 662void *form_userptr( 663 const FORM *form) 664 { return(*(void **)0); } 665 666/* ./frm_win.c */ 667 668#undef set_form_win 669int set_form_win( 670 FORM *form, 671 WINDOW *win) 672 { return(*(int *)0); } 673 674#undef form_win 675WINDOW *form_win( 676 const FORM *form) 677 { return(*(WINDOW **)0); } 678 679/* ./fty_alnum.c */ 680 681typedef struct 682 { 683 int width; 684 } 685alnumARG; 686 687#undef TYPE_ALNUM 688FIELDTYPE *TYPE_ALNUM; 689 690/* ./fty_alpha.c */ 691 692typedef struct 693 { 694 int width; 695 } 696alphaARG; 697 698#undef TYPE_ALPHA 699FIELDTYPE *TYPE_ALPHA; 700 701/* ./fty_enum.c */ 702 703typedef struct 704 { 705 char **kwds; 706 int count; 707 NCURSES_BOOL checkcase; 708 NCURSES_BOOL checkunique; 709 } 710enumARG; 711 712typedef struct 713 { 714 char **kwds; 715 int ccase; 716 int cunique; 717 } 718enumParams; 719 720#undef TYPE_ENUM 721FIELDTYPE *TYPE_ENUM; 722 723/* ./fty_generic.c */ 724 725#undef _nc_fty_generic 726void _nc_fty_generic(void) 727 { /* void */ } 728 729/* ./fty_int.c */ 730 731typedef struct 732 { 733 int precision; 734 long low; 735 long high; 736 } 737integerARG; 738 739typedef struct 740 { 741 int precision; 742 long low; 743 long high; 744 } 745integerPARM; 746 747#undef TYPE_INTEGER 748FIELDTYPE *TYPE_INTEGER; 749 750/* ./fty_ipv4.c */ 751#undef TYPE_IPV4 752FIELDTYPE *TYPE_IPV4; 753 754/* ./fty_num.c */ 755 756#include <locale.h> 757 758typedef struct 759 { 760 int precision; 761 double low; 762 double high; 763 struct lconv *L; 764 } 765numericARG; 766 767typedef struct 768 { 769 int precision; 770 double low; 771 double high; 772 } 773thisPARM; 774 775#undef TYPE_NUMERIC 776FIELDTYPE *TYPE_NUMERIC; 777 778/* ./fty_regex.c */ 779 780#include <regex.h> 781 782typedef struct 783 { 784 regex_t *pRegExp; 785 unsigned long *refCount; 786 } 787RegExp_Arg; 788 789#undef TYPE_REGEXP 790FIELDTYPE *TYPE_REGEXP; 791