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