about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'WWW/Library/Implementation/HTUtils.h')
-rw-r--r--WWW/Library/Implementation/HTUtils.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/WWW/Library/Implementation/HTUtils.h b/WWW/Library/Implementation/HTUtils.h
index 3eb54ea0..5267a7c2 100644
--- a/WWW/Library/Implementation/HTUtils.h
+++ b/WWW/Library/Implementation/HTUtils.h
@@ -206,6 +206,8 @@ Booleans
 #define NO (BOOLEAN)0
 #endif
 
+extern BOOL LYOutOfMemory;	/* Declared in LYexit.c - FM */
+
 #define TCP_PORT 80     /* Allocated to http by Jon Postel/ISI 24-Jan-92 */
 #define OLD_TCP_PORT 2784       /* Try the old one if no answer on 80 */
 #define DNP_OBJ 80      /* This one doesn't look busy, but we must check */
@@ -257,9 +259,10 @@ Out Of Memory checking for malloc() return:
 
 #include "LYexit.h"
 
-#define outofmem(file, func) \
- { fprintf(stderr, "%s %s: out of memory.\nProgram aborted.\n", file, func); \
-  exit(-1);}
+#define outofmem(file, func)\
+ { fprintf(stderr,\
+  "\r\n\r\n\r\n%s %s: out of memory.  Aborting...\r\n", file, func);\
+  LYOutOfMemory = TRUE; exit(-1);}
 /* extern void outofmem PARAMS((const char *fname, const char *func)); */