xref: /freebsd/contrib/ncurses/menu/llib-lmenut (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1/****************************************************************************
2 * Copyright 2020 Thomas E. Dickey                                          *
3 * Copyright 2010,2015 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/* ./m_attribs.c */
36
37#include <menu.priv.h>
38
39#undef set_menu_fore
40int	set_menu_fore(
41		MENU	*menu,
42		chtype	attr)
43		{ return(*(int *)0); }
44
45#undef menu_fore
46chtype	menu_fore(
47		const MENU *menu)
48		{ return(*(chtype *)0); }
49
50#undef set_menu_back
51int	set_menu_back(
52		MENU	*menu,
53		chtype	attr)
54		{ return(*(int *)0); }
55
56#undef menu_back
57chtype	menu_back(
58		const MENU *menu)
59		{ return(*(chtype *)0); }
60
61#undef set_menu_grey
62int	set_menu_grey(
63		MENU	*menu,
64		chtype	attr)
65		{ return(*(int *)0); }
66
67#undef menu_grey
68chtype	menu_grey(
69		const MENU *menu)
70		{ return(*(chtype *)0); }
71
72/* ./m_cursor.c */
73
74#undef _nc_menu_cursor_pos
75int	_nc_menu_cursor_pos(
76		const MENU *menu,
77		const ITEM *item,
78		int	*pY,
79		int	*pX)
80		{ return(*(int *)0); }
81
82#undef pos_menu_cursor
83int	pos_menu_cursor(
84		const MENU *menu)
85		{ return(*(int *)0); }
86
87/* ./m_driver.c */
88
89#undef _nc_Match_Next_Character_In_Item_Name
90int	_nc_Match_Next_Character_In_Item_Name(
91		MENU	*menu,
92		int	ch,
93		ITEM	**item)
94		{ return(*(int *)0); }
95
96#undef menu_driver
97int	menu_driver(
98		MENU	*menu,
99		int	c)
100		{ return(*(int *)0); }
101
102/* ./m_format.c */
103
104#undef set_menu_format
105int	set_menu_format(
106		MENU	*menu,
107		int	rows,
108		int	cols)
109		{ return(*(int *)0); }
110
111#undef menu_format
112void	menu_format(
113		const MENU *menu,
114		int	*rows,
115		int	*cols)
116		{ /* void */ }
117
118/* ./m_global.c */
119
120#undef _nc_Default_Menu
121MENU	_nc_Default_Menu;
122#undef _nc_Default_Item
123ITEM	_nc_Default_Item;
124
125#undef _nc_Connect_Items
126NCURSES_BOOL _nc_Connect_Items(
127		MENU	*menu,
128		ITEM	**items)
129		{ return(*(NCURSES_BOOL *)0); }
130
131#undef _nc_Disconnect_Items
132void	_nc_Disconnect_Items(
133		MENU	*menu)
134		{ /* void */ }
135
136#undef _nc_Calculate_Text_Width
137int	_nc_Calculate_Text_Width(
138		const TEXT *item)
139		{ return(*(int *)0); }
140
141#undef _nc_Calculate_Item_Length_and_Width
142void	_nc_Calculate_Item_Length_and_Width(
143		MENU	*menu)
144		{ /* void */ }
145
146#undef _nc_Link_Items
147void	_nc_Link_Items(
148		MENU	*menu)
149		{ /* void */ }
150
151#undef _nc_Show_Menu
152void	_nc_Show_Menu(
153		const MENU *menu)
154		{ /* void */ }
155
156#undef _nc_New_TopRow_and_CurrentItem
157void	_nc_New_TopRow_and_CurrentItem(
158		MENU	*menu,
159		int	new_toprow,
160		ITEM	*new_current_item)
161		{ /* void */ }
162
163/* ./m_hook.c */
164
165#undef set_menu_init
166int	set_menu_init(
167		MENU	*menu,
168		Menu_Hook func)
169		{ return(*(int *)0); }
170
171#undef menu_init
172Menu_Hook menu_init(
173		const MENU *menu)
174		{ return(*(Menu_Hook *)0); }
175
176#undef set_menu_term
177int	set_menu_term(
178		MENU	*menu,
179		Menu_Hook func)
180		{ return(*(int *)0); }
181
182#undef menu_term
183Menu_Hook menu_term(
184		const MENU *menu)
185		{ return(*(Menu_Hook *)0); }
186
187#undef set_item_init
188int	set_item_init(
189		MENU	*menu,
190		Menu_Hook func)
191		{ return(*(int *)0); }
192
193#undef item_init
194Menu_Hook item_init(
195		const MENU *menu)
196		{ return(*(Menu_Hook *)0); }
197
198#undef set_item_term
199int	set_item_term(
200		MENU	*menu,
201		Menu_Hook func)
202		{ return(*(int *)0); }
203
204#undef item_term
205Menu_Hook item_term(
206		const MENU *menu)
207		{ return(*(Menu_Hook *)0); }
208
209/* ./m_item_cur.c */
210
211#undef set_current_item
212int	set_current_item(
213		MENU	*menu,
214		ITEM	*item)
215		{ return(*(int *)0); }
216
217#undef current_item
218ITEM	*current_item(
219		const MENU *menu)
220		{ return(*(ITEM **)0); }
221
222#undef item_index
223int	item_index(
224		const ITEM *item)
225		{ return(*(int *)0); }
226
227/* ./m_item_nam.c */
228
229#undef item_name
230const char *item_name(
231		const ITEM *item)
232		{ return(*(const char **)0); }
233
234#undef item_description
235const char *item_description(
236		const ITEM *item)
237		{ return(*(const char **)0); }
238
239/* ./m_item_new.c */
240
241#undef new_item
242ITEM	*new_item(
243		const char *name,
244		const char *description)
245		{ return(*(ITEM **)0); }
246
247#undef free_item
248int	free_item(
249		ITEM	*item)
250		{ return(*(int *)0); }
251
252#undef set_menu_mark
253int	set_menu_mark(
254		MENU	*menu,
255		const char *mark)
256		{ return(*(int *)0); }
257
258#undef menu_mark
259const char *menu_mark(
260		const MENU *menu)
261		{ return(*(const char **)0); }
262
263/* ./m_item_opt.c */
264
265#undef set_item_opts
266int	set_item_opts(
267		ITEM	*item,
268		Item_Options opts)
269		{ return(*(int *)0); }
270
271#undef item_opts_off
272int	item_opts_off(
273		ITEM	*item,
274		Item_Options opts)
275		{ return(*(int *)0); }
276
277#undef item_opts_on
278int	item_opts_on(
279		ITEM	*item,
280		Item_Options opts)
281		{ return(*(int *)0); }
282
283#undef item_opts
284Item_Options item_opts(
285		const ITEM *item)
286		{ return(*(Item_Options *)0); }
287
288/* ./m_item_top.c */
289
290#undef set_top_row
291int	set_top_row(
292		MENU	*menu,
293		int	row)
294		{ return(*(int *)0); }
295
296#undef top_row
297int	top_row(
298		const MENU *menu)
299		{ return(*(int *)0); }
300
301/* ./m_item_use.c */
302
303#undef set_item_userptr
304int	set_item_userptr(
305		ITEM	*item,
306		void	*userptr)
307		{ return(*(int *)0); }
308
309#undef item_userptr
310void	*item_userptr(
311		const ITEM *item)
312		{ return(*(void **)0); }
313
314/* ./m_item_val.c */
315
316#undef set_item_value
317int	set_item_value(
318		ITEM	*item,
319		NCURSES_BOOL value)
320		{ return(*(int *)0); }
321
322#undef item_value
323NCURSES_BOOL item_value(
324		const ITEM *item)
325		{ return(*(NCURSES_BOOL *)0); }
326
327/* ./m_item_vis.c */
328
329#undef item_visible
330NCURSES_BOOL item_visible(
331		const ITEM *item)
332		{ return(*(NCURSES_BOOL *)0); }
333
334/* ./m_items.c */
335
336#undef set_menu_items
337int	set_menu_items(
338		MENU	*menu,
339		ITEM	**items)
340		{ return(*(int *)0); }
341
342#undef menu_items
343ITEM	**menu_items(
344		const MENU *menu)
345		{ return(*(ITEM ***)0); }
346
347#undef item_count
348int	item_count(
349		const MENU *menu)
350		{ return(*(int *)0); }
351
352/* ./m_new.c */
353
354#undef new_menu_sp
355MENU	*new_menu_sp(
356		SCREEN	*sp,
357		ITEM	**items)
358		{ return(*(MENU **)0); }
359
360#undef new_menu
361MENU	*new_menu(
362		ITEM	**items)
363		{ return(*(MENU **)0); }
364
365#undef free_menu
366int	free_menu(
367		MENU	*menu)
368		{ return(*(int *)0); }
369
370/* ./m_opts.c */
371
372#undef set_menu_opts
373int	set_menu_opts(
374		MENU	*menu,
375		Menu_Options opts)
376		{ return(*(int *)0); }
377
378#undef menu_opts_off
379int	menu_opts_off(
380		MENU	*menu,
381		Menu_Options opts)
382		{ return(*(int *)0); }
383
384#undef menu_opts_on
385int	menu_opts_on(
386		MENU	*menu,
387		Menu_Options opts)
388		{ return(*(int *)0); }
389
390#undef menu_opts
391Menu_Options menu_opts(
392		const MENU *menu)
393		{ return(*(Menu_Options *)0); }
394
395/* ./m_pad.c */
396
397#undef set_menu_pad
398int	set_menu_pad(
399		MENU	*menu,
400		int	pad)
401		{ return(*(int *)0); }
402
403#undef menu_pad
404int	menu_pad(
405		const MENU *menu)
406		{ return(*(int *)0); }
407
408/* ./m_pattern.c */
409
410#undef menu_pattern
411char	*menu_pattern(
412		const MENU *menu)
413		{ return(*(char **)0); }
414
415#undef set_menu_pattern
416int	set_menu_pattern(
417		MENU	*menu,
418		const char *p)
419		{ return(*(int *)0); }
420
421/* ./m_post.c */
422
423#undef _nc_Post_Item
424void	_nc_Post_Item(
425		const MENU *menu,
426		const ITEM *item)
427		{ /* void */ }
428
429#undef _nc_Draw_Menu
430void	_nc_Draw_Menu(
431		const MENU *menu)
432		{ /* void */ }
433
434#undef post_menu
435int	post_menu(
436		MENU	*menu)
437		{ return(*(int *)0); }
438
439#undef unpost_menu
440int	unpost_menu(
441		MENU	*menu)
442		{ return(*(int *)0); }
443
444/* ./m_req_name.c */
445
446#undef menu_request_name
447const char *menu_request_name(
448		int	request)
449		{ return(*(const char **)0); }
450
451#undef menu_request_by_name
452int	menu_request_by_name(
453		const char *str)
454		{ return(*(int *)0); }
455
456/* ./m_scale.c */
457
458#undef scale_menu
459int	scale_menu(
460		const MENU *menu,
461		int	*rows,
462		int	*cols)
463		{ return(*(int *)0); }
464
465/* ./m_spacing.c */
466
467#undef set_menu_spacing
468int	set_menu_spacing(
469		MENU	*menu,
470		int	s_desc,
471		int	s_row,
472		int	s_col)
473		{ return(*(int *)0); }
474
475#undef menu_spacing
476int	menu_spacing(
477		const MENU *menu,
478		int	*s_desc,
479		int	*s_row,
480		int	*s_col)
481		{ return(*(int *)0); }
482
483/* ./m_sub.c */
484
485#undef set_menu_sub
486int	set_menu_sub(
487		MENU	*menu,
488		WINDOW	*win)
489		{ return(*(int *)0); }
490
491#undef menu_sub
492WINDOW	*menu_sub(
493		const MENU *menu)
494		{ return(*(WINDOW **)0); }
495
496/* ./m_trace.c */
497
498#undef _nc_retrace_item
499ITEM	*_nc_retrace_item(
500		ITEM	*code)
501		{ return(*(ITEM **)0); }
502
503#undef _nc_retrace_item_ptr
504ITEM	**_nc_retrace_item_ptr(
505		ITEM	**code)
506		{ return(*(ITEM ***)0); }
507
508#undef _nc_retrace_item_opts
509Item_Options _nc_retrace_item_opts(
510		Item_Options code)
511		{ return(*(Item_Options *)0); }
512
513#undef _nc_retrace_menu
514MENU	*_nc_retrace_menu(
515		MENU	*code)
516		{ return(*(MENU **)0); }
517
518#undef _nc_retrace_menu_hook
519Menu_Hook _nc_retrace_menu_hook(
520		Menu_Hook code)
521		{ return(*(Menu_Hook *)0); }
522
523#undef _nc_retrace_menu_opts
524Menu_Options _nc_retrace_menu_opts(
525		Menu_Options code)
526		{ return(*(Menu_Options *)0); }
527
528/* ./m_userptr.c */
529
530#undef set_menu_userptr
531int	set_menu_userptr(
532		MENU	*menu,
533		void	*userptr)
534		{ return(*(int *)0); }
535
536#undef menu_userptr
537void	*menu_userptr(
538		const MENU *menu)
539		{ return(*(void **)0); }
540
541/* ./m_win.c */
542
543#undef set_menu_win
544int	set_menu_win(
545		MENU	*menu,
546		WINDOW	*win)
547		{ return(*(int *)0); }
548
549#undef menu_win
550WINDOW	*menu_win(
551		const MENU *menu)
552		{ return(*(WINDOW **)0); }
553