xref: /freebsd/contrib/ncurses/form/llib-lformtw (revision e0c4386e)
1/****************************************************************************
2 * Copyright 2020 Thomas E. Dickey                                          *
3 * Copyright 2010-2015,2017 Free Software Foundation, Inc.                  *
4 *                                                                          *
5 * Permission is hereby granted, free of charge, to any person obtaining a  *
6 * copy of this software and associated documentation files (the            *
7 * "Software"), to deal in the Software without restriction, including      *
8 * without limitation the rights to use, copy, modify, merge, publish,      *
9 * distribute, distribute with modifications, sublicense, and/or sell       *
10 * copies of the Software, and to permit persons to whom the Software is    *
11 * furnished to do so, subject to the following conditions:                 *
12 *                                                                          *
13 * The above copyright notice and this permission notice shall be included  *
14 * in all copies or substantial portions of the Software.                   *
15 *                                                                          *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
19 * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
20 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
21 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
22 * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
23 *                                                                          *
24 * Except as contained in this notice, the name(s) of the above copyright   *
25 * holders shall not be used in advertising or otherwise to promote the     *
26 * sale, use or other dealings in this Software without prior written       *
27 * authorization.                                                           *
28 ****************************************************************************/
29
30/****************************************************************************
31 *  Author: Thomas E. Dickey       2010-on                                  *
32 ****************************************************************************/
33/* LINTLIBRARY */
34
35/* ./f_trace.c */
36
37#include <form.priv.h>
38
39#undef _nc_retrace_field_ptr
40FIELD	**_nc_retrace_field_ptr(
41		FIELD	**code)
42		{ return(*(FIELD ***)0); }
43
44#undef _nc_retrace_field
45FIELD	*_nc_retrace_field(
46		FIELD	*code)
47		{ return(*(FIELD **)0); }
48
49#undef _nc_retrace_field_type
50FIELDTYPE *_nc_retrace_field_type(
51		FIELDTYPE *code)
52		{ return(*(FIELDTYPE **)0); }
53
54#undef _nc_retrace_form
55FORM	*_nc_retrace_form(
56		FORM	*code)
57		{ return(*(FORM **)0); }
58
59#undef _nc_retrace_form_hook
60Form_Hook _nc_retrace_form_hook(
61		Form_Hook code)
62		{ return(*(Form_Hook *)0); }
63
64/* ./fld_arg.c */
65
66#undef set_fieldtype_arg
67int	set_fieldtype_arg(
68		FIELDTYPE *typ,
69		void	*(*const make_arg)(
70		va_list	*p1),
71		void	*(*const copy_arg)(
72		const void *p1),
73		void	(*const free_arg)(
74		void	*p1))
75		{ return(*(int *)0); }
76
77#undef field_arg
78void	*field_arg(
79		const FIELD *field)
80		{ return(*(void **)0); }
81
82/* ./fld_attr.c */
83
84#undef set_field_fore
85int	set_field_fore(
86		FIELD	*field,
87		chtype	attr)
88		{ return(*(int *)0); }
89
90#undef field_fore
91chtype	field_fore(
92		const FIELD *field)
93		{ return(*(chtype *)0); }
94
95#undef set_field_back
96int	set_field_back(
97		FIELD	*field,
98		chtype	attr)
99		{ return(*(int *)0); }
100
101#undef field_back
102chtype	field_back(
103		const FIELD *field)
104		{ return(*(chtype *)0); }
105
106/* ./fld_current.c */
107
108#undef set_current_field
109int	set_current_field(
110		FORM	*form,
111		FIELD	*field)
112		{ return(*(int *)0); }
113
114#undef unfocus_current_field
115int	unfocus_current_field(
116		FORM	*const form)
117		{ return(*(int *)0); }
118
119#undef current_field
120FIELD	*current_field(
121		const FORM *form)
122		{ return(*(FIELD **)0); }
123
124#undef field_index
125int	field_index(
126		const FIELD *field)
127		{ return(*(int *)0); }
128
129/* ./fld_def.c */
130
131#undef _nc_Default_Field
132FIELD	*_nc_Default_Field;
133
134#undef _nc_Make_Argument
135TypeArgument *_nc_Make_Argument(
136		const FIELDTYPE *typ,
137		va_list	*ap,
138		int	*err)
139		{ return(*(TypeArgument **)0); }
140
141#undef _nc_Copy_Argument
142TypeArgument *_nc_Copy_Argument(
143		const FIELDTYPE *typ,
144		const TypeArgument *argp,
145		int	*err)
146		{ return(*(TypeArgument **)0); }
147
148#undef _nc_Free_Argument
149void	_nc_Free_Argument(
150		const FIELDTYPE *typ,
151		TypeArgument *argp)
152		{ /* void */ }
153
154#undef _nc_Copy_Type
155NCURSES_BOOL _nc_Copy_Type(
156		FIELD	*dst,
157		FIELD const *src)
158		{ return(*(NCURSES_BOOL *)0); }
159
160#undef _nc_Free_Type
161void	_nc_Free_Type(
162		FIELD	*field)
163		{ /* void */ }
164
165#undef new_field
166FIELD	*new_field(
167		int	rows,
168		int	cols,
169		int	frow,
170		int	fcol,
171		int	nrow,
172		int	nbuf)
173		{ return(*(FIELD **)0); }
174
175#undef free_field
176int	free_field(
177		FIELD	*field)
178		{ return(*(int *)0); }
179
180/* ./fld_dup.c */
181
182#undef dup_field
183FIELD	*dup_field(
184		FIELD	*field,
185		int	frow,
186		int	fcol)
187		{ return(*(FIELD **)0); }
188
189/* ./fld_ftchoice.c */
190
191#undef set_fieldtype_choice
192int	set_fieldtype_choice(
193		FIELDTYPE *typ,
194		NCURSES_BOOL (*const next_choice)(
195		FIELD	*p1,
196		const void *p2),
197		NCURSES_BOOL (*const prev_choice)(
198		FIELD	*p1,
199		const void *p2))
200		{ return(*(int *)0); }
201
202/* ./fld_ftlink.c */
203
204#undef link_fieldtype
205FIELDTYPE *link_fieldtype(
206		FIELDTYPE *type1,
207		FIELDTYPE *type2)
208		{ return(*(FIELDTYPE **)0); }
209
210/* ./fld_info.c */
211
212#undef field_info
213int	field_info(
214		const FIELD *field,
215		int	*rows,
216		int	*cols,
217		int	*frow,
218		int	*fcol,
219		int	*nrow,
220		int	*nbuf)
221		{ return(*(int *)0); }
222
223#undef dynamic_field_info
224int	dynamic_field_info(
225		const FIELD *field,
226		int	*drows,
227		int	*dcols,
228		int	*maxgrow)
229		{ return(*(int *)0); }
230
231/* ./fld_just.c */
232
233#undef set_field_just
234int	set_field_just(
235		FIELD	*field,
236		int	just)
237		{ return(*(int *)0); }
238
239#undef field_just
240int	field_just(
241		const FIELD *field)
242		{ return(*(int *)0); }
243
244/* ./fld_link.c */
245
246#undef link_field
247FIELD	*link_field(
248		FIELD	*field,
249		int	frow,
250		int	fcol)
251		{ return(*(FIELD **)0); }
252
253/* ./fld_max.c */
254
255#undef set_max_field
256int	set_max_field(
257		FIELD	*field,
258		int	maxgrow)
259		{ return(*(int *)0); }
260
261/* ./fld_move.c */
262
263#undef move_field
264int	move_field(
265		FIELD	*field,
266		int	frow,
267		int	fcol)
268		{ return(*(int *)0); }
269
270/* ./fld_newftyp.c */
271
272#undef _nc_Default_FieldType
273FIELDTYPE *_nc_Default_FieldType;
274
275#undef new_fieldtype
276FIELDTYPE *new_fieldtype(
277		NCURSES_BOOL (*const field_check)(
278		FIELD	*p1,
279		const void *p2),
280		NCURSES_BOOL (*const char_check)(
281		int	p1,
282		const void *p2))
283		{ return(*(FIELDTYPE **)0); }
284
285#undef free_fieldtype
286int	free_fieldtype(
287		FIELDTYPE *typ)
288		{ return(*(int *)0); }
289
290/* ./fld_opts.c */
291
292#undef set_field_opts
293int	set_field_opts(
294		FIELD	*field,
295		Field_Options opts)
296		{ return(*(int *)0); }
297
298#undef field_opts
299Field_Options field_opts(
300		const FIELD *field)
301		{ return(*(Field_Options *)0); }
302
303#undef field_opts_on
304int	field_opts_on(
305		FIELD	*field,
306		Field_Options opts)
307		{ return(*(int *)0); }
308
309#undef field_opts_off
310int	field_opts_off(
311		FIELD	*field,
312		Field_Options opts)
313		{ return(*(int *)0); }
314
315/* ./fld_pad.c */
316
317#undef set_field_pad
318int	set_field_pad(
319		FIELD	*field,
320		int	ch)
321		{ return(*(int *)0); }
322
323#undef field_pad
324int	field_pad(
325		const FIELD *field)
326		{ return(*(int *)0); }
327
328/* ./fld_page.c */
329
330#undef set_new_page
331int	set_new_page(
332		FIELD	*field,
333		NCURSES_BOOL new_page_flag)
334		{ return(*(int *)0); }
335
336#undef new_page
337NCURSES_BOOL new_page(
338		const FIELD *field)
339		{ return(*(NCURSES_BOOL *)0); }
340
341/* ./fld_stat.c */
342
343#undef set_field_status
344int	set_field_status(
345		FIELD	*field,
346		NCURSES_BOOL status)
347		{ return(*(int *)0); }
348
349#undef field_status
350NCURSES_BOOL field_status(
351		const FIELD *field)
352		{ return(*(NCURSES_BOOL *)0); }
353
354/* ./fld_type.c */
355
356#undef set_field_type
357int	set_field_type(
358		FIELD	*field,
359		FIELDTYPE *type,
360		...)
361		{ return(*(int *)0); }
362
363#undef field_type
364FIELDTYPE *field_type(
365		const FIELD *field)
366		{ return(*(FIELDTYPE **)0); }
367
368/* ./fld_user.c */
369
370#undef set_field_userptr
371int	set_field_userptr(
372		FIELD	*field,
373		void	*usrptr)
374		{ return(*(int *)0); }
375
376#undef field_userptr
377void	*field_userptr(
378		const FIELD *field)
379		{ return(*(void **)0); }
380
381/* ./frm_cursor.c */
382
383#undef pos_form_cursor
384int	pos_form_cursor(
385		FORM	*form)
386		{ return(*(int *)0); }
387
388/* ./frm_data.c */
389
390#undef data_behind
391NCURSES_BOOL data_behind(
392		const FORM *form)
393		{ return(*(NCURSES_BOOL *)0); }
394
395#undef data_ahead
396NCURSES_BOOL data_ahead(
397		const FORM *form)
398		{ return(*(NCURSES_BOOL *)0); }
399
400/* ./frm_def.c */
401
402#undef _nc_Default_Form
403FORM	*_nc_Default_Form;
404
405#undef new_form_sp
406FORM	*new_form_sp(
407		SCREEN	*sp,
408		FIELD	**fields)
409		{ return(*(FORM **)0); }
410
411#undef new_form
412FORM	*new_form(
413		FIELD	**fields)
414		{ return(*(FORM **)0); }
415
416#undef free_form
417int	free_form(
418		FORM	*form)
419		{ return(*(int *)0); }
420
421#undef set_form_fields
422int	set_form_fields(
423		FORM	*form,
424		FIELD	**fields)
425		{ return(*(int *)0); }
426
427#undef form_fields
428FIELD	**form_fields(
429		const FORM *form)
430		{ return(*(FIELD ***)0); }
431
432#undef field_count
433int	field_count(
434		const FORM *form)
435		{ return(*(int *)0); }
436
437/* ./frm_driver.c */
438
439#undef _nc_get_fieldbuffer
440void	_nc_get_fieldbuffer(
441		FORM	*form,
442		FIELD	*field,
443		cchar_t	*buf)
444		{ /* void */ }
445
446#undef _nc_Position_Form_Cursor
447int	_nc_Position_Form_Cursor(
448		FORM	*form)
449		{ return(*(int *)0); }
450
451#undef _nc_Refresh_Current_Field
452int	_nc_Refresh_Current_Field(
453		FORM	*form)
454		{ return(*(int *)0); }
455
456#undef _nc_Synchronize_Attributes
457int	_nc_Synchronize_Attributes(
458		FIELD	*field)
459		{ return(*(int *)0); }
460
461#undef _nc_Synchronize_Options
462int	_nc_Synchronize_Options(
463		FIELD	*field,
464		Field_Options newopts)
465		{ return(*(int *)0); }
466
467#undef _nc_Unset_Current_Field
468void	_nc_Unset_Current_Field(
469		FORM	*form)
470		{ /* void */ }
471
472#undef _nc_Set_Current_Field
473int	_nc_Set_Current_Field(
474		FORM	*form,
475		FIELD	*newfield)
476		{ return(*(int *)0); }
477
478#undef _nc_Internal_Validation
479NCURSES_BOOL _nc_Internal_Validation(
480		FORM	*form)
481		{ return(*(NCURSES_BOOL *)0); }
482
483#undef _nc_First_Active_Field
484FIELD	*_nc_First_Active_Field(
485		FORM	*form)
486		{ return(*(FIELD **)0); }
487
488#undef _nc_Set_Form_Page
489int	_nc_Set_Form_Page(
490		FORM	*form,
491		int	page,
492		FIELD	*field)
493		{ return(*(int *)0); }
494
495typedef struct
496{
497  int keycode;
498  int (*cmd) (FORM *);
499}
500Binding_Info;
501
502#undef form_driver
503int	form_driver(
504		FORM	*form,
505		int	c)
506		{ return(*(int *)0); }
507
508#undef form_driver_w
509int	form_driver_w(
510		FORM	*form,
511		int	type,
512		wchar_t	c)
513		{ return(*(int *)0); }
514
515#undef set_field_buffer
516int	set_field_buffer(
517		FIELD	*field,
518		int	buffer,
519		const char *value)
520		{ return(*(int *)0); }
521
522#undef field_buffer
523char	*field_buffer(
524		const FIELD *field,
525		int	buffer)
526		{ return(*(char **)0); }
527
528#undef _nc_Widen_String
529wchar_t	*_nc_Widen_String(
530		char	*source,
531		int	*lengthp)
532		{ return(*(wchar_t **)0); }
533
534/* ./frm_hook.c */
535
536#undef set_field_init
537int	set_field_init(
538		FORM	*form,
539		Form_Hook func)
540		{ return(*(int *)0); }
541
542#undef field_init
543Form_Hook field_init(
544		const FORM *form)
545		{ return(*(Form_Hook *)0); }
546
547#undef set_field_term
548int	set_field_term(
549		FORM	*form,
550		Form_Hook func)
551		{ return(*(int *)0); }
552
553#undef field_term
554Form_Hook field_term(
555		const FORM *form)
556		{ return(*(Form_Hook *)0); }
557
558#undef set_form_init
559int	set_form_init(
560		FORM	*form,
561		Form_Hook func)
562		{ return(*(int *)0); }
563
564#undef form_init
565Form_Hook form_init(
566		const FORM *form)
567		{ return(*(Form_Hook *)0); }
568
569#undef set_form_term
570int	set_form_term(
571		FORM	*form,
572		Form_Hook func)
573		{ return(*(int *)0); }
574
575#undef form_term
576Form_Hook form_term(
577		const FORM *form)
578		{ return(*(Form_Hook *)0); }
579
580/* ./frm_opts.c */
581
582#undef set_form_opts
583int	set_form_opts(
584		FORM	*form,
585		Form_Options opts)
586		{ return(*(int *)0); }
587
588#undef form_opts
589Form_Options form_opts(
590		const FORM *form)
591		{ return(*(Form_Options *)0); }
592
593#undef form_opts_on
594int	form_opts_on(
595		FORM	*form,
596		Form_Options opts)
597		{ return(*(int *)0); }
598
599#undef form_opts_off
600int	form_opts_off(
601		FORM	*form,
602		Form_Options opts)
603		{ return(*(int *)0); }
604
605/* ./frm_page.c */
606
607#undef set_form_page
608int	set_form_page(
609		FORM	*form,
610		int	page)
611		{ return(*(int *)0); }
612
613#undef form_page
614int	form_page(
615		const FORM *form)
616		{ return(*(int *)0); }
617
618/* ./frm_post.c */
619
620#undef post_form
621int	post_form(
622		FORM	*form)
623		{ return(*(int *)0); }
624
625#undef unpost_form
626int	unpost_form(
627		FORM	*form)
628		{ return(*(int *)0); }
629
630/* ./frm_req_name.c */
631
632#undef form_request_name
633const char *form_request_name(
634		int	request)
635		{ return(*(const char **)0); }
636
637#undef form_request_by_name
638int	form_request_by_name(
639		const char *str)
640		{ return(*(int *)0); }
641
642/* ./frm_scale.c */
643
644#undef scale_form
645int	scale_form(
646		const FORM *form,
647		int	*rows,
648		int	*cols)
649		{ return(*(int *)0); }
650
651/* ./frm_sub.c */
652
653#undef set_form_sub
654int	set_form_sub(
655		FORM	*form,
656		WINDOW	*win)
657		{ return(*(int *)0); }
658
659#undef form_sub
660WINDOW	*form_sub(
661		const FORM *form)
662		{ return(*(WINDOW **)0); }
663
664/* ./frm_user.c */
665
666#undef set_form_userptr
667int	set_form_userptr(
668		FORM	*form,
669		void	*usrptr)
670		{ return(*(int *)0); }
671
672#undef form_userptr
673void	*form_userptr(
674		const FORM *form)
675		{ return(*(void **)0); }
676
677/* ./frm_win.c */
678
679#undef set_form_win
680int	set_form_win(
681		FORM	*form,
682		WINDOW	*win)
683		{ return(*(int *)0); }
684
685#undef form_win
686WINDOW	*form_win(
687		const FORM *form)
688		{ return(*(WINDOW **)0); }
689
690/* ./fty_alnum.c */
691
692typedef struct
693  {
694    int width;
695  }
696alnumARG;
697
698#undef TYPE_ALNUM
699FIELDTYPE *TYPE_ALNUM;
700
701#undef _nc_TYPE_ALNUM
702FIELDTYPE *_nc_TYPE_ALNUM(void)
703		{ return(*(FIELDTYPE **)0); }
704
705/* ./fty_alpha.c */
706
707typedef struct
708  {
709    int width;
710  }
711alphaARG;
712
713#undef TYPE_ALPHA
714FIELDTYPE *TYPE_ALPHA;
715
716#undef _nc_TYPE_ALPHA
717FIELDTYPE *_nc_TYPE_ALPHA(void)
718		{ return(*(FIELDTYPE **)0); }
719
720/* ./fty_enum.c */
721
722typedef struct
723  {
724    char **kwds;
725    int count;
726    NCURSES_BOOL checkcase;
727    NCURSES_BOOL checkunique;
728  }
729enumARG;
730
731typedef struct
732  {
733    char **kwds;
734    int ccase;
735    int cunique;
736  }
737enumParams;
738
739#undef TYPE_ENUM
740FIELDTYPE *TYPE_ENUM;
741
742#undef _nc_TYPE_ENUM
743FIELDTYPE *_nc_TYPE_ENUM(void)
744		{ return(*(FIELDTYPE **)0); }
745
746/* ./fty_generic.c */
747
748#undef _nc_generic_fieldtype
749FIELDTYPE *_nc_generic_fieldtype(
750		NCURSES_BOOL (*const field_check)(
751		FORM	*p1,
752		FIELD	*p2,
753		const void *p3),
754		NCURSES_BOOL (*const char_check)(
755		int	p1,
756		FORM	*p2,
757		FIELD	*p3,
758		const void *p4),
759		NCURSES_BOOL (*const next)(
760		FORM	*p1,
761		FIELD	*p2,
762		const void *p3),
763		NCURSES_BOOL (*const prev)(
764		FORM	*p1,
765		FIELD	*p2,
766		const void *p3),
767		void	(*freecallback)(
768		void	*p1))
769		{ return(*(FIELDTYPE **)0); }
770
771#undef _nc_set_generic_fieldtype
772int	_nc_set_generic_fieldtype(
773		FIELD	*field,
774		FIELDTYPE *ftyp,
775		int	(*argiterator)(
776		void	**p1))
777		{ return(*(int *)0); }
778
779#undef _nc_form_cursor
780WINDOW	*_nc_form_cursor(
781		const FORM *form,
782		int	*pRow,
783		int	*pCol)
784		{ return(*(WINDOW **)0); }
785
786/* ./fty_int.c */
787
788typedef struct
789  {
790    int precision;
791    long low;
792    long high;
793  }
794integerARG;
795
796typedef struct
797  {
798    int precision;
799    long low;
800    long high;
801  }
802integerPARM;
803
804#undef TYPE_INTEGER
805FIELDTYPE *TYPE_INTEGER;
806
807#undef _nc_TYPE_INTEGER
808FIELDTYPE *_nc_TYPE_INTEGER(void)
809		{ return(*(FIELDTYPE **)0); }
810
811/* ./fty_ipv4.c */
812
813#undef TYPE_IPV4
814FIELDTYPE *TYPE_IPV4;
815
816#undef _nc_TYPE_IPV4
817FIELDTYPE *_nc_TYPE_IPV4(void)
818		{ return(*(FIELDTYPE **)0); }
819
820/* ./fty_num.c */
821
822typedef struct
823  {
824    int precision;
825    double low;
826    double high;
827    struct lconv *L;
828  }
829numericARG;
830
831typedef struct
832  {
833    int precision;
834    double low;
835    double high;
836  }
837thisPARM;
838
839#undef TYPE_NUMERIC
840FIELDTYPE *TYPE_NUMERIC;
841
842#undef _nc_TYPE_NUMERIC
843FIELDTYPE *_nc_TYPE_NUMERIC(void)
844		{ return(*(FIELDTYPE **)0); }
845
846/* ./fty_regex.c */
847
848typedef struct
849  {
850    regex_t *pRegExp;
851    unsigned long *refCount;
852  }
853RegExp_Arg;
854
855#undef TYPE_REGEXP
856FIELDTYPE *TYPE_REGEXP;
857
858#undef _nc_TYPE_REGEXP
859FIELDTYPE *_nc_TYPE_REGEXP(void)
860		{ return(*(FIELDTYPE **)0); }
861