diff options
author | Richard Stallman <rms@gnu.org> | 1992-12-26 22:09:40 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-12-26 22:09:40 +0000 |
commit | bc957254f84a395d45e2fe9734defd0812bedd6a (patch) | |
tree | 8855550f84ee5761f56c1f372530754393135427 | |
parent | 8b70e6ecb047339dc26b7812dbdea47ef24d2af9 (diff) | |
download | gcc-bc957254f84a395d45e2fe9734defd0812bedd6a.zip gcc-bc957254f84a395d45e2fe9734defd0812bedd6a.tar.gz gcc-bc957254f84a395d45e2fe9734defd0812bedd6a.tar.bz2 |
Minor typographical changes.
From-SVN: r2913
-rw-r--r-- | gcc/objc/objc.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gcc/objc/objc.h b/gcc/objc/objc.h index 5bd492f..2d3ad76 100644 --- a/gcc/objc/objc.h +++ b/gcc/objc/objc.h @@ -34,26 +34,25 @@ extern "C" { #endif #include "record.h" - + +/* This duplicates the beginning of object.h. + Except that we use Class_t for a pointer, whereas it uses Class. */ #define nil (id)0 /* id of Nil instance */ #define Nil (Class_t)0 /* id of Nil class */ -typedef char* STR; /* String alias */ +typedef char *STR; /* String alias */ /* Boolean typedefs */ typedef char BOOL; #define YES (BOOL)1 #define NO (BOOL)0 + /* Definition of a selector. Selectors are really of type char*. The run-time hashes the string's address to locate the method. If the method isn't in the hash table then a search is made through the class hierarchy using strcmp to locate the method. */ -#if 0 -typedef struct objc_selector* SEL; -#else -typedef void* SEL; -#endif +typedef void *SEL; /* ObjC uses this typedef for untyped instances. */ @@ -62,8 +61,8 @@ typedef struct objc_object { } *id; /* Prototype for method functions. */ -typedef id (*IMP)(id, SEL, ...); - +typedef id (*IMP)(id, SEL, ...); + /* Filer types used to describe Ivars and Methods. */ #define _C_ID '@' #define _C_CLASS '#' |