([MemoryStream -writeBytes:length:]): In accordance with Objective C

runtime change, use objc_realloc as a function, not a function pointer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1726 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-09-07 20:07:01 +00:00
parent b93881d83f
commit ff62ff2d40

View file

@ -139,7 +139,7 @@ static BOOL debug_memory_stream = NO;
if (prefix+position+l > size)
{
size = MAX(prefix+position+l, size*2);
buffer = (*objc_realloc)(buffer, size);
buffer = objc_realloc (buffer, size);
}
memcpy(buffer+prefix+position, b, l);
position += l;
@ -287,7 +287,7 @@ void unchar_func(void *s, int c)
{
if (s > prefix + eofPosition)
{
buffer = (*objc_realloc)(buffer, s);
buffer = objc_realloc (buffer, s);
size = s;
}
}