blob: 67f6822376e65c8dccb759a845678dc838d2ce67 [file] [log] [blame]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05301/****************************************************************************
micky3879b9f5e72025-07-08 18:04:53 -04002 * Copyright 2020,2021 Thomas E. Dickey *
3 * Copyright 1998-2010,2015 Free Software Foundation, Inc. *
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05304 * *
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/****************************************************************************
micky3879b9f5e72025-07-08 18:04:53 -040031 * Author: Thomas E. Dickey 1996-on *
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053032 ****************************************************************************/
33/* LINTLIBRARY */
34
35/* ./m_attribs.c */
36
Steve Kondikae271bc2015-11-15 02:50:53 +010037#include <menu.priv.h>
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053038
39#undef set_menu_fore
40int set_menu_fore(
micky3879b9f5e72025-07-08 18:04:53 -040041 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053042 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(
micky3879b9f5e72025-07-08 18:04:53 -040052 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053053 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(
micky3879b9f5e72025-07-08 18:04:53 -040063 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053064 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(
micky3879b9f5e72025-07-08 18:04:53 -040076 const MENU *menu,
77 const ITEM *item,
78 int *pY,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053079 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(
micky3879b9f5e72025-07-08 18:04:53 -040091 MENU *menu,
92 int ch,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053093 ITEM **item)
94 { return(*(int *)0); }
95
96#undef menu_driver
97int menu_driver(
micky3879b9f5e72025-07-08 18:04:53 -040098 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053099 int c)
100 { return(*(int *)0); }
101
102/* ./m_format.c */
103
104#undef set_menu_format
105int set_menu_format(
micky3879b9f5e72025-07-08 18:04:53 -0400106 MENU *menu,
107 int rows,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530108 int cols)
109 { return(*(int *)0); }
110
111#undef menu_format
112void menu_format(
micky3879b9f5e72025-07-08 18:04:53 -0400113 const MENU *menu,
114 int *rows,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530115 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(
micky3879b9f5e72025-07-08 18:04:53 -0400127 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530128 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(
micky3879b9f5e72025-07-08 18:04:53 -0400158 MENU *menu,
159 int new_toprow,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530160 ITEM *new_current_item)
161 { /* void */ }
162
163/* ./m_hook.c */
164
165#undef set_menu_init
166int set_menu_init(
micky3879b9f5e72025-07-08 18:04:53 -0400167 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530168 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(
micky3879b9f5e72025-07-08 18:04:53 -0400178 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530179 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(
micky3879b9f5e72025-07-08 18:04:53 -0400189 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530190 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(
micky3879b9f5e72025-07-08 18:04:53 -0400200 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530201 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(
micky3879b9f5e72025-07-08 18:04:53 -0400213 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530214 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(
micky3879b9f5e72025-07-08 18:04:53 -0400243 const char *name,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530244 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(
micky3879b9f5e72025-07-08 18:04:53 -0400254 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530255 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(
micky3879b9f5e72025-07-08 18:04:53 -0400267 ITEM *item,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530268 Item_Options opts)
269 { return(*(int *)0); }
270
271#undef item_opts_off
272int item_opts_off(
micky3879b9f5e72025-07-08 18:04:53 -0400273 ITEM *item,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530274 Item_Options opts)
275 { return(*(int *)0); }
276
277#undef item_opts_on
278int item_opts_on(
micky3879b9f5e72025-07-08 18:04:53 -0400279 ITEM *item,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530280 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(
micky3879b9f5e72025-07-08 18:04:53 -0400292 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530293 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(
micky3879b9f5e72025-07-08 18:04:53 -0400305 ITEM *item,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530306 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(
micky3879b9f5e72025-07-08 18:04:53 -0400318 ITEM *item,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530319 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(
micky3879b9f5e72025-07-08 18:04:53 -0400338 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530339 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
Steve Kondikae271bc2015-11-15 02:50:53 +0100354#undef new_menu_sp
355MENU *new_menu_sp(
micky3879b9f5e72025-07-08 18:04:53 -0400356 SCREEN *sp,
Steve Kondikae271bc2015-11-15 02:50:53 +0100357 ITEM **items)
358 { return(*(MENU **)0); }
359
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530360#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(
micky3879b9f5e72025-07-08 18:04:53 -0400374 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530375 Menu_Options opts)
376 { return(*(int *)0); }
377
378#undef menu_opts_off
379int menu_opts_off(
micky3879b9f5e72025-07-08 18:04:53 -0400380 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530381 Menu_Options opts)
382 { return(*(int *)0); }
383
384#undef menu_opts_on
385int menu_opts_on(
micky3879b9f5e72025-07-08 18:04:53 -0400386 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530387 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(
micky3879b9f5e72025-07-08 18:04:53 -0400399 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530400 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(
micky3879b9f5e72025-07-08 18:04:53 -0400417 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530418 const char *p)
419 { return(*(int *)0); }
420
421/* ./m_post.c */
422
423#undef _nc_Post_Item
424void _nc_Post_Item(
micky3879b9f5e72025-07-08 18:04:53 -0400425 const MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530426 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(
micky3879b9f5e72025-07-08 18:04:53 -0400460 const MENU *menu,
461 int *rows,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530462 int *cols)
463 { return(*(int *)0); }
464
465/* ./m_spacing.c */
466
467#undef set_menu_spacing
468int set_menu_spacing(
micky3879b9f5e72025-07-08 18:04:53 -0400469 MENU *menu,
470 int s_desc,
471 int s_row,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530472 int s_col)
473 { return(*(int *)0); }
474
475#undef menu_spacing
476int menu_spacing(
micky3879b9f5e72025-07-08 18:04:53 -0400477 const MENU *menu,
478 int *s_desc,
479 int *s_row,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530480 int *s_col)
481 { return(*(int *)0); }
482
483/* ./m_sub.c */
484
485#undef set_menu_sub
486int set_menu_sub(
micky3879b9f5e72025-07-08 18:04:53 -0400487 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530488 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(
micky3879b9f5e72025-07-08 18:04:53 -0400532 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530533 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(
micky3879b9f5e72025-07-08 18:04:53 -0400545 MENU *menu,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530546 WINDOW *win)
547 { return(*(int *)0); }
548
549#undef menu_win
550WINDOW *menu_win(
551 const MENU *menu)
552 { return(*(WINDOW **)0); }