about summary refs log tree commit diff stats
path: root/src/LYexit.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2004-04-27 20:26:05 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2004-04-27 20:26:05 -0400
commit2cd8e80bfe2792ce8999a26b34384598f58e3889 (patch)
tree780917a289058c7d05e893a8a1b3dc88d4a7030f /src/LYexit.c
parentbff0a2c0390cf1536254ea168d2581cc9550325f (diff)
downloadlynx-snapshots-2cd8e80bfe2792ce8999a26b34384598f58e3889.tar.gz
snapshot of project "lynx", label v2-8-6dev_2
Diffstat (limited to 'src/LYexit.c')
-rw-r--r--src/LYexit.c25
1 files changed, 10 insertions, 15 deletions
diff --git a/src/LYexit.c b/src/LYexit.c
index 87071ffc..1e49ba9c 100644
--- a/src/LYexit.c
+++ b/src/LYexit.c
@@ -16,14 +16,14 @@
 /*
  *  Flag for outofmem macro. - FM
  */
-PUBLIC BOOL LYOutOfMemory = FALSE;
+BOOL LYOutOfMemory = FALSE;
 
 
 /*
  *  Stack of functions to call upon exit.
  */
-PRIVATE void (*callstack[ATEXITSIZE]) NOPARAMS;
-PRIVATE int topOfStack = 0;
+static void (*callstack[ATEXITSIZE]) (void);
+static int topOfStack = 0;
 
 /*
  *  Purpose:		Registers termination function.
@@ -35,12 +35,7 @@ PRIVATE int topOfStack = 0;
  *	06-15-94	created Lynx 2-3-1 Garrett Arch Blythe
  */
 
-#ifdef __STDC__
-PUBLIC int LYatexit(void (*function) NOPARAMS)
-#else /* Not ANSI, ugh! */
-PUBLIC int LYatexit(function)
-void (*function) NOPARAMS;
-#endif /* __STDC__ */
+int LYatexit(void (*function) (void))
 {
     /*
      *  Check for available space.
@@ -66,7 +61,7 @@ void (*function) NOPARAMS;
  *  Revision History:
  *	06-15-94	created Lynx 2-3-1 Garrett Arch Blythe
  */
-PRIVATE void LYCompleteExit NOPARAMS
+static void LYCompleteExit (void)
 {
     /*
      *  Just loop through registered functions.
@@ -86,8 +81,8 @@ PRIVATE void LYCompleteExit NOPARAMS
  *  Revision History:
  *	06-15-94	created Lynx 2-3-1 Garrett Arch Blythe
  */
-PUBLIC void LYexit ARGS1(
-	int,		status)
+void LYexit (
+	int		status)
 {
 #ifndef VMS	/*  On VMS, the VMSexit() handler does these. - FM */
 #ifdef _WINDOWS
@@ -174,9 +169,9 @@ PUBLIC void LYexit ARGS1(
     exit(status);
 }
 
-PUBLIC void outofmem ARGS2(
-	CONST char *,	fname,
-	CONST char *,	func)
+void outofmem (
+	const char *	fname,
+	const char *	func)
 {
     fprintf(stderr, "\n\n\n%s %s: %s\n", fname, func, MEMORY_EXHAUSTED_ABORTING);
     LYOutOfMemory = TRUE;