diff options
author | Kresten Krab Thorup <krab@gcc.gnu.org> | 1993-05-05 08:13:15 +0000 |
---|---|---|
committer | Kresten Krab Thorup <krab@gcc.gnu.org> | 1993-05-05 08:13:15 +0000 |
commit | 991d3e71ced0bb2e4c70807831d4c95a59edde51 (patch) | |
tree | 4d203aa1e9ae06ac3a0614c7889a5772a50214bd /gcc/objc/archive.c | |
parent | 84db222add1bde080bbcd48e53a8e8009296eb48 (diff) | |
download | gcc-991d3e71ced0bb2e4c70807831d4c95a59edde51.zip gcc-991d3e71ced0bb2e4c70807831d4c95a59edde51.tar.gz gcc-991d3e71ced0bb2e4c70807831d4c95a59edde51.tar.bz2 |
Headerfiles reorganized
From-SVN: r4329
Diffstat (limited to 'gcc/objc/archive.c')
-rw-r--r-- | gcc/objc/archive.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/objc/archive.c b/gcc/objc/archive.c index 77cc4f0..867b749 100644 --- a/gcc/objc/archive.c +++ b/gcc/objc/archive.c @@ -31,6 +31,7 @@ You should have received a copy of the GNU General Public License along with #ifndef __alpha__ #include "runtime.h" +#include "typedstream.h" #define __objc_fatal(format, args...) \ { fprintf(stderr, "archining: "); \ @@ -606,7 +607,7 @@ objc_read_string (struct objc_typed_stream* stream, case _B_SSTR: { int length = buf[0]&_B_VALUE; - (*string) = (char*)malloc(length+1); + (*string) = (char*)__objc_xmalloc(length+1); if (key) hash_add (&stream->stream_table, (void*)key, *string); len = (*stream->read)(stream->physical, *string, length); @@ -626,7 +627,7 @@ objc_read_string (struct objc_typed_stream* stream, unsigned int nbytes = buf[0]&_B_VALUE; len = __objc_read_nbyte_uint(stream, nbytes, &nbytes); if (len) { - (*string) = (char*)malloc(nbytes); + (*string) = (char*)__objc_xmalloc(nbytes); if (key) hash_add (&stream->stream_table, (void*)key, *string); len = (*stream->read)(stream->physical, *string, buf[0]&_B_VALUE); @@ -1377,7 +1378,7 @@ objc_open_typed_stream (FILE* physical, int mode) { int fflush(FILE*); - TypedStream* s = (TypedStream*)malloc(sizeof(TypedStream)); + TypedStream* s = (TypedStream*)__objc_xmalloc(sizeof(TypedStream)); s->mode = mode; s->physical = physical; |