- * Copyright (c) 1998-2005,2008 Free Software Foundation, Inc. *
+ * Copyright 2020 Thomas E. Dickey *
+ * Copyright 1998-2012,2016 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 *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
/* Add a new character to the match pattern buffer */
#define Add_Character_To_Pattern(menu,ch) \
/* Add a new character to the match pattern buffer */
#define Add_Character_To_Pattern(menu,ch) \
(menu)->pattern[(menu)->pindex] = '\0'; }
/*---------------------------------------------------------------------------
(menu)->pattern[(menu)->pindex] = '\0'; }
/*---------------------------------------------------------------------------
| Return Values : E_OK - an item matching the pattern was found
| E_NO_MATCH - nothing found
+--------------------------------------------------------------------------*/
| Return Values : E_OK - an item matching the pattern was found
| E_NO_MATCH - nothing found
+--------------------------------------------------------------------------*/
_nc_Match_Next_Character_In_Item_Name
(MENU * menu, int ch, ITEM ** item)
{
bool found = FALSE, passed = FALSE;
int idx, last;
_nc_Match_Next_Character_In_Item_Name
(MENU * menu, int ch, ITEM ** item)
{
bool found = FALSE, passed = FALSE;
int idx, last;
- T((T_CALLED("_nc_Match_Next_Character(%p,%d,%p)"), menu, ch, item));
+ T((T_CALLED("_nc_Match_Next_Character(%p,%d,%p)"),
+ (void *)menu, ch, (void *)item));
/* we artificially position one item back, because in the do...while
loop we start with the next item. This means, that with a new
pattern search we always start the scan with the actual item. If
/* we artificially position one item back, because in the do...while
loop we start with the next item. This means, that with a new
pattern search we always start the scan with the actual item. If
|
| Description : Central dispatcher for the menu. Translates the logical
| request 'c' into a menu action.
|
| Description : Central dispatcher for the menu. Translates the logical
| request 'c' into a menu action.
| E_BAD_STATE - menu is in user hook routine
| E_NOT_POSTED - menu is not posted
+--------------------------------------------------------------------------*/
| E_BAD_STATE - menu is in user hook routine
| E_NOT_POSTED - menu is not posted
+--------------------------------------------------------------------------*/
- T((T_CALLED("menu_driver(%p,%d)"), menu, c));
+ T((T_CALLED("menu_driver(%p,%d)"), (void *)menu, c));
{
/* Adjust the top row if it turns out that the current item unfortunately
doesn't appear in the menu window */
{
/* Adjust the top row if it turns out that the current item unfortunately
doesn't appear in the menu window */