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