From 8a2bc51f28c38db511fad5c41d267ab5cf28f9eb Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Tue, 9 Aug 2011 13:06:21 +1000 Subject: [PATCH] Rearrange function prototypes to match the order in the source file --- src/intf.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/intf.c b/src/intf.c index 0ef038b..a1ccad7 100644 --- a/src/intf.c +++ b/src/intf.c @@ -96,6 +96,17 @@ txwin_t *firstwin = NULL; // First (bottom-most) txwin structure * Module-specific function prototypes * ************************************************************************/ +/* + Function: sigterm_handler - Handle program termination signals + Parameters: sig - Signal number + Returns: (nothing) + + This function handles termination signals (like SIGINT and SIGTERM) by + setting the global variable abort_game to true. +*/ +static void sigterm_handler (int sig); + + /* Function: txinput_fixup - Copy strings with fixup Parameters: dest - Destination buffer of size BUFSIZE @@ -115,17 +126,6 @@ static void txinput_fixup (char *restrict dest, char *restrict src, bool isfloat); -/* - Function: sigterm_handler - Handle program termination signals - Parameters: sig - Signal number - Returns: (nothing) - - This function handles termination signals (like SIGINT and SIGTERM) by - setting the global variable abort_game to true. -*/ -static void sigterm_handler (int sig); - - /************************************************************************ * Basic text input/output function definitions * ************************************************************************/