diff options
author | Tim Wiederhake <twied@gmx.net> | 2023-12-30 20:49:48 +0100 |
---|---|---|
committer | Tim Wiederhake <twied@gmx.net> | 2024-01-21 13:14:36 +0100 |
commit | a0a4604cab350eb6a8bd3cc56cfb35d534fa344b (patch) | |
tree | 153eea93ec30f19c2f8d09ac7b2b0a530002f03c /src/menus.c | |
parent | 783b31821d87ea551457f4700f796a51f359cfd1 (diff) |
Remove storage specifier 'register'
'register' is an optimization hint to the compiler that is generally
not necessary and needlessly prevents using a c++ compiler to compile
twm.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
Diffstat (limited to 'src/menus.c')
-rw-r--r-- | src/menus.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/menus.c b/src/menus.c index 5450363..9903f75 100644 --- a/src/menus.c +++ b/src/menus.c @@ -254,7 +254,7 @@ CreateTitleButton(const char *name, int func, const char *action, Scr->TBInfo.head = tb; } else if (append && rightside) { /* 3 */ - register TitleButton *t; + TitleButton *t; /* SUPPRESS 530 */ for (t = Scr->TBInfo.head; t->next; t = t->next); @@ -262,7 +262,7 @@ CreateTitleButton(const char *name, int func, const char *action, tb->next = NULL; } else { /* 2 */ - register TitleButton *t, *prev = NULL; + TitleButton *t, *prev = NULL; for (t = Scr->TBInfo.head; t && !t->rightside; t = t->next) { prev = t; @@ -1105,8 +1105,8 @@ belongs_to_twm_window(TwmWindow *t, Window w) return True; if (t && t->titlebuttons) { - register TBWindow *tbw; - register int nb = Scr->TBInfo.nleft + Scr->TBInfo.nright; + TBWindow *tbw; + int nb = Scr->TBInfo.nleft + Scr->TBInfo.nright; for (tbw = t->titlebuttons; nb > 0; tbw++, nb--) { if (tbw->window == w) @@ -1983,7 +1983,7 @@ ExecuteFunction(int func, const char *action, Window w, TwmWindow *tmp_win, case F_WARPPREV: case F_WARPNEXT: { - register TwmWindow *t; + TwmWindow *t; TwmWindow *of, *l, *n; int c = 0; @@ -2029,7 +2029,7 @@ ExecuteFunction(int func, const char *action, Window w, TwmWindow *tmp_win, case F_WARPTO: { - register TwmWindow *t; + TwmWindow *t; int len; len = (int) strlen(action); |