summaryrefslogtreecommitdiff
path: root/src/gram.y
diff options
context:
space:
mode:
authorRoland Mainz <roland.mainz@nrubsig.org>2005-03-11 16:23:00 +0000
committerRoland Mainz <roland.mainz@nrubsig.org>2005-03-11 16:23:00 +0000
commit6e96bd376c916c150a055447d4badc1fae84e47a (patch)
tree6567fee1f286c12039ae40151ba7d615fb3345a2 /src/gram.y
parentd045cb62c62f09978798510deaec0acae0a6fb4d (diff)
xc/programs/twm/add_window.c
xc/programs/twm/cursor.c xc/programs/twm/events.c xc/programs/twm/gc.c xc/programs/twm/gram.y xc/programs/twm/iconmgr.c xc/programs/twm/icons.c xc/programs/twm/list.c xc/programs/twm/menus.c xc/programs/twm/parse.c xc/programs/twm/resize.c xc/programs/twm/twm.c //bugs.freedesktop.org/show_bug.cgi?id=2566) attachment #2083 (https://bugs.freedesktop.org/attachment.cgi?id=2083) ANSI-fy twm window manager code. The conversion preserves the comments which annotate variables and function arguments (these have been moved into doxygen(esque?) "stubs" above each function. Patch by Mike Owens <etc@filespanker.com>.
Diffstat (limited to 'src/gram.y')
-rw-r--r--src/gram.y25
1 files changed, 7 insertions, 18 deletions
diff --git a/src/gram.y b/src/gram.y
index 372b3b5..d623ddb 100644
--- a/src/gram.y
+++ b/src/gram.y
@@ -751,9 +751,7 @@ RemoveDQuote(char *str)
*o = '\0';
}
-static MenuRoot *GetRoot(name, fore, back)
-char *name;
-char *fore, *back;
+static MenuRoot *GetRoot(char *name, char* fore, char *back)
{
MenuRoot *tmp;
@@ -775,8 +773,7 @@ char *fore, *back;
return tmp;
}
-static void GotButton(butt, func)
-int butt, func;
+static void GotButton(int butt, int func)
{
int i;
@@ -805,9 +802,7 @@ int butt, func;
mods = 0;
}
-static void GotKey(key, func)
-char *key;
-int func;
+static void GotKey(char *key, int func)
{
int i;
@@ -827,10 +822,7 @@ int func;
}
-static void GotTitleButton (bitmapname, func, rightside)
- char *bitmapname;
- int func;
- Bool rightside;
+static void GotTitleButton (char *bitmapname, int func, Bool rightside)
{
if (!CreateTitleButton (bitmapname, func, Action, pull, rightside, True)) {
twmrc_error_prefix();
@@ -842,8 +834,7 @@ static void GotTitleButton (bitmapname, func, rightside)
pull = NULL;
}
-static Bool CheckWarpScreenArg (s)
- register char *s;
+static Bool CheckWarpScreenArg (char *s)
{
XmuCopyISOLatin1Lowered (s, s);
@@ -857,8 +848,7 @@ static Bool CheckWarpScreenArg (s)
}
-static Bool CheckWarpRingArg (s)
- register char *s;
+static Bool CheckWarpRingArg (char *s)
{
XmuCopyISOLatin1Lowered (s, s);
@@ -870,8 +860,7 @@ static Bool CheckWarpRingArg (s)
}
-static Bool CheckColormapArg (s)
- register char *s;
+static Bool CheckColormapArg (char *s)
{
XmuCopyISOLatin1Lowered (s, s);