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