Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / CursesDialog / form / llib-lform
blobac2ba436d66699ea9cea20ab6977ed859e602335
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  ****************************************************************************/
29 /****************************************************************************
30  *  Author: Thomas E. Dickey <dickey@clark.net> 1996,1997                   *
31  ****************************************************************************/
32 /* LINTLIBRARY */
34 /* ./fld_arg.c */
36 #include "form.priv.h"
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); }
49 #undef field_arg
50 void    *field_arg(
51                 const FIELD *field)
52                 { return(*(void **)0); }
54 /* ./fld_attr.c */
56 #undef set_field_fore
57 int     set_field_fore(
58                 FIELD   *field, 
59                 chtype  attr)
60                 { return(*(int *)0); }
62 #undef field_fore
63 chtype  field_fore(
64                 const FIELD *field)
65                 { return(*(chtype *)0); }
67 #undef set_field_back
68 int     set_field_back(
69                 FIELD   *field, 
70                 chtype  attr)
71                 { return(*(int *)0); }
73 #undef field_back
74 chtype  field_back(
75                 const FIELD *field)
76                 { return(*(chtype *)0); }
78 /* ./fld_current.c */
80 #undef set_current_field
81 int     set_current_field(
82                 FORM    *form, 
83                 FIELD   *field)
84                 { return(*(int *)0); }
86 #undef current_field
87 FIELD   *current_field(
88                 const FORM *form)
89                 { return(*(FIELD **)0); }
91 #undef field_index
92 int     field_index(
93                 const FIELD *field)
94                 { return(*(int *)0); }
96 /* ./fld_def.c */
98 #undef _nc_Default_Field
99 FIELD   *_nc_Default_Field;
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); }
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); }
115 #undef _nc_Free_Argument
116 void    _nc_Free_Argument(
117                 const FIELDTYPE *typ, 
118                 TypeArgument *argp)
119                 { /* void */ }
121 #undef _nc_Copy_Type
122 bool    _nc_Copy_Type(
123                 FIELD   *dst, 
124                 FIELD const *src)
125                 { return(*(bool *)0); }
127 #undef _nc_Free_Type
128 void    _nc_Free_Type(
129                 FIELD   *field)
130                 { /* void */ }
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); }
142 #undef free_field
143 int     free_field(
144                 FIELD   *field)
145                 { return(*(int *)0); }
147 /* ./fld_dup.c */
149 #undef dup_field
150 FIELD   *dup_field(
151                 FIELD   *field, 
152                 int     frow, 
153                 int     fcol)
154                 { return(*(FIELD **)0); }
156 /* ./fld_ftchoice.c */
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); }
169 /* ./fld_ftlink.c */
171 #undef link_fieldtype
172 FIELDTYPE *link_fieldtype(
173                 FIELDTYPE *type1, 
174                 FIELDTYPE *type2)
175                 { return(*(FIELDTYPE **)0); }
177 /* ./fld_info.c */
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); }
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); }
198 /* ./fld_just.c */
200 #undef set_field_just
201 int     set_field_just(
202                 FIELD   *field, 
203                 int     just)
204                 { return(*(int *)0); }
206 #undef field_just
207 int     field_just(
208                 const FIELD *field)
209                 { return(*(int *)0); }
211 /* ./fld_link.c */
213 #undef link_field
214 FIELD   *link_field(
215                 FIELD   *field, 
216                 int     frow, 
217                 int     fcol)
218                 { return(*(FIELD **)0); }
220 /* ./fld_max.c */
222 #undef set_max_field
223 int     set_max_field(
224                 FIELD   *field, 
225                 int     maxgrow)
226                 { return(*(int *)0); }
228 /* ./fld_move.c */
230 #undef move_field
231 int     move_field(
232                 FIELD   *field, 
233                 int     frow, 
234                 int     fcol)
235                 { return(*(int *)0); }
237 /* ./fld_newftyp.c */
239 #undef _nc_Default_FieldType
240 const FIELDTYPE *_nc_Default_FieldType = {0};
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); }
252 #undef free_fieldtype
253 int     free_fieldtype(
254                 FIELDTYPE *typ)
255                 { return(*(int *)0); }
257 /* ./fld_opts.c */
259 #undef set_field_opts
260 int     set_field_opts(
261                 FIELD   *field, 
262                 Field_Options opts)
263                 { return(*(int *)0); }
265 #undef field_opts
266 Field_Options field_opts(
267                 const FIELD *field)
268                 { return(*(Field_Options *)0); }
270 #undef field_opts_on
271 int     field_opts_on(
272                 FIELD   *field, 
273                 Field_Options opts)
274                 { return(*(int *)0); }
276 #undef field_opts_off
277 int     field_opts_off(
278                 FIELD   *field, 
279                 Field_Options opts)
280                 { return(*(int *)0); }
282 /* ./fld_pad.c */
284 #undef set_field_pad
285 int     set_field_pad(
286                 FIELD   *field, 
287                 int     ch)
288                 { return(*(int *)0); }
290 #undef field_pad
291 int     field_pad(
292                 const FIELD *field)
293                 { return(*(int *)0); }
295 /* ./fld_page.c */
297 #undef set_new_page
298 int     set_new_page(
299                 FIELD   *field, 
300                 bool    new_page_flag)
301                 { return(*(int *)0); }
303 #undef new_page
304 bool    new_page(
305                 const FIELD *field)
306                 { return(*(bool *)0); }
308 /* ./fld_stat.c */
310 #undef set_field_status
311 int     set_field_status(
312                 FIELD   *field, 
313                 bool    status)
314                 { return(*(int *)0); }
316 #undef field_status
317 bool    field_status(
318                 const FIELD *field)
319                 { return(*(bool *)0); }
321 /* ./fld_type.c */
323 #undef set_field_type
324 int     set_field_type(
325                 FIELD   *field, 
326                 FIELDTYPE *type, 
327                 ...)
328                 { return(*(int *)0); }
330 #undef field_type
331 FIELDTYPE *field_type(
332                 const FIELD *field)
333                 { return(*(FIELDTYPE **)0); }
335 /* ./fld_user.c */
337 #undef set_field_userptr
338 int     set_field_userptr(
339                 FIELD   *field, 
340                 void    *usrptr)
341                 { return(*(int *)0); }
343 #undef field_userptr
344 void    *field_userptr(
345                 const FIELD *field)
346                 { return(*(void **)0); }
348 /* ./frm_cursor.c */
350 #undef pos_form_cursor
351 int     pos_form_cursor(
352                 FORM    *form)
353                 { return(*(int *)0); }
355 /* ./frm_data.c */
357 #undef data_behind
358 bool    data_behind(
359                 const FORM *form)
360                 { return(*(bool *)0); }
362 #undef data_ahead
363 bool    data_ahead(
364                 const FORM *form)
365                 { return(*(bool *)0); }
367 /* ./frm_def.c */
369 #undef _nc_Default_Form
370 FORM    *_nc_Default_Form;
372 #undef new_form
373 FORM    *new_form(
374                 FIELD   **fields)
375                 { return(*(FORM **)0); }
377 #undef free_form
378 int     free_form(
379                 FORM    *form)
380                 { return(*(int *)0); }
382 #undef set_form_fields
383 int     set_form_fields(
384                 FORM    *form, 
385                 FIELD   **fields)
386                 { return(*(int *)0); }
388 #undef form_fields
389 FIELD   **form_fields(
390                 const FORM *form)
391                 { return(*(FIELD ***)0); }
393 #undef field_count
394 int     field_count(
395                 const FORM *form)
396                 { return(*(int *)0); }
398 /* ./frm_driver.c */
400 #undef _nc_Position_Form_Cursor
401 int     _nc_Position_Form_Cursor(
402                 FORM    *form)
403                 { return(*(int *)0); }
405 #undef _nc_Refresh_Current_Field
406 int     _nc_Refresh_Current_Field(
407                 FORM    *form)
408                 { return(*(int *)0); }
410 #undef _nc_Synchronize_Attributes
411 int     _nc_Synchronize_Attributes(
412                 FIELD   *field)
413                 { return(*(int *)0); }
415 #undef _nc_Synchronize_Options
416 int     _nc_Synchronize_Options(
417                 FIELD   *field, 
418                 Field_Options newopts)
419                 { return(*(int *)0); }
421 #undef _nc_Set_Current_Field
422 int     _nc_Set_Current_Field(
423                 FORM    *form, 
424                 FIELD   *newfield)
425                 { return(*(int *)0); }
427 #undef _nc_Internal_Validation
428 bool    _nc_Internal_Validation(
429                 FORM    *form)
430                 { return(*(bool *)0); }
432 #undef _nc_First_Active_Field
433 FIELD   *_nc_First_Active_Field(
434                 FORM    *form)
435                 { return(*(FIELD **)0); }
437 #undef _nc_Set_Form_Page
438 int     _nc_Set_Form_Page(
439                 FORM    *form, 
440                 int     page, 
441                 FIELD   *field)
442                 { return(*(int *)0); }
444 typedef struct {
445   int keycode;           
446   int (*cmd)(FORM *);    
447 } Binding_Info;
449 #undef form_driver
450 int     form_driver(
451                 FORM    *form, 
452                 int     c)
453                 { return(*(int *)0); }
455 #undef set_field_buffer
456 int     set_field_buffer(
457                 FIELD   *field, 
458                 int     buffer, 
459                 const char *value)
460                 { return(*(int *)0); }
462 #undef field_buffer
463 char    *field_buffer(
464                 const FIELD *field, 
465                 int     buffer)
466                 { return(*(char **)0); }
468 /* ./frm_hook.c */
470 #undef set_field_init
471 int     set_field_init(
472                 FORM    *form, 
473                 Form_Hook func)
474                 { return(*(int *)0); }
476 #undef field_init
477 Form_Hook field_init(
478                 const FORM *form)
479                 { return(*(Form_Hook *)0); }
481 #undef set_field_term
482 int     set_field_term(
483                 FORM    *form, 
484                 Form_Hook func)
485                 { return(*(int *)0); }
487 #undef field_term
488 Form_Hook field_term(
489                 const FORM *form)
490                 { return(*(Form_Hook *)0); }
492 #undef set_form_init
493 int     set_form_init(
494                 FORM    *form, 
495                 Form_Hook func)
496                 { return(*(int *)0); }
498 #undef form_init
499 Form_Hook form_init(
500                 const FORM *form)
501                 { return(*(Form_Hook *)0); }
503 #undef set_form_term
504 int     set_form_term(
505                 FORM    *form, 
506                 Form_Hook func)
507                 { return(*(int *)0); }
509 #undef form_term
510 Form_Hook form_term(
511                 const FORM *form)
512                 { return(*(Form_Hook *)0); }
514 /* ./frm_opts.c */
516 #undef set_form_opts
517 int     set_form_opts(
518                 FORM    *form, 
519                 Form_Options opts)
520                 { return(*(int *)0); }
522 #undef form_opts
523 Form_Options form_opts(
524                 const FORM *form)
525                 { return(*(Form_Options *)0); }
527 #undef form_opts_on
528 int     form_opts_on(
529                 FORM    *form, 
530                 Form_Options opts)
531                 { return(*(int *)0); }
533 #undef form_opts_off
534 int     form_opts_off(
535                 FORM    *form, 
536                 Form_Options opts)
537                 { return(*(int *)0); }
539 /* ./frm_page.c */
541 #undef set_form_page
542 int     set_form_page(
543                 FORM    *form, 
544                 int     page)
545                 { return(*(int *)0); }
547 #undef form_page
548 int     form_page(
549                 const FORM *form)
550                 { return(*(int *)0); }
552 /* ./frm_post.c */
554 #undef post_form
555 int     post_form(
556                 FORM    *form)
557                 { return(*(int *)0); }
559 #undef unpost_form
560 int     unpost_form(
561                 FORM    *form)
562                 { return(*(int *)0); }
564 /* ./frm_req_name.c */
566 #undef form_request_name
567 const char *form_request_name(
568                 int     request)
569                 { return(*(const char **)0); }
571 #undef form_request_by_name
572 int     form_request_by_name(
573                 const char *str)
574                 { return(*(int *)0); }
576 /* ./frm_scale.c */
578 #undef scale_form
579 int     scale_form(
580                 const FORM *form, 
581                 int     *rows, 
582                 int     *cols)
583                 { return(*(int *)0); }
585 /* ./frm_sub.c */
587 #undef set_form_sub
588 int     set_form_sub(
589                 FORM    *form, 
590                 WINDOW  *win)
591                 { return(*(int *)0); }
593 #undef form_sub
594 WINDOW  *form_sub(
595                 const FORM *form)
596                 { return(*(WINDOW **)0); }
598 /* ./frm_user.c */
600 #undef set_form_userptr
601 int     set_form_userptr(
602                 FORM    *form, 
603                 void    *usrptr)
604                 { return(*(int *)0); }
606 #undef form_userptr
607 void    *form_userptr(
608                 const FORM *form)
609                 { return(*(void **)0); }
611 /* ./frm_win.c */
613 #undef set_form_win
614 int     set_form_win(
615                 FORM    *form, 
616                 WINDOW  *win)
617                 { return(*(int *)0); }
619 #undef form_win
620 WINDOW  *form_win(
621                 const FORM *form)
622                 { return(*(WINDOW **)0); }
624 /* ./fty_alnum.c */
626 typedef struct {
627   int width;
628 } alnumARG;
630 #undef TYPE_ALNUM
631 FIELDTYPE *TYPE_ALNUM;
633 /* ./fty_alpha.c */
635 typedef struct {
636   int width;
637 } alphaARG;
639 #undef TYPE_ALPHA
640 FIELDTYPE *TYPE_ALPHA;
642 /* ./fty_enum.c */
644 typedef struct {
645   char **kwds;
646   int  count;
647   bool checkcase;
648   bool checkunique;
649 } enumARG;
651 #undef TYPE_ENUM
652 FIELDTYPE *TYPE_ENUM;
654 /* ./fty_int.c */
656 typedef struct {
657   int precision;
658   long low;
659   long high;
660 } integerARG;
662 #undef TYPE_INTEGER
663 FIELDTYPE *TYPE_INTEGER;
665 /* ./fty_ipv4.c */
666 #undef TYPE_IPV4
667 FIELDTYPE *TYPE_IPV4;
669 /* ./fty_num.c */
671 #include <locale.h>
673 typedef struct {
674   int    precision;
675   double low;
676   double high;
677   struct lconv* L;
678 } numericARG;
680 #undef TYPE_NUMERIC
681 FIELDTYPE *TYPE_NUMERIC;
683 /* ./fty_regex.c */
685 #include <regex.h>
687 typedef struct
689   regex_t *pRegExp;
690   unsigned long *refCount;
691 } RegExp_Arg;
693 #undef TYPE_REGEXP
694 FIELDTYPE *TYPE_REGEXP;