X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=menu%2Fm_item_new.c;h=403a470c9d744988c277135937d737d8da32a6de;hp=7f5daa9d89dc675be3a9b558bfb705b86fe4da7b;hb=5079dc1dbbaa5128ac761358dcf81c8b606983c4;hpb=ba39fbc2e0cee4681395df4079d9e61c27262132 diff --git a/menu/m_item_new.c b/menu/m_item_new.c index 7f5daa9d..403a470c 100644 --- a/menu/m_item_new.c +++ b/menu/m_item_new.c @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 1998-2010,2012 Free Software Foundation, Inc. * + * Copyright 2020 Thomas E. Dickey * + * Copyright 1998-2010,2012 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 * @@ -44,7 +45,7 @@ #endif #endif -MODULE_ID("$Id: m_item_new.c,v 1.32 2012/03/10 23:41:36 tom Exp $") +MODULE_ID("$Id: m_item_new.c,v 1.35 2020/05/24 01:40:20 anonymous.maarten Exp $") /*--------------------------------------------------------------------------- | Facility : libnmenu @@ -106,7 +107,7 @@ Is_Printable_String(const char *s) | | Return Values : The item pointer or NULL if creation failed. +--------------------------------------------------------------------------*/ -NCURSES_EXPORT(ITEM *) +MENU_EXPORT(ITEM *) new_item(const char *name, const char *description) { ITEM *item; @@ -159,7 +160,7 @@ new_item(const char *name, const char *description) | E_BAD_ARGUMENT - invalid value has been passed | E_CONNECTED - item is still connected to a menu +--------------------------------------------------------------------------*/ -NCURSES_EXPORT(int) +MENU_EXPORT(int) free_item(ITEM * item) { T((T_CALLED("free_item(%p)"), (void *)item)); @@ -192,7 +193,7 @@ free_item(ITEM * item) | E_BAD_ARGUMENT - an invalid value has been passed | E_SYSTEM_ERROR - no memory to store mark +--------------------------------------------------------------------------*/ -NCURSES_EXPORT(int) +MENU_EXPORT(int) set_menu_mark(MENU * menu, const char *mark) { short l; @@ -223,7 +224,7 @@ set_menu_mark(MENU * menu, const char *mark) if (menu->mark) { if (menu != &_nc_Default_Menu) - menu->status |= _MARK_ALLOCATED; + SetStatus(menu, _MARK_ALLOCATED); } else { @@ -264,7 +265,7 @@ set_menu_mark(MENU * menu, const char *mark) | | Return Values : The marker string pointer or NULL if no marker defined +--------------------------------------------------------------------------*/ -NCURSES_EXPORT(const char *) +MENU_EXPORT(const char *) menu_mark(const MENU * menu) { T((T_CALLED("menu_mark(%p)"), (const void *)menu));