X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=menu%2Fm_new.c;h=c1133896b6645d271e787d9a51102f1e7877b673;hp=ca106c2d1286ed18c29405ca8b64223d3609e137;hb=e5d1530ca229aef94a3c84ad33f8ae89f35c4045;hpb=3996fe0bf797f113d6abc4329cc869951735a4d8 diff --git a/menu/m_new.c b/menu/m_new.c index ca106c2d..c1133896 100644 --- a/menu/m_new.c +++ b/menu/m_new.c @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 1998-2006,2009 Free Software Foundation, Inc. * + * Copyright 2020 Thomas E. Dickey * + * Copyright 1998-2009,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 * @@ -37,7 +38,7 @@ #include "menu.priv.h" -MODULE_ID("$Id: m_new.c,v 1.20 2009/12/12 18:31:28 tom Exp $") +MODULE_ID("$Id: m_new.c,v 1.23 2020/05/24 01:40:20 anonymous.maarten Exp $") /*--------------------------------------------------------------------------- | Facility : libnmenu @@ -50,13 +51,13 @@ MODULE_ID("$Id: m_new.c,v 1.20 2009/12/12 18:31:28 tom Exp $") | | Return Values : NULL on error +--------------------------------------------------------------------------*/ -NCURSES_EXPORT(MENU *) +MENU_EXPORT(MENU *) NCURSES_SP_NAME(new_menu) (NCURSES_SP_DCLx ITEM ** items) { int err = E_SYSTEM_ERROR; MENU *menu = typeCalloc(MENU, 1); - T((T_CALLED("new_menu(%p,%p)"), SP_PARM, items)); + T((T_CALLED("new_menu(%p,%p)"), (void *)SP_PARM, (void *)items)); if (menu) { *menu = _nc_Default_Menu; @@ -101,7 +102,7 @@ NCURSES_SP_NAME(new_menu) (NCURSES_SP_DCLx ITEM ** items) | Return Values : NULL on error +--------------------------------------------------------------------------*/ #if NCURSES_SP_FUNCS -NCURSES_EXPORT(MENU *) +MENU_EXPORT(MENU *) new_menu(ITEM ** items) { return NCURSES_SP_NAME(new_menu) (CURRENT_SCREEN, items); @@ -119,10 +120,10 @@ new_menu(ITEM ** items) | E_BAD_ARGUMENT - Invalid menu pointer passed | E_POSTED - Menu is already posted +--------------------------------------------------------------------------*/ -NCURSES_EXPORT(int) +MENU_EXPORT(int) free_menu(MENU * menu) { - T((T_CALLED("free_menu(%p)"), menu)); + T((T_CALLED("free_menu(%p)"), (void *)menu)); if (!menu) RETURN(E_BAD_ARGUMENT);