diff options
Diffstat (limited to 'libobjc/archive.c')
-rw-r--r-- | libobjc/archive.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/libobjc/archive.c b/libobjc/archive.c index f4245041fc5..b6a1ec35932 100644 --- a/libobjc/archive.c +++ b/libobjc/archive.c @@ -1,5 +1,5 @@ /* GNU Objective C Runtime archiving - Copyright (C) 1993, 1995, 1996, 1997, 2002 Free Software Foundation, Inc. + Copyright (C) 1993, 1995, 1996, 1997, 2002, 2004 Free Software Foundation, Inc. Contributed by Kresten Krab Thorup This file is part of GCC. @@ -62,7 +62,7 @@ const char *objc_skip_type (const char *type); static void __objc_finish_write_root_object (struct objc_typed_stream *); static void __objc_finish_read_root_object (struct objc_typed_stream *); -static __inline__ int +static inline int __objc_code_unsigned_char (unsigned char *buf, unsigned char val) { if ((val&_B_VALUE) == val) @@ -87,7 +87,7 @@ objc_write_unsigned_char (struct objc_typed_stream *stream, return (*stream->write) (stream->physical, buf, len); } -static __inline__ int +static inline int __objc_code_char (unsigned char *buf, signed char val) { if (val >= 0) @@ -108,7 +108,7 @@ objc_write_char (struct objc_typed_stream *stream, signed char value) return (*stream->write) (stream->physical, buf, len); } -static __inline__ int +static inline int __objc_code_unsigned_short (unsigned char *buf, unsigned short val) { if ((val&_B_VALUE) == val) @@ -146,7 +146,7 @@ objc_write_unsigned_short (struct objc_typed_stream *stream, return (*stream->write) (stream->physical, buf, len); } -static __inline__ int +static inline int __objc_code_short (unsigned char *buf, short val) { int sign = (val < 0); @@ -165,7 +165,7 @@ objc_write_short (struct objc_typed_stream *stream, short value) } -static __inline__ int +static inline int __objc_code_unsigned_int (unsigned char *buf, unsigned int val) { if ((val&_B_VALUE) == val) @@ -202,7 +202,7 @@ objc_write_unsigned_int (struct objc_typed_stream *stream, unsigned int value) return (*stream->write) (stream->physical, buf, len); } -static __inline__ int +static inline int __objc_code_int (unsigned char *buf, int val) { int sign = (val < 0); @@ -220,7 +220,7 @@ objc_write_int (struct objc_typed_stream *stream, int value) return (*stream->write) (stream->physical, buf, len); } -static __inline__ int +static inline int __objc_code_unsigned_long (unsigned char *buf, unsigned long val) { if ((val&_B_VALUE) == val) @@ -258,7 +258,7 @@ objc_write_unsigned_long (struct objc_typed_stream *stream, return (*stream->write) (stream->physical, buf, len); } -static __inline__ int +static inline int __objc_code_long (unsigned char *buf, long val) { int sign = (val < 0); @@ -350,7 +350,7 @@ objc_write_use_common (struct objc_typed_stream *stream, unsigned long key) } } -static __inline__ int +static inline int __objc_write_extension (struct objc_typed_stream *stream, unsigned char code) { if (code <= _B_VALUE) @@ -366,7 +366,7 @@ __objc_write_extension (struct objc_typed_stream *stream, unsigned char code) } } -__inline__ int +inline int __objc_write_object (struct objc_typed_stream *stream, id object) { unsigned char buf = '\0'; @@ -431,7 +431,7 @@ objc_write_object (struct objc_typed_stream *stream, id object) } } -__inline__ int +inline int __objc_write_class (struct objc_typed_stream *stream, struct objc_class *class) { __objc_write_extension (stream, _BX_CLASS); @@ -459,7 +459,7 @@ objc_write_class (struct objc_typed_stream *stream, } -__inline__ int +inline int __objc_write_selector (struct objc_typed_stream *stream, SEL selector) { const char *sel_name; @@ -501,7 +501,7 @@ objc_write_selector (struct objc_typed_stream *stream, SEL selector) ** Read operations */ -__inline__ int +inline int objc_read_char (struct objc_typed_stream *stream, char *val) { unsigned char buf; @@ -528,7 +528,7 @@ objc_read_char (struct objc_typed_stream *stream, char *val) } -__inline__ int +inline int objc_read_unsigned_char (struct objc_typed_stream *stream, unsigned char *val) { unsigned char buf; @@ -549,7 +549,7 @@ objc_read_unsigned_char (struct objc_typed_stream *stream, unsigned char *val) return len; } -__inline__ int +inline int objc_read_short (struct objc_typed_stream *stream, short *value) { unsigned char buf[sizeof (short) + 1]; @@ -577,7 +577,7 @@ objc_read_short (struct objc_typed_stream *stream, short *value) return len; } -__inline__ int +inline int objc_read_unsigned_short (struct objc_typed_stream *stream, unsigned short *value) { @@ -605,7 +605,7 @@ objc_read_unsigned_short (struct objc_typed_stream *stream, } -__inline__ int +inline int objc_read_int (struct objc_typed_stream *stream, int *value) { unsigned char buf[sizeof (int) + 1]; @@ -632,7 +632,7 @@ objc_read_int (struct objc_typed_stream *stream, int *value) return len; } -__inline__ int +inline int objc_read_long (struct objc_typed_stream *stream, long *value) { unsigned char buf[sizeof (long) + 1]; @@ -659,7 +659,7 @@ objc_read_long (struct objc_typed_stream *stream, long *value) return len; } -__inline__ int +inline int __objc_read_nbyte_uint (struct objc_typed_stream *stream, unsigned int nbytes, unsigned int *val) { @@ -678,7 +678,7 @@ __objc_read_nbyte_uint (struct objc_typed_stream *stream, } -__inline__ int +inline int objc_read_unsigned_int (struct objc_typed_stream *stream, unsigned int *value) { @@ -715,7 +715,7 @@ __objc_read_nbyte_ulong (struct objc_typed_stream *stream, } -__inline__ int +inline int objc_read_unsigned_long (struct objc_typed_stream *stream, unsigned long *value) { @@ -733,7 +733,7 @@ objc_read_unsigned_long (struct objc_typed_stream *stream, return len; } -__inline__ int +inline int objc_read_string (struct objc_typed_stream *stream, char **string) { |