]> ncurses.scripts.mit.edu Git - ncurses.git/blob - form/llib-lformw
ncurses 6.1 - patch 20190803
[ncurses.git] / form / llib-lformw
1 /****************************************************************************
2  * Copyright (c) 2002-2015,2017 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
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 unfocus_current_field
114 int     unfocus_current_field(
115                 FORM    *const form)
116                 { return(*(int *)0); }
117
118 #undef current_field
119 FIELD   *current_field(
120                 const FORM *form)
121                 { return(*(FIELD **)0); }
122
123 #undef field_index
124 int     field_index(
125                 const FIELD *field)
126                 { return(*(int *)0); }
127
128 /* ./fld_def.c */
129
130 #undef _nc_Default_Field
131 FIELD   *_nc_Default_Field;
132
133 #undef _nc_Make_Argument
134 TypeArgument *_nc_Make_Argument(
135                 const FIELDTYPE *typ, 
136                 va_list *ap, 
137                 int     *err)
138                 { return(*(TypeArgument **)0); }
139
140 #undef _nc_Copy_Argument
141 TypeArgument *_nc_Copy_Argument(
142                 const FIELDTYPE *typ, 
143                 const TypeArgument *argp, 
144                 int     *err)
145                 { return(*(TypeArgument **)0); }
146
147 #undef _nc_Free_Argument
148 void    _nc_Free_Argument(
149                 const FIELDTYPE *typ, 
150                 TypeArgument *argp)
151                 { /* void */ }
152
153 #undef _nc_Copy_Type
154 NCURSES_BOOL _nc_Copy_Type(
155                 FIELD   *dst, 
156                 FIELD const *src)
157                 { return(*(NCURSES_BOOL *)0); }
158
159 #undef _nc_Free_Type
160 void    _nc_Free_Type(
161                 FIELD   *field)
162                 { /* void */ }
163
164 #undef new_field
165 FIELD   *new_field(
166                 int     rows, 
167                 int     cols, 
168                 int     frow, 
169                 int     fcol, 
170                 int     nrow, 
171                 int     nbuf)
172                 { return(*(FIELD **)0); }
173
174 #undef free_field
175 int     free_field(
176                 FIELD   *field)
177                 { return(*(int *)0); }
178
179 /* ./fld_dup.c */
180
181 #undef dup_field
182 FIELD   *dup_field(
183                 FIELD   *field, 
184                 int     frow, 
185                 int     fcol)
186                 { return(*(FIELD **)0); }
187
188 /* ./fld_ftchoice.c */
189
190 #undef set_fieldtype_choice
191 int     set_fieldtype_choice(
192                 FIELDTYPE *typ, 
193                 NCURSES_BOOL (*const next_choice)(
194                 FIELD   *p1, 
195                 const void *p2), 
196                 NCURSES_BOOL (*const prev_choice)(
197                 FIELD   *p1, 
198                 const void *p2))
199                 { return(*(int *)0); }
200
201 /* ./fld_ftlink.c */
202
203 #undef link_fieldtype
204 FIELDTYPE *link_fieldtype(
205                 FIELDTYPE *type1, 
206                 FIELDTYPE *type2)
207                 { return(*(FIELDTYPE **)0); }
208
209 /* ./fld_info.c */
210
211 #undef field_info
212 int     field_info(
213                 const FIELD *field, 
214                 int     *rows, 
215                 int     *cols, 
216                 int     *frow, 
217                 int     *fcol, 
218                 int     *nrow, 
219                 int     *nbuf)
220                 { return(*(int *)0); }
221
222 #undef dynamic_field_info
223 int     dynamic_field_info(
224                 const FIELD *field, 
225                 int     *drows, 
226                 int     *dcols, 
227                 int     *maxgrow)
228                 { return(*(int *)0); }
229
230 /* ./fld_just.c */
231
232 #undef set_field_just
233 int     set_field_just(
234                 FIELD   *field, 
235                 int     just)
236                 { return(*(int *)0); }
237
238 #undef field_just
239 int     field_just(
240                 const FIELD *field)
241                 { return(*(int *)0); }
242
243 /* ./fld_link.c */
244
245 #undef link_field
246 FIELD   *link_field(
247                 FIELD   *field, 
248                 int     frow, 
249                 int     fcol)
250                 { return(*(FIELD **)0); }
251
252 /* ./fld_max.c */
253
254 #undef set_max_field
255 int     set_max_field(
256                 FIELD   *field, 
257                 int     maxgrow)
258                 { return(*(int *)0); }
259
260 /* ./fld_move.c */
261
262 #undef move_field
263 int     move_field(
264                 FIELD   *field, 
265                 int     frow, 
266                 int     fcol)
267                 { return(*(int *)0); }
268
269 /* ./fld_newftyp.c */
270
271 #undef _nc_Default_FieldType
272 FIELDTYPE *_nc_Default_FieldType;
273
274 #undef new_fieldtype
275 FIELDTYPE *new_fieldtype(
276                 NCURSES_BOOL (*const field_check)(
277                 FIELD   *p1, 
278                 const void *p2), 
279                 NCURSES_BOOL (*const char_check)(
280                 int     p1, 
281                 const void *p2))
282                 { return(*(FIELDTYPE **)0); }
283
284 #undef free_fieldtype
285 int     free_fieldtype(
286                 FIELDTYPE *typ)
287                 { return(*(int *)0); }
288
289 /* ./fld_opts.c */
290
291 #undef set_field_opts
292 int     set_field_opts(
293                 FIELD   *field, 
294                 Field_Options opts)
295                 { return(*(int *)0); }
296
297 #undef field_opts
298 Field_Options field_opts(
299                 const FIELD *field)
300                 { return(*(Field_Options *)0); }
301
302 #undef field_opts_on
303 int     field_opts_on(
304                 FIELD   *field, 
305                 Field_Options opts)
306                 { return(*(int *)0); }
307
308 #undef field_opts_off
309 int     field_opts_off(
310                 FIELD   *field, 
311                 Field_Options opts)
312                 { return(*(int *)0); }
313
314 /* ./fld_pad.c */
315
316 #undef set_field_pad
317 int     set_field_pad(
318                 FIELD   *field, 
319                 int     ch)
320                 { return(*(int *)0); }
321
322 #undef field_pad
323 int     field_pad(
324                 const FIELD *field)
325                 { return(*(int *)0); }
326
327 /* ./fld_page.c */
328
329 #undef set_new_page
330 int     set_new_page(
331                 FIELD   *field, 
332                 NCURSES_BOOL new_page_flag)
333                 { return(*(int *)0); }
334
335 #undef new_page
336 NCURSES_BOOL new_page(
337                 const FIELD *field)
338                 { return(*(NCURSES_BOOL *)0); }
339
340 /* ./fld_stat.c */
341
342 #undef set_field_status
343 int     set_field_status(
344                 FIELD   *field, 
345                 NCURSES_BOOL status)
346                 { return(*(int *)0); }
347
348 #undef field_status
349 NCURSES_BOOL field_status(
350                 const FIELD *field)
351                 { return(*(NCURSES_BOOL *)0); }
352
353 /* ./fld_type.c */
354
355 #undef set_field_type
356 int     set_field_type(
357                 FIELD   *field, 
358                 FIELDTYPE *type, 
359                 ...)
360                 { return(*(int *)0); }
361
362 #undef field_type
363 FIELDTYPE *field_type(
364                 const FIELD *field)
365                 { return(*(FIELDTYPE **)0); }
366
367 /* ./fld_user.c */
368
369 #undef set_field_userptr
370 int     set_field_userptr(
371                 FIELD   *field, 
372                 void    *usrptr)
373                 { return(*(int *)0); }
374
375 #undef field_userptr
376 void    *field_userptr(
377                 const FIELD *field)
378                 { return(*(void **)0); }
379
380 /* ./frm_cursor.c */
381
382 #undef pos_form_cursor
383 int     pos_form_cursor(
384                 FORM    *form)
385                 { return(*(int *)0); }
386
387 /* ./frm_data.c */
388
389 #undef data_behind
390 NCURSES_BOOL data_behind(
391                 const FORM *form)
392                 { return(*(NCURSES_BOOL *)0); }
393
394 #undef data_ahead
395 NCURSES_BOOL data_ahead(
396                 const FORM *form)
397                 { return(*(NCURSES_BOOL *)0); }
398
399 /* ./frm_def.c */
400
401 #undef _nc_Default_Form
402 FORM    *_nc_Default_Form;
403
404 #undef new_form_sp
405 FORM    *new_form_sp(
406                 SCREEN  *sp, 
407                 FIELD   **fields)
408                 { return(*(FORM **)0); }
409
410 #undef new_form
411 FORM    *new_form(
412                 FIELD   **fields)
413                 { return(*(FORM **)0); }
414
415 #undef free_form
416 int     free_form(
417                 FORM    *form)
418                 { return(*(int *)0); }
419
420 #undef set_form_fields
421 int     set_form_fields(
422                 FORM    *form, 
423                 FIELD   **fields)
424                 { return(*(int *)0); }
425
426 #undef form_fields
427 FIELD   **form_fields(
428                 const FORM *form)
429                 { return(*(FIELD ***)0); }
430
431 #undef field_count
432 int     field_count(
433                 const FORM *form)
434                 { return(*(int *)0); }
435
436 /* ./frm_driver.c */
437
438 #undef _nc_get_fieldbuffer
439 void    _nc_get_fieldbuffer(
440                 FORM    *form, 
441                 FIELD   *field, 
442                 cchar_t *buf)
443                 { /* void */ }
444
445 #undef _nc_Position_Form_Cursor
446 int     _nc_Position_Form_Cursor(
447                 FORM    *form)
448                 { return(*(int *)0); }
449
450 #undef _nc_Refresh_Current_Field
451 int     _nc_Refresh_Current_Field(
452                 FORM    *form)
453                 { return(*(int *)0); }
454
455 #undef _nc_Synchronize_Attributes
456 int     _nc_Synchronize_Attributes(
457                 FIELD   *field)
458                 { return(*(int *)0); }
459
460 #undef _nc_Synchronize_Options
461 int     _nc_Synchronize_Options(
462                 FIELD   *field, 
463                 Field_Options newopts)
464                 { return(*(int *)0); }
465
466 #undef _nc_Unset_Current_Field
467 void    _nc_Unset_Current_Field(
468                 FORM    *form)
469                 { /* void */ }
470
471 #undef _nc_Set_Current_Field
472 int     _nc_Set_Current_Field(
473                 FORM    *form, 
474                 FIELD   *newfield)
475                 { return(*(int *)0); }
476
477 #undef _nc_Internal_Validation
478 NCURSES_BOOL _nc_Internal_Validation(
479                 FORM    *form)
480                 { return(*(NCURSES_BOOL *)0); }
481
482 #undef _nc_First_Active_Field
483 FIELD   *_nc_First_Active_Field(
484                 FORM    *form)
485                 { return(*(FIELD **)0); }
486
487 #undef _nc_Set_Form_Page
488 int     _nc_Set_Form_Page(
489                 FORM    *form, 
490                 int     page, 
491                 FIELD   *field)
492                 { return(*(int *)0); }
493
494 typedef struct
495 {
496   int keycode; 
497   int (*cmd) (FORM *); 
498 }
499 Binding_Info;
500
501 #undef form_driver
502 int     form_driver(
503                 FORM    *form, 
504                 int     c)
505                 { return(*(int *)0); }
506
507 #undef form_driver_w
508 int     form_driver_w(
509                 FORM    *form, 
510                 int     type, 
511                 wchar_t c)
512                 { return(*(int *)0); }
513
514 #undef set_field_buffer
515 int     set_field_buffer(
516                 FIELD   *field, 
517                 int     buffer, 
518                 const char *value)
519                 { return(*(int *)0); }
520
521 #undef field_buffer
522 char    *field_buffer(
523                 const FIELD *field, 
524                 int     buffer)
525                 { return(*(char **)0); }
526
527 #undef _nc_Widen_String
528 wchar_t *_nc_Widen_String(
529                 char    *source, 
530                 int     *lengthp)
531                 { return(*(wchar_t **)0); }
532
533 /* ./frm_hook.c */
534
535 #undef set_field_init
536 int     set_field_init(
537                 FORM    *form, 
538                 Form_Hook func)
539                 { return(*(int *)0); }
540
541 #undef field_init
542 Form_Hook field_init(
543                 const FORM *form)
544                 { return(*(Form_Hook *)0); }
545
546 #undef set_field_term
547 int     set_field_term(
548                 FORM    *form, 
549                 Form_Hook func)
550                 { return(*(int *)0); }
551
552 #undef field_term
553 Form_Hook field_term(
554                 const FORM *form)
555                 { return(*(Form_Hook *)0); }
556
557 #undef set_form_init
558 int     set_form_init(
559                 FORM    *form, 
560                 Form_Hook func)
561                 { return(*(int *)0); }
562
563 #undef form_init
564 Form_Hook form_init(
565                 const FORM *form)
566                 { return(*(Form_Hook *)0); }
567
568 #undef set_form_term
569 int     set_form_term(
570                 FORM    *form, 
571                 Form_Hook func)
572                 { return(*(int *)0); }
573
574 #undef form_term
575 Form_Hook form_term(
576                 const FORM *form)
577                 { return(*(Form_Hook *)0); }
578
579 /* ./frm_opts.c */
580
581 #undef set_form_opts
582 int     set_form_opts(
583                 FORM    *form, 
584                 Form_Options opts)
585                 { return(*(int *)0); }
586
587 #undef form_opts
588 Form_Options form_opts(
589                 const FORM *form)
590                 { return(*(Form_Options *)0); }
591
592 #undef form_opts_on
593 int     form_opts_on(
594                 FORM    *form, 
595                 Form_Options opts)
596                 { return(*(int *)0); }
597
598 #undef form_opts_off
599 int     form_opts_off(
600                 FORM    *form, 
601                 Form_Options opts)
602                 { return(*(int *)0); }
603
604 /* ./frm_page.c */
605
606 #undef set_form_page
607 int     set_form_page(
608                 FORM    *form, 
609                 int     page)
610                 { return(*(int *)0); }
611
612 #undef form_page
613 int     form_page(
614                 const FORM *form)
615                 { return(*(int *)0); }
616
617 /* ./frm_post.c */
618
619 #undef post_form
620 int     post_form(
621                 FORM    *form)
622                 { return(*(int *)0); }
623
624 #undef unpost_form
625 int     unpost_form(
626                 FORM    *form)
627                 { return(*(int *)0); }
628
629 /* ./frm_req_name.c */
630
631 #undef form_request_name
632 const char *form_request_name(
633                 int     request)
634                 { return(*(const char **)0); }
635
636 #undef form_request_by_name
637 int     form_request_by_name(
638                 const char *str)
639                 { return(*(int *)0); }
640
641 /* ./frm_scale.c */
642
643 #undef scale_form
644 int     scale_form(
645                 const FORM *form, 
646                 int     *rows, 
647                 int     *cols)
648                 { return(*(int *)0); }
649
650 /* ./frm_sub.c */
651
652 #undef set_form_sub
653 int     set_form_sub(
654                 FORM    *form, 
655                 WINDOW  *win)
656                 { return(*(int *)0); }
657
658 #undef form_sub
659 WINDOW  *form_sub(
660                 const FORM *form)
661                 { return(*(WINDOW **)0); }
662
663 /* ./frm_user.c */
664
665 #undef set_form_userptr
666 int     set_form_userptr(
667                 FORM    *form, 
668                 void    *usrptr)
669                 { return(*(int *)0); }
670
671 #undef form_userptr
672 void    *form_userptr(
673                 const FORM *form)
674                 { return(*(void **)0); }
675
676 /* ./frm_win.c */
677
678 #undef set_form_win
679 int     set_form_win(
680                 FORM    *form, 
681                 WINDOW  *win)
682                 { return(*(int *)0); }
683
684 #undef form_win
685 WINDOW  *form_win(
686                 const FORM *form)
687                 { return(*(WINDOW **)0); }
688
689 /* ./fty_alnum.c */
690
691 typedef struct
692   {
693     int width;
694   }
695 alnumARG;
696
697 #undef TYPE_ALNUM
698 FIELDTYPE *TYPE_ALNUM;
699
700 #undef _nc_TYPE_ALNUM
701 FIELDTYPE *_nc_TYPE_ALNUM(void)
702                 { return(*(FIELDTYPE **)0); }
703
704 /* ./fty_alpha.c */
705
706 typedef struct
707   {
708     int width;
709   }
710 alphaARG;
711
712 #undef TYPE_ALPHA
713 FIELDTYPE *TYPE_ALPHA;
714
715 #undef _nc_TYPE_ALPHA
716 FIELDTYPE *_nc_TYPE_ALPHA(void)
717                 { return(*(FIELDTYPE **)0); }
718
719 /* ./fty_enum.c */
720
721 typedef struct
722   {
723     char **kwds;
724     int count;
725     NCURSES_BOOL checkcase;
726     NCURSES_BOOL checkunique;
727   }
728 enumARG;
729
730 typedef struct
731   {
732     char **kwds;
733     int ccase;
734     int cunique;
735   }
736 enumParams;
737
738 #undef TYPE_ENUM
739 FIELDTYPE *TYPE_ENUM;
740
741 #undef _nc_TYPE_ENUM
742 FIELDTYPE *_nc_TYPE_ENUM(void)
743                 { return(*(FIELDTYPE **)0); }
744
745 /* ./fty_generic.c */
746
747 #undef _nc_generic_fieldtype
748 FIELDTYPE *_nc_generic_fieldtype(
749                 NCURSES_BOOL (*const field_check)(
750                 FORM    *p1, 
751                 FIELD   *p2, 
752                 const void *p3), 
753                 NCURSES_BOOL (*const char_check)(
754                 int     p1, 
755                 FORM    *p2, 
756                 FIELD   *p3, 
757                 const void *p4), 
758                 NCURSES_BOOL (*const next)(
759                 FORM    *p1, 
760                 FIELD   *p2, 
761                 const void *p3), 
762                 NCURSES_BOOL (*const prev)(
763                 FORM    *p1, 
764                 FIELD   *p2, 
765                 const void *p3), 
766                 void    (*freecallback)(
767                 void    *p1))
768                 { return(*(FIELDTYPE **)0); }
769
770 #undef _nc_set_generic_fieldtype
771 int     _nc_set_generic_fieldtype(
772                 FIELD   *field, 
773                 FIELDTYPE *ftyp, 
774                 int     (*argiterator)(
775                 void    **p1))
776                 { return(*(int *)0); }
777
778 #undef _nc_form_cursor
779 WINDOW  *_nc_form_cursor(
780                 const FORM *form, 
781                 int     *pRow, 
782                 int     *pCol)
783                 { return(*(WINDOW **)0); }
784
785 /* ./fty_int.c */
786
787 typedef struct
788   {
789     int precision;
790     long low;
791     long high;
792   }
793 integerARG;
794
795 typedef struct
796   {
797     int precision;
798     long low;
799     long high;
800   }
801 integerPARM;
802
803 #undef TYPE_INTEGER
804 FIELDTYPE *TYPE_INTEGER;
805
806 #undef _nc_TYPE_INTEGER
807 FIELDTYPE *_nc_TYPE_INTEGER(void)
808                 { return(*(FIELDTYPE **)0); }
809
810 /* ./fty_ipv4.c */
811
812 #undef TYPE_IPV4
813 FIELDTYPE *TYPE_IPV4;
814
815 #undef _nc_TYPE_IPV4
816 FIELDTYPE *_nc_TYPE_IPV4(void)
817                 { return(*(FIELDTYPE **)0); }
818
819 /* ./fty_num.c */
820
821 typedef struct
822   {
823     int precision;
824     double low;
825     double high;
826     struct lconv *L;
827   }
828 numericARG;
829
830 typedef struct
831   {
832     int precision;
833     double low;
834     double high;
835   }
836 thisPARM;
837
838 #undef TYPE_NUMERIC
839 FIELDTYPE *TYPE_NUMERIC;
840
841 #undef _nc_TYPE_NUMERIC
842 FIELDTYPE *_nc_TYPE_NUMERIC(void)
843                 { return(*(FIELDTYPE **)0); }
844
845 /* ./fty_regex.c */
846
847 typedef struct
848   {
849     regex_t *pRegExp;
850     unsigned long *refCount;
851   }
852 RegExp_Arg;
853
854 #undef TYPE_REGEXP
855 FIELDTYPE *TYPE_REGEXP;
856
857 #undef _nc_TYPE_REGEXP
858 FIELDTYPE *_nc_TYPE_REGEXP(void)
859                 { return(*(FIELDTYPE **)0); }