]> ncurses.scripts.mit.edu Git - ncurses.git/blob - form/llib-lform
ncurses 4.1
[ncurses.git] / form / llib-lform
1 /******************************************************************************
2  * Copyright 1996 by Thomas E. Dickey <dickey@clark.net>                      *
3  * All Rights Reserved.                                                       *
4  *                                                                            *
5  * Permission to use, copy, modify, and distribute this software and its      *
6  * documentation for any purpose and without fee is hereby granted, provided  *
7  * that the above copyright notice appear in all copies and that both that    *
8  * copyright notice and this permission notice appear in supporting           *
9  * documentation, and that the name of the above listed copyright holder(s)   *
10  * not be used in advertising or publicity pertaining to distribution of the  *
11  * software without specific, written prior permission. THE ABOVE LISTED      *
12  * COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,  *
13  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO     *
14  * EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY         *
15  * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER       *
16  * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF       *
17  * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN        *
18  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.                   *
19  ******************************************************************************/
20 /* LINTLIBRARY */
21
22 /* ./fty_regex.c */
23
24 #include "form.priv.h"
25 #include <regex.h>
26
27 typedef struct
28 {
29   regex_t *pRegExp;
30   unsigned long refCount;
31 } RegExp_Arg;
32
33 #undef TYPE_REGEXP
34 FIELDTYPE *TYPE_REGEXP;
35
36 /* ./fty_num.c */
37
38 #include <locale.h>
39
40 typedef struct {
41   int    precision;
42   double low;
43   double high;
44   struct lconv* L;
45 } numericARG;
46
47 #undef TYPE_NUMERIC
48 FIELDTYPE *TYPE_NUMERIC;
49
50 /* ./fty_int.c */
51
52 typedef struct {
53   int precision;
54   int low;
55   int high;
56 } integerARG;
57
58 #undef TYPE_INTEGER
59 FIELDTYPE *TYPE_INTEGER;
60
61 /* ./fty_enum.c */
62
63 typedef struct {
64   char **kwds;
65   int  count;
66   bool checkcase;
67   bool checkunique;
68 } enumARG;
69
70 #undef TYPE_ENUM
71 FIELDTYPE *TYPE_ENUM;
72
73 /* ./fty_alpha.c */
74
75 typedef struct {
76   int width;
77 } alphaARG;
78
79 #undef TYPE_ALPHA
80 FIELDTYPE *TYPE_ALPHA;
81
82 /* ./fty_alnum.c */
83
84 typedef struct {
85   int width;
86 } alnumARG;
87
88 #undef TYPE_ALNUM
89 FIELDTYPE *TYPE_ALNUM;
90
91 /* ./fty_ipv4.c */
92 #undef TYPE_IPV4
93 FIELDTYPE *TYPE_IPV4;
94
95 /* ./frm_data.c */
96
97 #undef data_behind
98 bool    data_behind(
99                 const FORM *form)
100                 { return(*(bool *)0); }
101
102 #undef data_ahead
103 bool    data_ahead(
104                 const FORM *form)
105                 { return(*(bool *)0); }
106
107 /* ./frm_win.c */
108
109 #undef set_form_win
110 int     set_form_win(
111                 FORM    *form, 
112                 WINDOW  *win)
113                 { return(*(int *)0); }
114
115 #undef form_win
116 WINDOW  *form_win(
117                 const FORM *form)
118                 { return(*(WINDOW **)0); }
119
120 #undef set_form_sub
121 int     set_form_sub(
122                 FORM    *form, 
123                 WINDOW  *win)
124                 { return(*(int *)0); }
125
126 #undef form_sub
127 WINDOW  *form_sub(
128                 const FORM *form)
129                 { return(*(WINDOW **)0); }
130
131 /* ./frm_user.c */
132
133 #undef set_form_userptr
134 int     set_form_userptr(
135                 FORM    *form, 
136                 const void *usrptr)
137                 { return(*(int *)0); }
138
139 #undef form_userptr
140 const void *form_userptr(
141                 const FORM *form)
142                 { return(*(const void **)0); }
143
144 /* ./frm_opts.c */
145
146 #undef set_form_opts
147 int     set_form_opts(
148                 FORM    *form, 
149                 Form_Options opts)
150                 { return(*(int *)0); }
151
152 #undef form_opts
153 Form_Options form_opts(
154                 const FORM *form)
155                 { return(*(Form_Options *)0); }
156
157 #undef form_opts_on
158 int     form_opts_on(
159                 FORM    *form, 
160                 Form_Options opts)
161                 { return(*(int *)0); }
162
163 #undef form_opts_off
164 int     form_opts_off(
165                 FORM    *form, 
166                 Form_Options opts)
167                 { return(*(int *)0); }
168
169 /* ./frm_hook.c */
170
171 #undef set_field_init
172 int     set_field_init(
173                 FORM    *form, 
174                 Form_Hook func)
175                 { return(*(int *)0); }
176
177 #undef field_init
178 Form_Hook field_init(
179                 const FORM *form)
180                 { return(*(Form_Hook *)0); }
181
182 #undef set_field_term
183 int     set_field_term(
184                 FORM    *form, 
185                 Form_Hook func)
186                 { return(*(int *)0); }
187
188 #undef field_term
189 Form_Hook field_term(
190                 const FORM *form)
191                 { return(*(Form_Hook *)0); }
192
193 #undef set_form_init
194 int     set_form_init(
195                 FORM    *form, 
196                 Form_Hook func)
197                 { return(*(int *)0); }
198
199 #undef form_init
200 Form_Hook form_init(
201                 const FORM *form)
202                 { return(*(Form_Hook *)0); }
203
204 #undef set_form_term
205 int     set_form_term(
206                 FORM    *form, 
207                 Form_Hook func)
208                 { return(*(int *)0); }
209
210 #undef form_term
211 Form_Hook form_term(
212                 const FORM *form)
213                 { return(*(Form_Hook *)0); }
214
215 /* ./frm_req_name.c */
216
217 #undef form_request_name
218 const char *form_request_name(
219                 int     request)
220                 { return(*(const char **)0); }
221
222 #undef form_request_by_name
223 int     form_request_by_name(
224                 const char *str)
225                 { return(*(int *)0); }
226
227 /* ./fld_user.c */
228
229 #undef set_field_userptr
230 int     set_field_userptr(
231                 FIELD   *field, 
232                 const void *usrptr)
233                 { return(*(int *)0); }
234
235 #undef field_userptr
236 const void *field_userptr(
237                 const FIELD *field)
238                 { return(*(const void **)0); }
239
240 /* ./fld_type.c */
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 link_fieldtype
253 FIELDTYPE *link_fieldtype(
254                 FIELDTYPE *type1, 
255                 FIELDTYPE *type2)
256                 { return(*(FIELDTYPE **)0); }
257
258 #undef free_fieldtype
259 int     free_fieldtype(
260                 FIELDTYPE *typ)
261                 { return(*(int *)0); }
262
263 #undef set_fieldtype_arg
264 int     set_fieldtype_arg(
265                 FIELDTYPE *typ, 
266                 void    *(*const make_arg)(
267                 va_list *p1), 
268                 void    *(*const copy_arg)(
269                 const void *p1), 
270                 void    (*const free_arg)(
271                 void    *p1))
272                 { return(*(int *)0); }
273
274 #undef set_fieldtype_choice
275 int     set_fieldtype_choice(
276                 FIELDTYPE *typ, 
277                 bool    (*const next_choice)(
278                 FIELD   *p1, 
279                 const void *p2), 
280                 bool    (*const prev_choice)(
281                 FIELD   *p1, 
282                 const void *p2))
283                 { return(*(int *)0); }
284
285 /* ./fld_stat.c */
286
287 #undef set_field_status
288 int     set_field_status(
289                 FIELD   *field, 
290                 bool    status)
291                 { return(*(int *)0); }
292
293 #undef field_status
294 bool    field_status(
295                 const FIELD *field)
296                 { return(*(bool *)0); }
297
298 /* ./fld_def.c */
299
300 #undef _nc_Default_Field
301 FIELD   *_nc_Default_Field;
302
303 #undef new_field
304 FIELD   *new_field(
305                 int     rows, 
306                 int     cols, 
307                 int     frow, 
308                 int     fcol, 
309                 int     nrow, 
310                 int     nbuf)
311                 { return(*(FIELD **)0); }
312
313 #undef dup_field
314 FIELD   *dup_field(
315                 FIELD   *field, 
316                 int     frow, 
317                 int     fcol)
318                 { return(*(FIELD **)0); }
319
320 #undef link_field
321 FIELD   *link_field(
322                 FIELD   *field, 
323                 int     frow, 
324                 int     fcol)
325                 { return(*(FIELD **)0); }
326
327 #undef free_field
328 int     free_field(
329                 FIELD   *field)
330                 { return(*(int *)0); }
331
332 #undef field_info
333 int     field_info(
334                 const FIELD *field, 
335                 int     *rows, 
336                 int     *cols, 
337                 int     *frow, 
338                 int     *fcol, 
339                 int     *nrow, 
340                 int     *nbuf)
341                 { return(*(int *)0); }
342
343 #undef move_field
344 int     move_field(
345                 FIELD   *field, 
346                 int     frow, 
347                 int     fcol)
348                 { return(*(int *)0); }
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 #undef field_arg
363 void    *field_arg(
364                 const FIELD *field)
365                 { return(*(void **)0); }
366
367 #undef set_max_field
368 int     set_max_field(
369                 FIELD   *field, 
370                 int     maxgrow)
371                 { return(*(int *)0); }
372
373 #undef dynamic_field_info
374 int     dynamic_field_info(
375                 const FIELD *field, 
376                 int     *drows, 
377                 int     *dcols, 
378                 int     *maxgrow)
379                 { return(*(int *)0); }
380
381 #undef set_new_page
382 int     set_new_page(
383                 FIELD   *field, 
384                 bool    new_page_flag)
385                 { return(*(int *)0); }
386
387 #undef new_page
388 bool    new_page(
389                 const FIELD *field)
390                 { return(*(bool *)0); }
391
392 /* ./frm_def.c */
393
394 #undef _nc_Default_Form
395 FORM    *_nc_Default_Form;
396
397 #undef new_form
398 FORM    *new_form(
399                 FIELD   **fields)
400                 { return(*(FORM **)0); }
401
402 #undef free_form
403 int     free_form(
404                 FORM    *form)
405                 { return(*(int *)0); }
406
407 #undef set_form_fields
408 int     set_form_fields(
409                 FORM    *form, 
410                 FIELD   **fields)
411                 { return(*(int *)0); }
412
413 #undef form_fields
414 FIELD   **form_fields(
415                 const FORM *form)
416                 { return(*(FIELD ***)0); }
417
418 #undef field_count
419 int     field_count(
420                 const FORM *form)
421                 { return(*(int *)0); }
422
423 #undef scale_form
424 int     scale_form(
425                 const FORM *form, 
426                 int     *rows, 
427                 int     *cols)
428                 { return(*(int *)0); }
429
430 /* ./frm_driver.c */
431
432 typedef struct {
433   int keycode;           
434   int (*cmd)(FORM *);    
435 } Binding_Info;
436
437 #undef form_driver
438 int     form_driver(
439                 FORM    *form, 
440                 int     c)
441                 { return(*(int *)0); }
442
443 #undef post_form
444 int     post_form(
445                 FORM    *form)
446                 { return(*(int *)0); }
447
448 #undef unpost_form
449 int     unpost_form(
450                 FORM    *form)
451                 { return(*(int *)0); }
452
453 #undef pos_form_cursor
454 int     pos_form_cursor(
455                 FORM    *form)
456                 { return(*(int *)0); }
457
458 #undef set_current_field
459 int     set_current_field(
460                 FORM    *form, 
461                 FIELD   *field)
462                 { return(*(int *)0); }
463
464 #undef current_field
465 FIELD   *current_field(
466                 const FORM *form)
467                 { return(*(FIELD **)0); }
468
469 #undef field_index
470 int     field_index(
471                 const FIELD *field)
472                 { return(*(int *)0); }
473
474 #undef set_form_page
475 int     set_form_page(
476                 FORM    *form, 
477                 int     page)
478                 { return(*(int *)0); }
479
480 #undef form_page
481 int     form_page(
482                 const FORM *form)
483                 { return(*(int *)0); }
484
485 #undef set_field_buffer
486 int     set_field_buffer(
487                 FIELD   *field, 
488                 int     buffer, 
489                 const char *value)
490                 { return(*(int *)0); }
491
492 #undef field_buffer
493 char    *field_buffer(
494                 const FIELD *field, 
495                 int     buffer)
496                 { return(*(char **)0); }
497
498 #undef set_field_opts
499 int     set_field_opts(
500                 FIELD   *field, 
501                 Field_Options opts)
502                 { return(*(int *)0); }
503
504 #undef field_opts
505 Field_Options field_opts(
506                 const FIELD *field)
507                 { return(*(Field_Options *)0); }
508
509 #undef field_opts_on
510 int     field_opts_on(
511                 FIELD   *field, 
512                 Field_Options opts)
513                 { return(*(int *)0); }
514
515 #undef field_opts_off
516 int     field_opts_off(
517                 FIELD   *field, 
518                 Field_Options opts)
519                 { return(*(int *)0); }
520
521 #undef set_field_fore
522 int     set_field_fore(
523                 FIELD   *field, 
524                 chtype  attr)
525                 { return(*(int *)0); }
526
527 #undef field_fore
528 chtype  field_fore(
529                 const FIELD *field)
530                 { return(*(chtype *)0); }
531
532 #undef set_field_back
533 int     set_field_back(
534                 FIELD   *field, 
535                 chtype  attr)
536                 { return(*(int *)0); }
537
538 #undef field_back
539 chtype  field_back(
540                 const FIELD *field)
541                 { return(*(chtype *)0); }
542
543 #undef set_field_pad
544 int     set_field_pad(
545                 FIELD   *field, 
546                 int     ch)
547                 { return(*(int *)0); }
548
549 #undef field_pad
550 int     field_pad(
551                 const FIELD *field)
552                 { return(*(int *)0); }
553
554 #undef set_field_just
555 int     set_field_just(
556                 FIELD   *field, 
557                 int     just)
558                 { return(*(int *)0); }
559
560 #undef field_just
561 int     field_just(
562                 const FIELD *field)
563                 { return(*(int *)0); }
564
565 /* ./frm_adabind.c */
566
567 #undef _nc_ada_normalize_field_opts
568 void    _nc_ada_normalize_field_opts(
569                 int     *opt)
570                 { /* void */ }
571
572 #undef _nc_ada_normalize_form_opts
573 void    _nc_ada_normalize_form_opts(
574                 int     *opt)
575                 { /* void */ }
576
577 #undef _nc_ada_getvarg
578 void    *_nc_ada_getvarg(
579                 va_list *ap)
580                 { return(*(void **)0); }