summaryrefslogtreecommitdiff
path: root/src/twm.c
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/twm.c
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/twm.c')
-rw-r--r--src/twm.c45
1 files changed, 9 insertions, 36 deletions
diff --git a/src/twm.c b/src/twm.c
index 575ee45..76c6db1 100644
--- a/src/twm.c
+++ b/src/twm.c
@@ -613,14 +613,9 @@ main(int argc, char *argv[])
exit(0);
}
-/***********************************************************************
- *
- * Procedure:
- * InitVariables - initialize twm variables
- *
- ***********************************************************************
+/**
+ * initialize twm variables
*/
-
void
InitVariables()
{
@@ -783,8 +778,7 @@ CreateFonts ()
}
void
-RestoreWithdrawnLocation (tmp)
- TwmWindow *tmp;
+RestoreWithdrawnLocation (TwmWindow *tmp)
{
int gravx, gravy;
unsigned int bw, mask;
@@ -832,8 +826,7 @@ RestoreWithdrawnLocation (tmp)
void
-Reborder (time)
-Time time;
+Reborder (Time time)
{
TwmWindow *tmp; /* temp twm window structure */
int scrnum;
@@ -865,24 +858,8 @@ sigHandler(int sig)
SIGNAL_RETURN;
}
-/***********************************************************************
- *
- * Procedure:
- * Done - cleanup and exit twm
- *
- * Returned Value:
- * none
- *
- * Inputs:
- * none
- *
- * Outputs:
- * none
- *
- * Special Considerations:
- * none
- *
- ***********************************************************************
+/**
+ * cleanup and exit twm
*/
void
Done(XtPointer client_data, XtSignalId *si)
@@ -895,6 +872,7 @@ Done(XtPointer client_data, XtSignalId *si)
exit(0);
}
+
/*
* Error Handlers. If a client dies, we'll get a BadWindow error (except for
* GetGeometry which returns BadDrawable) for most operations that we do before
@@ -905,9 +883,7 @@ Bool ErrorOccurred = False;
XErrorEvent LastErrorEvent;
static int
-TwmErrorHandler(dpy, event)
- Display *dpy;
- XErrorEvent *event;
+TwmErrorHandler(Display *dpy, XErrorEvent *event)
{
LastErrorEvent = *event;
ErrorOccurred = True;
@@ -921,11 +897,8 @@ TwmErrorHandler(dpy, event)
}
-/* ARGSUSED*/
static int
-CatchRedirectError(dpy, event)
- Display *dpy;
- XErrorEvent *event;
+CatchRedirectError(Display *dpy, XErrorEvent *event)
{
RedirectError = TRUE;
LastErrorEvent = *event;