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