]> ncurses.scripts.mit.edu Git - ncurses.git/blob - form/llib-lform
ncurses 5.6 - patch 20070512
[ncurses.git] / form / llib-lform
1 /****************************************************************************
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  *                                                                          *
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       1996,1997,2002,2005                      *
31  ****************************************************************************/
32 /* LINTLIBRARY */
33
34 /* ./f_trace.c */
35
36 #include "form.priv.h"
37
38 #undef _nc_retrace_field_ptr
39 FIELD   **_nc_retrace_field_ptr(
40                 FIELD   **code)
41                 { return(*(FIELD ***)0); }
42
43 #undef _nc_retrace_field
44 FIELD   *_nc_retrace_field(
45                 FIELD   *code)
46                 { return(*(FIELD **)0); }
47
48 #undef _nc_retrace_field_type
49 FIELDTYPE *_nc_retrace_field_type(
50                 FIELDTYPE *code)
51                 { return(*(FIELDTYPE **)0); }
52
53 #undef _nc_retrace_form
54 FORM    *_nc_retrace_form(
55                 FORM    *code)
56                 { return(*(FORM **)0); }
57
58 #undef _nc_retrace_form_hook
59 Form_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
66 int     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
77 void    *field_arg(
78                 const FIELD *field)
79                 { return(*(void **)0); }
80
81 /* ./fld_attr.c */
82
83 #undef set_field_fore
84 int     set_field_fore(
85                 FIELD   *field, 
86                 chtype  attr)
87                 { return(*(int *)0); }
88
89 #undef field_fore
90 chtype  field_fore(
91                 const FIELD *field)
92                 { return(*(chtype *)0); }
93
94 #undef set_field_back
95 int     set_field_back(
96                 FIELD   *field, 
97                 chtype  attr)
98                 { return(*(int *)0); }
99
100 #undef field_back
101 chtype  field_back(
102                 const FIELD *field)
103                 { return(*(chtype *)0); }
104
105 /* ./fld_current.c */
106
107 #undef set_current_field
108 int     set_current_field(
109                 FORM    *form, 
110                 FIELD   *field)
111                 { return(*(int *)0); }
112
113 #undef current_field
114 FIELD   *current_field(
115                 const FORM *form)
116                 { return(*(FIELD **)0); }
117
118 #undef field_index
119 int     field_index(
120                 const FIELD *field)
121                 { return(*(int *)0); }
122
123 /* ./fld_def.c */
124
125 #undef _nc_Default_Field
126 FIELD   *_nc_Default_Field;
127
128 #undef _nc_Make_Argument
129 TypeArgument *_nc_Make_Argument(
130                 const FIELDTYPE *typ, 
131                 va_list *ap, 
132                 int     *err)
133                 { return(*(TypeArgument **)0); }
134
135 #undef _nc_Copy_Argument
136 TypeArgument *_nc_Copy_Argument(
137                 const FIELDTYPE *typ, 
138                 const TypeArgument *argp, 
139                 int     *err)
140                 { return(*(TypeArgument **)0); }
141
142 #undef _nc_Free_Argument
143 void    _nc_Free_Argument(
144                 const FIELDTYPE *typ, 
145                 TypeArgument *argp)
146                 { /* void */ }
147
148 #undef _nc_Copy_Type
149 NCURSES_BOOL _nc_Copy_Type(
150                 FIELD   *dst, 
151                 FIELD const *src)
152                 { return(*(NCURSES_BOOL *)0); }
153
154 #undef _nc_Free_Type
155 void    _nc_Free_Type(
156                 FIELD   *field)
157                 { /* void */ }
158
159 #undef new_field
160 FIELD   *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
170 int     free_field(
171                 FIELD   *field)
172                 { return(*(int *)0); }
173
174 /* ./fld_dup.c */
175
176 #undef dup_field
177 FIELD   *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
186 int     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
199 FIELDTYPE *link_fieldtype(
200                 FIELDTYPE *type1, 
201                 FIELDTYPE *type2)
202                 { return(*(FIELDTYPE **)0); }
203
204 /* ./fld_info.c */
205
206 #undef field_info
207 int     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
218 int     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
228 int     set_field_just(
229                 FIELD   *field, 
230                 int     just)
231                 { return(*(int *)0); }
232
233 #undef field_just
234 int     field_just(
235                 const FIELD *field)
236                 { return(*(int *)0); }
237
238 /* ./fld_link.c */
239
240 #undef link_field
241 FIELD   *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
250 int     set_max_field(
251                 FIELD   *field, 
252                 int     maxgrow)
253                 { return(*(int *)0); }
254
255 /* ./fld_move.c */
256
257 #undef move_field
258 int     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
267 const FIELDTYPE *_nc_Default_FieldType = {0};
268
269 #undef new_fieldtype
270 FIELDTYPE *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
280 int     free_fieldtype(
281                 FIELDTYPE *typ)
282                 { return(*(int *)0); }
283
284 /* ./fld_opts.c */
285
286 #undef set_field_opts
287 int     set_field_opts(
288                 FIELD   *field, 
289                 Field_Options opts)
290                 { return(*(int *)0); }
291
292 #undef field_opts
293 Field_Options field_opts(
294                 const FIELD *field)
295                 { return(*(Field_Options *)0); }
296
297 #undef field_opts_on
298 int     field_opts_on(
299                 FIELD   *field, 
300                 Field_Options opts)
301                 { return(*(int *)0); }
302
303 #undef field_opts_off
304 int     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
312 int     set_field_pad(
313                 FIELD   *field, 
314                 int     ch)
315                 { return(*(int *)0); }
316
317 #undef field_pad
318 int     field_pad(
319                 const FIELD *field)
320                 { return(*(int *)0); }
321
322 /* ./fld_page.c */
323
324 #undef set_new_page
325 int     set_new_page(
326                 FIELD   *field, 
327                 NCURSES_BOOL new_page_flag)
328                 { return(*(int *)0); }
329
330 #undef new_page
331 NCURSES_BOOL new_page(
332                 const FIELD *field)
333                 { return(*(NCURSES_BOOL *)0); }
334
335 /* ./fld_stat.c */
336
337 #undef set_field_status
338 int     set_field_status(
339                 FIELD   *field, 
340                 NCURSES_BOOL status)
341                 { return(*(int *)0); }
342
343 #undef field_status
344 NCURSES_BOOL field_status(
345                 const FIELD *field)
346                 { return(*(NCURSES_BOOL *)0); }
347
348 /* ./fld_type.c */
349
350 #undef set_field_type
351 int     set_field_type(
352                 FIELD   *field, 
353                 FIELDTYPE *type, 
354                 ...)
355                 { return(*(int *)0); }
356
357 #undef field_type
358 FIELDTYPE *field_type(
359                 const FIELD *field)
360                 { return(*(FIELDTYPE **)0); }
361
362 /* ./fld_user.c */
363
364 #undef set_field_userptr
365 int     set_field_userptr(
366                 FIELD   *field, 
367                 void    *usrptr)
368                 { return(*(int *)0); }
369
370 #undef field_userptr
371 void    *field_userptr(
372                 const FIELD *field)
373                 { return(*(void **)0); }
374
375 /* ./frm_cursor.c */
376
377 #undef pos_form_cursor
378 int     pos_form_cursor(
379                 FORM    *form)
380                 { return(*(int *)0); }
381
382 /* ./frm_data.c */
383
384 #undef data_behind
385 NCURSES_BOOL data_behind(
386                 const FORM *form)
387                 { return(*(NCURSES_BOOL *)0); }
388
389 #undef data_ahead
390 NCURSES_BOOL data_ahead(
391                 const FORM *form)
392                 { return(*(NCURSES_BOOL *)0); }
393
394 /* ./frm_def.c */
395
396 #undef _nc_Default_Form
397 FORM    *_nc_Default_Form;
398
399 #undef new_form
400 FORM    *new_form(
401                 FIELD   **fields)
402                 { return(*(FORM **)0); }
403
404 #undef free_form
405 int     free_form(
406                 FORM    *form)
407                 { return(*(int *)0); }
408
409 #undef set_form_fields
410 int     set_form_fields(
411                 FORM    *form, 
412                 FIELD   **fields)
413                 { return(*(int *)0); }
414
415 #undef form_fields
416 FIELD   **form_fields(
417                 const FORM *form)
418                 { return(*(FIELD ***)0); }
419
420 #undef field_count
421 int     field_count(
422                 const FORM *form)
423                 { return(*(int *)0); }
424
425 /* ./frm_driver.c */
426
427 #undef _nc_Position_Form_Cursor
428 int     _nc_Position_Form_Cursor(
429                 FORM    *form)
430                 { return(*(int *)0); }
431
432 #undef _nc_Refresh_Current_Field
433 int     _nc_Refresh_Current_Field(
434                 FORM    *form)
435                 { return(*(int *)0); }
436
437 #undef _nc_Synchronize_Attributes
438 int     _nc_Synchronize_Attributes(
439                 FIELD   *field)
440                 { return(*(int *)0); }
441
442 #undef _nc_Synchronize_Options
443 int     _nc_Synchronize_Options(
444                 FIELD   *field, 
445                 Field_Options newopts)
446                 { return(*(int *)0); }
447
448 #undef _nc_Set_Current_Field
449 int     _nc_Set_Current_Field(
450                 FORM    *form, 
451                 FIELD   *newfield)
452                 { return(*(int *)0); }
453
454 #undef _nc_Internal_Validation
455 NCURSES_BOOL _nc_Internal_Validation(
456                 FORM    *form)
457                 { return(*(NCURSES_BOOL *)0); }
458
459 #undef _nc_First_Active_Field
460 FIELD   *_nc_First_Active_Field(
461                 FORM    *form)
462                 { return(*(FIELD **)0); }
463
464 #undef _nc_Set_Form_Page
465 int     _nc_Set_Form_Page(
466                 FORM    *form, 
467                 int     page, 
468                 FIELD   *field)
469                 { return(*(int *)0); }
470
471 typedef struct
472 {
473   int keycode; 
474   int (*cmd) (FORM *); 
475 }
476 Binding_Info;
477
478 #undef form_driver
479 int     form_driver(
480                 FORM    *form, 
481                 int     c)
482                 { return(*(int *)0); }
483
484 #undef set_field_buffer
485 int     set_field_buffer(
486                 FIELD   *field, 
487                 int     buffer, 
488                 const char *value)
489                 { return(*(int *)0); }
490
491 #undef field_buffer
492 char    *field_buffer(
493                 const FIELD *field, 
494                 int     buffer)
495                 { return(*(char **)0); }
496
497 /* ./frm_hook.c */
498
499 #undef set_field_init
500 int     set_field_init(
501                 FORM    *form, 
502                 Form_Hook func)
503                 { return(*(int *)0); }
504
505 #undef field_init
506 Form_Hook field_init(
507                 const FORM *form)
508                 { return(*(Form_Hook *)0); }
509
510 #undef set_field_term
511 int     set_field_term(
512                 FORM    *form, 
513                 Form_Hook func)
514                 { return(*(int *)0); }
515
516 #undef field_term
517 Form_Hook field_term(
518                 const FORM *form)
519                 { return(*(Form_Hook *)0); }
520
521 #undef set_form_init
522 int     set_form_init(
523                 FORM    *form, 
524                 Form_Hook func)
525                 { return(*(int *)0); }
526
527 #undef form_init
528 Form_Hook form_init(
529                 const FORM *form)
530                 { return(*(Form_Hook *)0); }
531
532 #undef set_form_term
533 int     set_form_term(
534                 FORM    *form, 
535                 Form_Hook func)
536                 { return(*(int *)0); }
537
538 #undef form_term
539 Form_Hook form_term(
540                 const FORM *form)
541                 { return(*(Form_Hook *)0); }
542
543 /* ./frm_opts.c */
544
545 #undef set_form_opts
546 int     set_form_opts(
547                 FORM    *form, 
548                 Form_Options opts)
549                 { return(*(int *)0); }
550
551 #undef form_opts
552 Form_Options form_opts(
553                 const FORM *form)
554                 { return(*(Form_Options *)0); }
555
556 #undef form_opts_on
557 int     form_opts_on(
558                 FORM    *form, 
559                 Form_Options opts)
560                 { return(*(int *)0); }
561
562 #undef form_opts_off
563 int     form_opts_off(
564                 FORM    *form, 
565                 Form_Options opts)
566                 { return(*(int *)0); }
567
568 /* ./frm_page.c */
569
570 #undef set_form_page
571 int     set_form_page(
572                 FORM    *form, 
573                 int     page)
574                 { return(*(int *)0); }
575
576 #undef form_page
577 int     form_page(
578                 const FORM *form)
579                 { return(*(int *)0); }
580
581 /* ./frm_post.c */
582
583 #undef post_form
584 int     post_form(
585                 FORM    *form)
586                 { return(*(int *)0); }
587
588 #undef unpost_form
589 int     unpost_form(
590                 FORM    *form)
591                 { return(*(int *)0); }
592
593 /* ./frm_req_name.c */
594
595 #undef form_request_name
596 const char *form_request_name(
597                 int     request)
598                 { return(*(const char **)0); }
599
600 #undef form_request_by_name
601 int     form_request_by_name(
602                 const char *str)
603                 { return(*(int *)0); }
604
605 /* ./frm_scale.c */
606
607 #undef scale_form
608 int     scale_form(
609                 const FORM *form, 
610                 int     *rows, 
611                 int     *cols)
612                 { return(*(int *)0); }
613
614 /* ./frm_sub.c */
615
616 #undef set_form_sub
617 int     set_form_sub(
618                 FORM    *form, 
619                 WINDOW  *win)
620                 { return(*(int *)0); }
621
622 #undef form_sub
623 WINDOW  *form_sub(
624                 const FORM *form)
625                 { return(*(WINDOW **)0); }
626
627 /* ./frm_user.c */
628
629 #undef set_form_userptr
630 int     set_form_userptr(
631                 FORM    *form, 
632                 void    *usrptr)
633                 { return(*(int *)0); }
634
635 #undef form_userptr
636 void    *form_userptr(
637                 const FORM *form)
638                 { return(*(void **)0); }
639
640 /* ./frm_win.c */
641
642 #undef set_form_win
643 int     set_form_win(
644                 FORM    *form, 
645                 WINDOW  *win)
646                 { return(*(int *)0); }
647
648 #undef form_win
649 WINDOW  *form_win(
650                 const FORM *form)
651                 { return(*(WINDOW **)0); }
652
653 /* ./fty_alnum.c */
654
655 typedef struct
656   {
657     int width;
658   }
659 alnumARG;
660
661 #undef TYPE_ALNUM
662 FIELDTYPE *TYPE_ALNUM;
663
664 /* ./fty_alpha.c */
665
666 typedef struct
667   {
668     int width;
669   }
670 alphaARG;
671
672 #undef TYPE_ALPHA
673 FIELDTYPE *TYPE_ALPHA;
674
675 /* ./fty_enum.c */
676
677 typedef struct
678   {
679     char **kwds;
680     int count;
681     NCURSES_BOOL checkcase;
682     NCURSES_BOOL checkunique;
683   }
684 enumARG;
685
686 #undef TYPE_ENUM
687 FIELDTYPE *TYPE_ENUM;
688
689 /* ./fty_int.c */
690
691 typedef struct
692   {
693     int precision;
694     long low;
695     long high;
696   }
697 integerARG;
698
699 #undef TYPE_INTEGER
700 FIELDTYPE *TYPE_INTEGER;
701
702 /* ./fty_ipv4.c */
703 #undef TYPE_IPV4
704 FIELDTYPE *TYPE_IPV4;
705
706 /* ./fty_num.c */
707
708 #include <locale.h>
709
710 typedef struct
711   {
712     int precision;
713     double low;
714     double high;
715     struct lconv *L;
716   }
717 numericARG;
718
719 #undef TYPE_NUMERIC
720 FIELDTYPE *TYPE_NUMERIC;
721
722 /* ./fty_regex.c */
723
724 #include <regex.h>
725
726 typedef struct
727   {
728     regex_t *pRegExp;
729     unsigned long *refCount;
730   }
731 RegExp_Arg;
732
733 #undef TYPE_REGEXP
734 FIELDTYPE *TYPE_REGEXP;