llib-lform (50276) | llib-lform (166124) |
---|---|
1/**************************************************************************** | 1/**************************************************************************** |
2 * Copyright (c) 1998 Free Software Foundation, Inc. * | 2 * Copyright (c) 1998-2002,2005 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 unchanged lines hidden (view full) --- 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/**************************************************************************** | 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 unchanged lines hidden (view full) --- 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 <dickey@clark.net> 1996,1997 * | 30 * Author: Thomas E. Dickey 1996,1997,2002,2005 * |
31 ****************************************************************************/ 32/* LINTLIBRARY */ 33 | 31 ****************************************************************************/ 32/* LINTLIBRARY */ 33 |
34/* ./fld_arg.c */ | 34/* ./f_trace.c */ |
35 36#include "form.priv.h" 37 | 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 |
|
38#undef set_fieldtype_arg 39int set_fieldtype_arg( 40 FIELDTYPE *typ, 41 void *(*const make_arg)( 42 va_list *p1), 43 void *(*const copy_arg)( 44 const void *p1), 45 void (*const free_arg)( --- 68 unchanged lines hidden (view full) --- 114 115#undef _nc_Free_Argument 116void _nc_Free_Argument( 117 const FIELDTYPE *typ, 118 TypeArgument *argp) 119 { /* void */ } 120 121#undef _nc_Copy_Type | 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)( --- 68 unchanged lines hidden (view full) --- 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 |
122bool _nc_Copy_Type( | 149NCURSES_BOOL _nc_Copy_Type( |
123 FIELD *dst, 124 FIELD const *src) | 150 FIELD *dst, 151 FIELD const *src) |
125 { return(*(bool *)0); } | 152 { return(*(NCURSES_BOOL *)0); } |
126 127#undef _nc_Free_Type 128void _nc_Free_Type( 129 FIELD *field) 130 { /* void */ } 131 132#undef new_field 133FIELD *new_field( --- 19 unchanged lines hidden (view full) --- 153 int fcol) 154 { return(*(FIELD **)0); } 155 156/* ./fld_ftchoice.c */ 157 158#undef set_fieldtype_choice 159int set_fieldtype_choice( 160 FIELDTYPE *typ, | 153 154#undef _nc_Free_Type 155void _nc_Free_Type( 156 FIELD *field) 157 { /* void */ } 158 159#undef new_field 160FIELD *new_field( --- 19 unchanged lines hidden (view full) --- 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, |
161 bool (*const next_choice)( | 188 NCURSES_BOOL (*const next_choice)( |
162 FIELD *p1, 163 const void *p2), | 189 FIELD *p1, 190 const void *p2), |
164 bool (*const prev_choice)( | 191 NCURSES_BOOL (*const prev_choice)( |
165 FIELD *p1, 166 const void *p2)) 167 { return(*(int *)0); } 168 169/* ./fld_ftlink.c */ 170 171#undef link_fieldtype 172FIELDTYPE *link_fieldtype( --- 63 unchanged lines hidden (view full) --- 236 237/* ./fld_newftyp.c */ 238 239#undef _nc_Default_FieldType 240const FIELDTYPE *_nc_Default_FieldType = {0}; 241 242#undef new_fieldtype 243FIELDTYPE *new_fieldtype( | 192 FIELD *p1, 193 const void *p2)) 194 { return(*(int *)0); } 195 196/* ./fld_ftlink.c */ 197 198#undef link_fieldtype 199FIELDTYPE *link_fieldtype( --- 63 unchanged lines hidden (view full) --- 263 264/* ./fld_newftyp.c */ 265 266#undef _nc_Default_FieldType 267const FIELDTYPE *_nc_Default_FieldType = {0}; 268 269#undef new_fieldtype 270FIELDTYPE *new_fieldtype( |
244 bool (*const field_check)( | 271 NCURSES_BOOL (*const field_check)( |
245 FIELD *p1, 246 const void *p2), | 272 FIELD *p1, 273 const void *p2), |
247 bool (*const char_check)( | 274 NCURSES_BOOL (*const char_check)( |
248 int p1, 249 const void *p2)) 250 { return(*(FIELDTYPE **)0); } 251 252#undef free_fieldtype 253int free_fieldtype( 254 FIELDTYPE *typ) 255 { return(*(int *)0); } --- 36 unchanged lines hidden (view full) --- 292 const FIELD *field) 293 { return(*(int *)0); } 294 295/* ./fld_page.c */ 296 297#undef set_new_page 298int set_new_page( 299 FIELD *field, | 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); } --- 36 unchanged lines hidden (view full) --- 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, |
300 bool new_page_flag) | 327 NCURSES_BOOL new_page_flag) |
301 { return(*(int *)0); } 302 303#undef new_page | 328 { return(*(int *)0); } 329 330#undef new_page |
304bool new_page( | 331NCURSES_BOOL new_page( |
305 const FIELD *field) | 332 const FIELD *field) |
306 { return(*(bool *)0); } | 333 { return(*(NCURSES_BOOL *)0); } |
307 308/* ./fld_stat.c */ 309 310#undef set_field_status 311int set_field_status( 312 FIELD *field, | 334 335/* ./fld_stat.c */ 336 337#undef set_field_status 338int set_field_status( 339 FIELD *field, |
313 bool status) | 340 NCURSES_BOOL status) |
314 { return(*(int *)0); } 315 316#undef field_status | 341 { return(*(int *)0); } 342 343#undef field_status |
317bool field_status( | 344NCURSES_BOOL field_status( |
318 const FIELD *field) | 345 const FIELD *field) |
319 { return(*(bool *)0); } | 346 { return(*(NCURSES_BOOL *)0); } |
320 321/* ./fld_type.c */ 322 323#undef set_field_type 324int set_field_type( 325 FIELD *field, 326 FIELDTYPE *type, 327 ...) --- 22 unchanged lines hidden (view full) --- 350#undef pos_form_cursor 351int pos_form_cursor( 352 FORM *form) 353 { return(*(int *)0); } 354 355/* ./frm_data.c */ 356 357#undef data_behind | 347 348/* ./fld_type.c */ 349 350#undef set_field_type 351int set_field_type( 352 FIELD *field, 353 FIELDTYPE *type, 354 ...) --- 22 unchanged lines hidden (view full) --- 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 |
358bool data_behind( | 385NCURSES_BOOL data_behind( |
359 const FORM *form) | 386 const FORM *form) |
360 { return(*(bool *)0); } | 387 { return(*(NCURSES_BOOL *)0); } |
361 362#undef data_ahead | 388 389#undef data_ahead |
363bool data_ahead( | 390NCURSES_BOOL data_ahead( |
364 const FORM *form) | 391 const FORM *form) |
365 { return(*(bool *)0); } | 392 { return(*(NCURSES_BOOL *)0); } |
366 367/* ./frm_def.c */ 368 369#undef _nc_Default_Form 370FORM *_nc_Default_Form; 371 372#undef new_form 373FORM *new_form( --- 46 unchanged lines hidden (view full) --- 420 421#undef _nc_Set_Current_Field 422int _nc_Set_Current_Field( 423 FORM *form, 424 FIELD *newfield) 425 { return(*(int *)0); } 426 427#undef _nc_Internal_Validation | 393 394/* ./frm_def.c */ 395 396#undef _nc_Default_Form 397FORM *_nc_Default_Form; 398 399#undef new_form 400FORM *new_form( --- 46 unchanged lines hidden (view full) --- 447 448#undef _nc_Set_Current_Field 449int _nc_Set_Current_Field( 450 FORM *form, 451 FIELD *newfield) 452 { return(*(int *)0); } 453 454#undef _nc_Internal_Validation |
428bool _nc_Internal_Validation( | 455NCURSES_BOOL _nc_Internal_Validation( |
429 FORM *form) | 456 FORM *form) |
430 { return(*(bool *)0); } | 457 { return(*(NCURSES_BOOL *)0); } |
431 432#undef _nc_First_Active_Field 433FIELD *_nc_First_Active_Field( 434 FORM *form) 435 { return(*(FIELD **)0); } 436 437#undef _nc_Set_Form_Page 438int _nc_Set_Form_Page( 439 FORM *form, 440 int page, 441 FIELD *field) 442 { return(*(int *)0); } 443 | 458 459#undef _nc_First_Active_Field 460FIELD *_nc_First_Active_Field( 461 FORM *form) 462 { return(*(FIELD **)0); } 463 464#undef _nc_Set_Form_Page 465int _nc_Set_Form_Page( 466 FORM *form, 467 int page, 468 FIELD *field) 469 { return(*(int *)0); } 470 |
444typedef struct { 445 int keycode; 446 int (*cmd)(FORM *); 447} Binding_Info; | 471typedef struct 472{ 473 int keycode; 474 int (*cmd) (FORM *); 475} 476Binding_Info; |
448 449#undef form_driver 450int form_driver( 451 FORM *form, 452 int c) 453 { return(*(int *)0); } 454 455#undef set_field_buffer --- 162 unchanged lines hidden (view full) --- 618 619#undef form_win 620WINDOW *form_win( 621 const FORM *form) 622 { return(*(WINDOW **)0); } 623 624/* ./fty_alnum.c */ 625 | 477 478#undef form_driver 479int form_driver( 480 FORM *form, 481 int c) 482 { return(*(int *)0); } 483 484#undef set_field_buffer --- 162 unchanged lines hidden (view full) --- 647 648#undef form_win 649WINDOW *form_win( 650 const FORM *form) 651 { return(*(WINDOW **)0); } 652 653/* ./fty_alnum.c */ 654 |
626typedef struct { 627 int width; 628} alnumARG; | 655typedef struct 656 { 657 int width; 658 } 659alnumARG; |
629 630#undef TYPE_ALNUM 631FIELDTYPE *TYPE_ALNUM; 632 633/* ./fty_alpha.c */ 634 | 660 661#undef TYPE_ALNUM 662FIELDTYPE *TYPE_ALNUM; 663 664/* ./fty_alpha.c */ 665 |
635typedef struct { 636 int width; 637} alphaARG; | 666typedef struct 667 { 668 int width; 669 } 670alphaARG; |
638 639#undef TYPE_ALPHA 640FIELDTYPE *TYPE_ALPHA; 641 642/* ./fty_enum.c */ 643 | 671 672#undef TYPE_ALPHA 673FIELDTYPE *TYPE_ALPHA; 674 675/* ./fty_enum.c */ 676 |
644typedef struct { 645 char **kwds; 646 int count; 647 bool checkcase; 648 bool checkunique; 649} enumARG; | 677typedef struct 678 { 679 char **kwds; 680 int count; 681 NCURSES_BOOL checkcase; 682 NCURSES_BOOL checkunique; 683 } 684enumARG; |
650 651#undef TYPE_ENUM 652FIELDTYPE *TYPE_ENUM; 653 654/* ./fty_int.c */ 655 | 685 686#undef TYPE_ENUM 687FIELDTYPE *TYPE_ENUM; 688 689/* ./fty_int.c */ 690 |
656typedef struct { 657 int precision; 658 long low; 659 long high; 660} integerARG; | 691typedef struct 692 { 693 int precision; 694 long low; 695 long high; 696 } 697integerARG; |
661 662#undef TYPE_INTEGER 663FIELDTYPE *TYPE_INTEGER; 664 665/* ./fty_ipv4.c */ 666#undef TYPE_IPV4 667FIELDTYPE *TYPE_IPV4; 668 669/* ./fty_num.c */ 670 671#include <locale.h> 672 | 698 699#undef TYPE_INTEGER 700FIELDTYPE *TYPE_INTEGER; 701 702/* ./fty_ipv4.c */ 703#undef TYPE_IPV4 704FIELDTYPE *TYPE_IPV4; 705 706/* ./fty_num.c */ 707 708#include <locale.h> 709 |
673typedef struct { 674 int precision; 675 double low; 676 double high; 677 struct lconv* L; 678} numericARG; | 710typedef struct 711 { 712 int precision; 713 double low; 714 double high; 715 struct lconv *L; 716 } 717numericARG; |
679 680#undef TYPE_NUMERIC 681FIELDTYPE *TYPE_NUMERIC; 682 683/* ./fty_regex.c */ 684 685#include <regex.h> 686 687typedef struct | 718 719#undef TYPE_NUMERIC 720FIELDTYPE *TYPE_NUMERIC; 721 722/* ./fty_regex.c */ 723 724#include <regex.h> 725 726typedef struct |
688{ 689 regex_t *pRegExp; 690 unsigned long *refCount; 691} RegExp_Arg; | 727 { 728 regex_t *pRegExp; 729 unsigned long *refCount; 730 } 731RegExp_Arg; |
692 693#undef TYPE_REGEXP 694FIELDTYPE *TYPE_REGEXP; | 732 733#undef TYPE_REGEXP 734FIELDTYPE *TYPE_REGEXP; |