xref: /freebsd/contrib/ncurses/form/llib-lformw (revision aae38d10b4eebf81c0942947e8b83a9bb8651d88)
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
39FIELD	**_nc_retrace_field_ptr(
40		FIELD	**code)
41		{ return(*(FIELD ***)0); }
42
43#undef _nc_retrace_field
44FIELD	*_nc_retrace_field(
45		FIELD	*code)
46		{ return(*(FIELD **)0); }
47
48#undef _nc_retrace_field_type
49FIELDTYPE *_nc_retrace_field_type(
50		FIELDTYPE *code)
51		{ return(*(FIELDTYPE **)0); }
52
53#undef _nc_retrace_form
54FORM	*_nc_retrace_form(
55		FORM	*code)
56		{ return(*(FORM **)0); }
57
58#undef _nc_retrace_form_hook
59Form_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
66int	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
77void	*field_arg(
78		const FIELD *field)
79		{ return(*(void **)0); }
80
81/* ./fld_attr.c */
82
83#undef set_field_fore
84int	set_field_fore(
85		FIELD	*field,
86		chtype	attr)
87		{ return(*(int *)0); }
88
89#undef field_fore
90chtype	field_fore(
91		const FIELD *field)
92		{ return(*(chtype *)0); }
93
94#undef set_field_back
95int	set_field_back(
96		FIELD	*field,
97		chtype	attr)
98		{ return(*(int *)0); }
99
100#undef field_back
101chtype	field_back(
102		const FIELD *field)
103		{ return(*(chtype *)0); }
104
105/* ./fld_current.c */
106
107#undef set_current_field
108int	set_current_field(
109		FORM	*form,
110		FIELD	*field)
111		{ return(*(int *)0); }
112
113#undef unfocus_current_field
114int	unfocus_current_field(
115		FORM	*const form)
116		{ return(*(int *)0); }
117
118#undef current_field
119FIELD	*current_field(
120		const FORM *form)
121		{ return(*(FIELD **)0); }
122
123#undef field_index
124int	field_index(
125		const FIELD *field)
126		{ return(*(int *)0); }
127
128/* ./fld_def.c */
129
130#undef _nc_Default_Field
131FIELD	*_nc_Default_Field;
132
133#undef _nc_Make_Argument
134TypeArgument *_nc_Make_Argument(
135		const FIELDTYPE *typ,
136		va_list	*ap,
137		int	*err)
138		{ return(*(TypeArgument **)0); }
139
140#undef _nc_Copy_Argument
141TypeArgument *_nc_Copy_Argument(
142		const FIELDTYPE *typ,
143		const TypeArgument *argp,
144		int	*err)
145		{ return(*(TypeArgument **)0); }
146
147#undef _nc_Free_Argument
148void	_nc_Free_Argument(
149		const FIELDTYPE *typ,
150		TypeArgument *argp)
151		{ /* void */ }
152
153#undef _nc_Copy_Type
154NCURSES_BOOL _nc_Copy_Type(
155		FIELD	*dst,
156		FIELD const *src)
157		{ return(*(NCURSES_BOOL *)0); }
158
159#undef _nc_Free_Type
160void	_nc_Free_Type(
161		FIELD	*field)
162		{ /* void */ }
163
164#undef new_field
165FIELD	*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
175int	free_field(
176		FIELD	*field)
177		{ return(*(int *)0); }
178
179/* ./fld_dup.c */
180
181#undef dup_field
182FIELD	*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
191int	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
204FIELDTYPE *link_fieldtype(
205		FIELDTYPE *type1,
206		FIELDTYPE *type2)
207		{ return(*(FIELDTYPE **)0); }
208
209/* ./fld_info.c */
210
211#undef field_info
212int	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
223int	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
233int	set_field_just(
234		FIELD	*field,
235		int	just)
236		{ return(*(int *)0); }
237
238#undef field_just
239int	field_just(
240		const FIELD *field)
241		{ return(*(int *)0); }
242
243/* ./fld_link.c */
244
245#undef link_field
246FIELD	*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
255int	set_max_field(
256		FIELD	*field,
257		int	maxgrow)
258		{ return(*(int *)0); }
259
260/* ./fld_move.c */
261
262#undef move_field
263int	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
272FIELDTYPE *_nc_Default_FieldType;
273
274#undef new_fieldtype
275FIELDTYPE *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
285int	free_fieldtype(
286		FIELDTYPE *typ)
287		{ return(*(int *)0); }
288
289/* ./fld_opts.c */
290
291#undef set_field_opts
292int	set_field_opts(
293		FIELD	*field,
294		Field_Options opts)
295		{ return(*(int *)0); }
296
297#undef field_opts
298Field_Options field_opts(
299		const FIELD *field)
300		{ return(*(Field_Options *)0); }
301
302#undef field_opts_on
303int	field_opts_on(
304		FIELD	*field,
305		Field_Options opts)
306		{ return(*(int *)0); }
307
308#undef field_opts_off
309int	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
317int	set_field_pad(
318		FIELD	*field,
319		int	ch)
320		{ return(*(int *)0); }
321
322#undef field_pad
323int	field_pad(
324		const FIELD *field)
325		{ return(*(int *)0); }
326
327/* ./fld_page.c */
328
329#undef set_new_page
330int	set_new_page(
331		FIELD	*field,
332		NCURSES_BOOL new_page_flag)
333		{ return(*(int *)0); }
334
335#undef new_page
336NCURSES_BOOL new_page(
337		const FIELD *field)
338		{ return(*(NCURSES_BOOL *)0); }
339
340/* ./fld_stat.c */
341
342#undef set_field_status
343int	set_field_status(
344		FIELD	*field,
345		NCURSES_BOOL status)
346		{ return(*(int *)0); }
347
348#undef field_status
349NCURSES_BOOL field_status(
350		const FIELD *field)
351		{ return(*(NCURSES_BOOL *)0); }
352
353/* ./fld_type.c */
354
355#undef set_field_type
356int	set_field_type(
357		FIELD	*field,
358		FIELDTYPE *type,
359		...)
360		{ return(*(int *)0); }
361
362#undef field_type
363FIELDTYPE *field_type(
364		const FIELD *field)
365		{ return(*(FIELDTYPE **)0); }
366
367/* ./fld_user.c */
368
369#undef set_field_userptr
370int	set_field_userptr(
371		FIELD	*field,
372		void	*usrptr)
373		{ return(*(int *)0); }
374
375#undef field_userptr
376void	*field_userptr(
377		const FIELD *field)
378		{ return(*(void **)0); }
379
380/* ./frm_cursor.c */
381
382#undef pos_form_cursor
383int	pos_form_cursor(
384		FORM	*form)
385		{ return(*(int *)0); }
386
387/* ./frm_data.c */
388
389#undef data_behind
390NCURSES_BOOL data_behind(
391		const FORM *form)
392		{ return(*(NCURSES_BOOL *)0); }
393
394#undef data_ahead
395NCURSES_BOOL data_ahead(
396		const FORM *form)
397		{ return(*(NCURSES_BOOL *)0); }
398
399/* ./frm_def.c */
400
401#undef _nc_Default_Form
402FORM	*_nc_Default_Form;
403
404#undef new_form_sp
405FORM	*new_form_sp(
406		SCREEN	*sp,
407		FIELD	**fields)
408		{ return(*(FORM **)0); }
409
410#undef new_form
411FORM	*new_form(
412		FIELD	**fields)
413		{ return(*(FORM **)0); }
414
415#undef free_form
416int	free_form(
417		FORM	*form)
418		{ return(*(int *)0); }
419
420#undef set_form_fields
421int	set_form_fields(
422		FORM	*form,
423		FIELD	**fields)
424		{ return(*(int *)0); }
425
426#undef form_fields
427FIELD	**form_fields(
428		const FORM *form)
429		{ return(*(FIELD ***)0); }
430
431#undef field_count
432int	field_count(
433		const FORM *form)
434		{ return(*(int *)0); }
435
436/* ./frm_driver.c */
437
438#undef _nc_get_fieldbuffer
439void	_nc_get_fieldbuffer(
440		FORM	*form,
441		FIELD	*field,
442		cchar_t	*buf)
443		{ /* void */ }
444
445#undef _nc_Position_Form_Cursor
446int	_nc_Position_Form_Cursor(
447		FORM	*form)
448		{ return(*(int *)0); }
449
450#undef _nc_Refresh_Current_Field
451int	_nc_Refresh_Current_Field(
452		FORM	*form)
453		{ return(*(int *)0); }
454
455#undef _nc_Synchronize_Attributes
456int	_nc_Synchronize_Attributes(
457		FIELD	*field)
458		{ return(*(int *)0); }
459
460#undef _nc_Synchronize_Options
461int	_nc_Synchronize_Options(
462		FIELD	*field,
463		Field_Options newopts)
464		{ return(*(int *)0); }
465
466#undef _nc_Unset_Current_Field
467void	_nc_Unset_Current_Field(
468		FORM	*form)
469		{ /* void */ }
470
471#undef _nc_Set_Current_Field
472int	_nc_Set_Current_Field(
473		FORM	*form,
474		FIELD	*newfield)
475		{ return(*(int *)0); }
476
477#undef _nc_Internal_Validation
478NCURSES_BOOL _nc_Internal_Validation(
479		FORM	*form)
480		{ return(*(NCURSES_BOOL *)0); }
481
482#undef _nc_First_Active_Field
483FIELD	*_nc_First_Active_Field(
484		FORM	*form)
485		{ return(*(FIELD **)0); }
486
487#undef _nc_Set_Form_Page
488int	_nc_Set_Form_Page(
489		FORM	*form,
490		int	page,
491		FIELD	*field)
492		{ return(*(int *)0); }
493
494typedef struct
495{
496  int keycode;
497  int (*cmd) (FORM *);
498}
499Binding_Info;
500
501#undef form_driver
502int	form_driver(
503		FORM	*form,
504		int	c)
505		{ return(*(int *)0); }
506
507#undef form_driver_w
508int	form_driver_w(
509		FORM	*form,
510		int	type,
511		wchar_t	c)
512		{ return(*(int *)0); }
513
514#undef set_field_buffer
515int	set_field_buffer(
516		FIELD	*field,
517		int	buffer,
518		const char *value)
519		{ return(*(int *)0); }
520
521#undef field_buffer
522char	*field_buffer(
523		const FIELD *field,
524		int	buffer)
525		{ return(*(char **)0); }
526
527#undef _nc_Widen_String
528wchar_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
536int	set_field_init(
537		FORM	*form,
538		Form_Hook func)
539		{ return(*(int *)0); }
540
541#undef field_init
542Form_Hook field_init(
543		const FORM *form)
544		{ return(*(Form_Hook *)0); }
545
546#undef set_field_term
547int	set_field_term(
548		FORM	*form,
549		Form_Hook func)
550		{ return(*(int *)0); }
551
552#undef field_term
553Form_Hook field_term(
554		const FORM *form)
555		{ return(*(Form_Hook *)0); }
556
557#undef set_form_init
558int	set_form_init(
559		FORM	*form,
560		Form_Hook func)
561		{ return(*(int *)0); }
562
563#undef form_init
564Form_Hook form_init(
565		const FORM *form)
566		{ return(*(Form_Hook *)0); }
567
568#undef set_form_term
569int	set_form_term(
570		FORM	*form,
571		Form_Hook func)
572		{ return(*(int *)0); }
573
574#undef form_term
575Form_Hook form_term(
576		const FORM *form)
577		{ return(*(Form_Hook *)0); }
578
579/* ./frm_opts.c */
580
581#undef set_form_opts
582int	set_form_opts(
583		FORM	*form,
584		Form_Options opts)
585		{ return(*(int *)0); }
586
587#undef form_opts
588Form_Options form_opts(
589		const FORM *form)
590		{ return(*(Form_Options *)0); }
591
592#undef form_opts_on
593int	form_opts_on(
594		FORM	*form,
595		Form_Options opts)
596		{ return(*(int *)0); }
597
598#undef form_opts_off
599int	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
607int	set_form_page(
608		FORM	*form,
609		int	page)
610		{ return(*(int *)0); }
611
612#undef form_page
613int	form_page(
614		const FORM *form)
615		{ return(*(int *)0); }
616
617/* ./frm_post.c */
618
619#undef post_form
620int	post_form(
621		FORM	*form)
622		{ return(*(int *)0); }
623
624#undef unpost_form
625int	unpost_form(
626		FORM	*form)
627		{ return(*(int *)0); }
628
629/* ./frm_req_name.c */
630
631#undef form_request_name
632const char *form_request_name(
633		int	request)
634		{ return(*(const char **)0); }
635
636#undef form_request_by_name
637int	form_request_by_name(
638		const char *str)
639		{ return(*(int *)0); }
640
641/* ./frm_scale.c */
642
643#undef scale_form
644int	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
653int	set_form_sub(
654		FORM	*form,
655		WINDOW	*win)
656		{ return(*(int *)0); }
657
658#undef form_sub
659WINDOW	*form_sub(
660		const FORM *form)
661		{ return(*(WINDOW **)0); }
662
663/* ./frm_user.c */
664
665#undef set_form_userptr
666int	set_form_userptr(
667		FORM	*form,
668		void	*usrptr)
669		{ return(*(int *)0); }
670
671#undef form_userptr
672void	*form_userptr(
673		const FORM *form)
674		{ return(*(void **)0); }
675
676/* ./frm_win.c */
677
678#undef set_form_win
679int	set_form_win(
680		FORM	*form,
681		WINDOW	*win)
682		{ return(*(int *)0); }
683
684#undef form_win
685WINDOW	*form_win(
686		const FORM *form)
687		{ return(*(WINDOW **)0); }
688
689/* ./fty_alnum.c */
690
691typedef struct
692  {
693    int width;
694  }
695alnumARG;
696
697#undef TYPE_ALNUM
698FIELDTYPE *TYPE_ALNUM;
699
700#undef _nc_TYPE_ALNUM
701FIELDTYPE *_nc_TYPE_ALNUM(void)
702		{ return(*(FIELDTYPE **)0); }
703
704/* ./fty_alpha.c */
705
706typedef struct
707  {
708    int width;
709  }
710alphaARG;
711
712#undef TYPE_ALPHA
713FIELDTYPE *TYPE_ALPHA;
714
715#undef _nc_TYPE_ALPHA
716FIELDTYPE *_nc_TYPE_ALPHA(void)
717		{ return(*(FIELDTYPE **)0); }
718
719/* ./fty_enum.c */
720
721typedef struct
722  {
723    char **kwds;
724    int count;
725    NCURSES_BOOL checkcase;
726    NCURSES_BOOL checkunique;
727  }
728enumARG;
729
730typedef struct
731  {
732    char **kwds;
733    int ccase;
734    int cunique;
735  }
736enumParams;
737
738#undef TYPE_ENUM
739FIELDTYPE *TYPE_ENUM;
740
741#undef _nc_TYPE_ENUM
742FIELDTYPE *_nc_TYPE_ENUM(void)
743		{ return(*(FIELDTYPE **)0); }
744
745/* ./fty_generic.c */
746
747#undef _nc_generic_fieldtype
748FIELDTYPE *_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
771int	_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
779WINDOW	*_nc_form_cursor(
780		const FORM *form,
781		int	*pRow,
782		int	*pCol)
783		{ return(*(WINDOW **)0); }
784
785/* ./fty_int.c */
786
787typedef struct
788  {
789    int precision;
790    long low;
791    long high;
792  }
793integerARG;
794
795typedef struct
796  {
797    int precision;
798    long low;
799    long high;
800  }
801integerPARM;
802
803#undef TYPE_INTEGER
804FIELDTYPE *TYPE_INTEGER;
805
806#undef _nc_TYPE_INTEGER
807FIELDTYPE *_nc_TYPE_INTEGER(void)
808		{ return(*(FIELDTYPE **)0); }
809
810/* ./fty_ipv4.c */
811
812#undef TYPE_IPV4
813FIELDTYPE *TYPE_IPV4;
814
815#undef _nc_TYPE_IPV4
816FIELDTYPE *_nc_TYPE_IPV4(void)
817		{ return(*(FIELDTYPE **)0); }
818
819/* ./fty_num.c */
820
821typedef struct
822  {
823    int precision;
824    double low;
825    double high;
826    struct lconv *L;
827  }
828numericARG;
829
830typedef struct
831  {
832    int precision;
833    double low;
834    double high;
835  }
836thisPARM;
837
838#undef TYPE_NUMERIC
839FIELDTYPE *TYPE_NUMERIC;
840
841#undef _nc_TYPE_NUMERIC
842FIELDTYPE *_nc_TYPE_NUMERIC(void)
843		{ return(*(FIELDTYPE **)0); }
844
845/* ./fty_regex.c */
846
847typedef struct
848  {
849    regex_t *pRegExp;
850    unsigned long *refCount;
851  }
852RegExp_Arg;
853
854#undef TYPE_REGEXP
855FIELDTYPE *TYPE_REGEXP;
856
857#undef _nc_TYPE_REGEXP
858FIELDTYPE *_nc_TYPE_REGEXP(void)
859		{ return(*(FIELDTYPE **)0); }
860