summaryrefslogtreecommitdiffstats
path: root/generic/tkMenu.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-03-23 13:52:05 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-03-23 13:52:05 (GMT)
commitcb689d388a07704cc34424caf91ff48bf6a3953b (patch)
tree3d5a0bd2757831e42bf7c5848f145d40471f6767 /generic/tkMenu.c
parent911e6945bdebb097f23426a01310bbd85891167a (diff)
downloadtk-cb689d388a07704cc34424caf91ff48bf6a3953b.zip
tk-cb689d388a07704cc34424caf91ff48bf6a3953b.tar.gz
tk-cb689d388a07704cc34424caf91ff48bf6a3953b.tar.bz2
Eliminate "register" keyword. Use more TCL_UNUSED()
Diffstat (limited to 'generic/tkMenu.c')
-rw-r--r--generic/tkMenu.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/generic/tkMenu.c b/generic/tkMenu.c
index 1cd7a16..18f59a8 100644
--- a/generic/tkMenu.c
+++ b/generic/tkMenu.c
@@ -406,7 +406,7 @@ Tk_MenuObjCmd(
{
Tk_Window tkwin = clientData;
Tk_Window newWin;
- register TkMenu *menuPtr;
+ TkMenu *menuPtr;
TkMenuReferences *menuRefPtr;
int i, index, toplevel;
const char *windowName;
@@ -617,8 +617,8 @@ MenuWidgetObjCmd(
int objc, /* Number of arguments. */
Tcl_Obj *const objv[]) /* Argument strings. */
{
- register TkMenu *menuPtr = clientData;
- register TkMenuEntry *mePtr;
+ TkMenu *menuPtr = clientData;
+ TkMenuEntry *mePtr;
int result = TCL_OK;
int option;
ThreadSpecificData *tsdPtr =
@@ -1385,7 +1385,7 @@ static void
DestroyMenuEntry(
void *memPtr) /* Pointer to entry to be freed. */
{
- register TkMenuEntry *mePtr = memPtr;
+ TkMenuEntry *mePtr = memPtr;
TkMenu *menuPtr = mePtr->menuPtr;
if (menuPtr->postedCascade == mePtr) {
@@ -1519,7 +1519,7 @@ MenuWorldChanged(
static int
ConfigureMenu(
Tcl_Interp *interp, /* Used for error reporting. */
- register TkMenu *menuPtr, /* Information about widget; may or may not
+ TkMenu *menuPtr, /* Information about widget; may or may not
* already have values for some fields. */
int objc, /* Number of valid entries in argv. */
Tcl_Obj *const objv[]) /* Arguments. */
@@ -1901,7 +1901,7 @@ PostProcessEntry(
static int
ConfigureMenuEntry(
- register TkMenuEntry *mePtr,/* Information about menu entry; may or may
+ TkMenuEntry *mePtr,/* Information about menu entry; may or may
* not already have values for some fields. */
int objc, /* Number of valid entries in argv. */
Tcl_Obj *const objv[]) /* Arguments. */
@@ -2589,11 +2589,11 @@ MenuVarProc(
int
TkActivateMenuEntry(
- register TkMenu *menuPtr, /* Menu in which to activate. */
+ TkMenu *menuPtr, /* Menu in which to activate. */
int index) /* Index of entry to activate, or -1 to
* deactivate all entries. */
{
- register TkMenuEntry *mePtr;
+ TkMenuEntry *mePtr;
int result = TCL_OK;
if (menuPtr->active >= 0) {