From fb130bf2617c82a06cc20802d2e0937d90ac28fc Mon Sep 17 00:00:00 2001 From: mccallum Date: Tue, 17 Sep 1996 20:44:13 +0000 Subject: [PATCH] (MEMORY_CHECK): Macro deleted. objc_malloc() and friends take care of raising the correct exception. All calls removed. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1790 72102866-910b-0410-8b05-ffd578937521 --- Source/MemoryStream.m | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Source/MemoryStream.m b/Source/MemoryStream.m index e10798f81..af7b14c5f 100644 --- a/Source/MemoryStream.m +++ b/Source/MemoryStream.m @@ -55,11 +55,6 @@ enum { #define DEFAULT_MEMORY_STREAM_SIZE 64 -#define MEMORY_CHECK(buffer) \ - if (!buffer) \ - [NSException raise: StreamException \ - format: @"Virtual memory exhausted"] - extern int o_vscanf (void *stream, int (*inchar_func)(void*), @@ -96,7 +91,6 @@ static BOOL debug_memory_stream = NO; { char *b; OBJC_MALLOC(b, char, s); - MEMORY_CHECK(b); return [self _initOnMallocBuffer:b size:s eofPosition:i prefix:p position:i]; } @@ -146,7 +140,6 @@ static BOOL debug_memory_stream = NO; { size = MAX(prefix+position+l, size*2); buffer = objc_realloc (buffer, size); - MEMORY_CHECK(buffer); } memcpy(buffer+prefix+position, b, l); position += l; @@ -304,7 +297,6 @@ void unchar_func(void *s, int c) if (s > prefix + eofPosition) { buffer = objc_realloc (buffer, s); - MEMORY_CHECK(buffer); size = s; } }