]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - menu/llib-lmenu
ncurses 5.9 - patch 20110807
[ncurses.git] / menu / llib-lmenu
index 0116f4c5968fdd48000fbd9a47bcf70594c6f5d5..13ecaf8bdd79dc63c6cf01514faf83481a31c343 100644 (file)
@@ -1,27 +1,39 @@
-/******************************************************************************
- * Copyright 1996 by Thomas E. Dickey <dickey@clark.net>                      *
- * All Rights Reserved.                                                       *
- *                                                                            *
- * Permission to use, copy, modify, and distribute this software and its      *
- * documentation for any purpose and without fee is hereby granted, provided  *
- * that the above copyright notice appear in all copies and that both that    *
- * copyright notice and this permission notice appear in supporting           *
- * documentation, and that the name of the above listed copyright holder(s)   *
- * not be used in advertising or publicity pertaining to distribution of the  *
- * software without specific, written prior permission. THE ABOVE LISTED      *
- * COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,  *
- * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO     *
- * EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY         *
- * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER       *
- * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF       *
- * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN        *
- * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.                   *
- ******************************************************************************/
+/****************************************************************************
+ * Copyright (c) 1999-2005,2010 Free Software Foundation, Inc.              *
+ *                                                                          *
+ * Permission is hereby granted, free of charge, to any person obtaining a  *
+ * copy of this software and associated documentation files (the            *
+ * "Software"), to deal in the Software without restriction, including      *
+ * without limitation the rights to use, copy, modify, merge, publish,      *
+ * distribute, distribute with modifications, sublicense, and/or sell       *
+ * copies of the Software, and to permit persons to whom the Software is    *
+ * furnished to do so, subject to the following conditions:                 *
+ *                                                                          *
+ * The above copyright notice and this permission notice shall be included  *
+ * in all copies or substantial portions of the Software.                   *
+ *                                                                          *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
+ * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
+ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
+ * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
+ *                                                                          *
+ * Except as contained in this notice, the name(s) of the above copyright   *
+ * holders shall not be used in advertising or otherwise to promote the     *
+ * sale, use or other dealings in this Software without prior written       *
+ * authorization.                                                           *
+ ****************************************************************************/
+
+/****************************************************************************
+ *  Author: Thomas E. Dickey        1996-2005,2010                          *
+ ****************************************************************************/
 /* LINTLIBRARY */
 
 /* ./m_attribs.c */
 
-#include "menu.priv.h"
+#include <menu.priv.h>
 
 #undef set_menu_fore
 int    set_menu_fore(
@@ -56,19 +68,16 @@ chtype      menu_grey(
                const MENU *menu)
                { return(*(chtype *)0); }
 
-#undef set_menu_pad
-int    set_menu_pad(
-               MENU    *menu, 
-               int     pad)
-               { return(*(int *)0); }
+/* ./m_cursor.c */
 
-#undef menu_pad
-int    menu_pad(
-               const MENU *menu)
+#undef _nc_menu_cursor_pos
+int    _nc_menu_cursor_pos(
+               const MENU *menu, 
+               const ITEM *item, 
+               int     *pY, 
+               int     *pX)
                { return(*(int *)0); }
 
-/* ./m_cursor.c */
-
 #undef pos_menu_cursor
 int    pos_menu_cursor(
                const MENU *menu)
@@ -76,15 +85,11 @@ int pos_menu_cursor(
 
 /* ./m_driver.c */
 
-#undef menu_pattern
-char   *menu_pattern(
-               const MENU *menu)
-               { return(*(char **)0); }
-
-#undef set_menu_pattern
-int    set_menu_pattern(
+#undef _nc_Match_Next_Character_In_Item_Name
+int    _nc_Match_Next_Character_In_Item_Name(
                MENU    *menu, 
-               const char *p)
+               int     ch, 
+               ITEM    **item)
                { return(*(int *)0); }
 
 #undef menu_driver
@@ -117,16 +122,21 @@ MENU      _nc_Default_Menu;
 ITEM   _nc_Default_Item;
 
 #undef _nc_Connect_Items
-bool   _nc_Connect_Items(
+NCURSES_BOOL _nc_Connect_Items(
                MENU    *menu, 
                ITEM    **items)
-               { return(*(bool *)0); }
+               { return(*(NCURSES_BOOL *)0); }
 
 #undef _nc_Disconnect_Items
 void   _nc_Disconnect_Items(
                MENU    *menu)
                { /* void */ }
 
+#undef _nc_Calculate_Text_Width
+int    _nc_Calculate_Text_Width(
+               const TEXT *item)
+               { return(*(int *)0); }
+
 #undef _nc_Calculate_Item_Length_and_Width
 void   _nc_Calculate_Item_Length_and_Width(
                MENU    *menu)
@@ -213,17 +223,6 @@ int        item_index(
                const ITEM *item)
                { return(*(int *)0); }
 
-#undef set_top_row
-int    set_top_row(
-               MENU    *menu, 
-               int     row)
-               { return(*(int *)0); }
-
-#undef top_row
-int    top_row(
-               const MENU *menu)
-               { return(*(int *)0); }
-
 /* ./m_item_nam.c */
 
 #undef item_name
@@ -285,38 +284,51 @@ Item_Options item_opts(
                const ITEM *item)
                { return(*(Item_Options *)0); }
 
+/* ./m_item_top.c */
+
+#undef set_top_row
+int    set_top_row(
+               MENU    *menu, 
+               int     row)
+               { return(*(int *)0); }
+
+#undef top_row
+int    top_row(
+               const MENU *menu)
+               { return(*(int *)0); }
+
 /* ./m_item_use.c */
 
 #undef set_item_userptr
 int    set_item_userptr(
                ITEM    *item, 
-               const void *userptr)
+               void    *userptr)
                { return(*(int *)0); }
 
 #undef item_userptr
-const void *item_userptr(
+void   *item_userptr(
                const ITEM *item)
-               { return(*(const void **)0); }
+               { return(*(void **)0); }
 
 /* ./m_item_val.c */
 
 #undef set_item_value
 int    set_item_value(
                ITEM    *item, 
-               bool    value)
+               NCURSES_BOOL value)
                { return(*(int *)0); }
 
 #undef item_value
-bool   item_value(
+NCURSES_BOOL item_value(
                const ITEM *item)
-               { return(*(bool *)0); }
+               { return(*(NCURSES_BOOL *)0); }
 
 /* ./m_item_vis.c */
 
 #undef item_visible
-bool   item_visible(
+NCURSES_BOOL item_visible(
                const ITEM *item)
-               { return(*(bool *)0); }
+               { return(*(NCURSES_BOOL *)0); }
 
 /* ./m_items.c */
 
@@ -338,6 +350,12 @@ int        item_count(
 
 /* ./m_new.c */
 
+#undef new_menu_sp
+MENU   *new_menu_sp(
+               SCREEN  *sp, 
+               ITEM    **items)
+               { return(*(MENU **)0); }
+
 #undef new_menu
 MENU   *new_menu(
                ITEM    **items)
@@ -373,6 +391,32 @@ Menu_Options menu_opts(
                const MENU *menu)
                { return(*(Menu_Options *)0); }
 
+/* ./m_pad.c */
+
+#undef set_menu_pad
+int    set_menu_pad(
+               MENU    *menu, 
+               int     pad)
+               { return(*(int *)0); }
+
+#undef menu_pad
+int    menu_pad(
+               const MENU *menu)
+               { return(*(int *)0); }
+
+/* ./m_pattern.c */
+
+#undef menu_pattern
+char   *menu_pattern(
+               const MENU *menu)
+               { return(*(char **)0); }
+
+#undef set_menu_pattern
+int    set_menu_pattern(
+               MENU    *menu, 
+               const char *p)
+               { return(*(int *)0); }
+
 /* ./m_post.c */
 
 #undef _nc_Post_Item
@@ -408,6 +452,15 @@ int        menu_request_by_name(
                const char *str)
                { return(*(int *)0); }
 
+/* ./m_scale.c */
+
+#undef scale_menu
+int    scale_menu(
+               const MENU *menu, 
+               int     *rows, 
+               int     *cols)
+               { return(*(int *)0); }
+
 /* ./m_spacing.c */
 
 #undef set_menu_spacing
@@ -426,18 +479,63 @@ int       menu_spacing(
                int     *s_col)
                { return(*(int *)0); }
 
+/* ./m_sub.c */
+
+#undef set_menu_sub
+int    set_menu_sub(
+               MENU    *menu, 
+               WINDOW  *win)
+               { return(*(int *)0); }
+
+#undef menu_sub
+WINDOW *menu_sub(
+               const MENU *menu)
+               { return(*(WINDOW **)0); }
+
+/* ./m_trace.c */
+
+#undef _nc_retrace_item
+ITEM   *_nc_retrace_item(
+               ITEM    *code)
+               { return(*(ITEM **)0); }
+
+#undef _nc_retrace_item_ptr
+ITEM   **_nc_retrace_item_ptr(
+               ITEM    **code)
+               { return(*(ITEM ***)0); }
+
+#undef _nc_retrace_item_opts
+Item_Options _nc_retrace_item_opts(
+               Item_Options code)
+               { return(*(Item_Options *)0); }
+
+#undef _nc_retrace_menu
+MENU   *_nc_retrace_menu(
+               MENU    *code)
+               { return(*(MENU **)0); }
+
+#undef _nc_retrace_menu_hook
+Menu_Hook _nc_retrace_menu_hook(
+               Menu_Hook code)
+               { return(*(Menu_Hook *)0); }
+
+#undef _nc_retrace_menu_opts
+Menu_Options _nc_retrace_menu_opts(
+               Menu_Options code)
+               { return(*(Menu_Options *)0); }
+
 /* ./m_userptr.c */
 
 #undef set_menu_userptr
 int    set_menu_userptr(
                MENU    *menu, 
-               const void *userptr)
+               void    *userptr)
                { return(*(int *)0); }
 
 #undef menu_userptr
-const void *menu_userptr(
+void   *menu_userptr(
                const MENU *menu)
-               { return(*(const void **)0); }
+               { return(*(void **)0); }
 
 /* ./m_win.c */
 
@@ -451,33 +549,3 @@ int        set_menu_win(
 WINDOW *menu_win(
                const MENU *menu)
                { return(*(WINDOW **)0); }
-
-#undef set_menu_sub
-int    set_menu_sub(
-               MENU    *menu, 
-               WINDOW  *win)
-               { return(*(int *)0); }
-
-#undef menu_sub
-WINDOW *menu_sub(
-               const MENU *menu)
-               { return(*(WINDOW **)0); }
-
-#undef scale_menu
-int    scale_menu(
-               const MENU *menu, 
-               int     *rows, 
-               int     *cols)
-               { return(*(int *)0); }
-
-/* ./m_adabind.c */
-
-#undef _nc_ada_normalize_menu_opts
-void   _nc_ada_normalize_menu_opts(
-               int     *opt)
-               { /* void */ }
-
-#undef _nc_ada_normalize_item_opts
-void   _nc_ada_normalize_item_opts(
-               int     *opt)
-               { /* void */ }