diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2010-07-06 16:22:29 +0200 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2010-07-06 16:22:29 +0200 |
commit | b56ceb92bf4d470af2e9172d1fcd4d85232c40a6 (patch) | |
tree | 50ab60b4715be45ed671c386c5b9336b45443539 /src/w32xfns.c | |
parent | 7af07b967171736a35e0af8b6ecf6feb072184dc (diff) |
src/w32*.c: Convert function definitions to standard C.
Diffstat (limited to 'src/w32xfns.c')
-rw-r--r-- | src/w32xfns.c | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/src/w32xfns.c b/src/w32xfns.c index d77eb6b68e..a929e45cf6 100644 --- a/src/w32xfns.c +++ b/src/w32xfns.c @@ -39,7 +39,7 @@ HANDLE input_available = NULL; HANDLE interrupt_handle = NULL; void -init_crit () +init_crit (void) { InitializeCriticalSection (&critsect); @@ -57,7 +57,7 @@ init_crit () } void -delete_crit () +delete_crit (void) { DeleteCriticalSection (&critsect); @@ -74,7 +74,7 @@ delete_crit () } void -signal_quit () +signal_quit (void) { /* Make sure this event never remains signaled; if the main thread isn't in a blocking call, then this should do nothing. */ @@ -161,9 +161,7 @@ int_msg *lpTail = NULL; int nQueue = 0; BOOL -get_next_msg (lpmsg, bWait) - W32Msg * lpmsg; - BOOL bWait; +get_next_msg (W32Msg * lpmsg, BOOL bWait) { BOOL bRet = FALSE; @@ -245,8 +243,7 @@ get_next_msg (lpmsg, bWait) } BOOL -post_msg (lpmsg) - W32Msg * lpmsg; +post_msg (W32Msg * lpmsg) { int_msg * lpNew = (int_msg *) myalloc (sizeof (int_msg)); @@ -298,7 +295,7 @@ prepend_msg (W32Msg *lpmsg) /* Process all messages in the current thread's queue. */ void -drain_message_queue () +drain_message_queue (void) { MSG msg; while (PeekMessage (&msg, NULL, 0, 0, PM_REMOVE)) @@ -322,9 +319,7 @@ drain_message_queue () */ static int -read_integer (string, NextString) - register char *string; - char **NextString; +read_integer (register char *string, char **NextString) { register int Result = 0; int Sign = 1; @@ -348,10 +343,9 @@ read_integer (string, NextString) } int -XParseGeometry (string, x, y, width, height) - char *string; - int *x, *y; - unsigned int *width, *height; /* RETURN */ +XParseGeometry (char *string, + int *x, int *y, + unsigned int *width, unsigned int *height) { int mask = NoValue; register char *strind; @@ -446,8 +440,7 @@ XParseGeometry (string, x, y, width, height) /* x_sync is a no-op on W32. */ void -x_sync (f) - void *f; +x_sync (void *f) { } |