Minor typographical changes.
authorRichard Stallman <rms@gnu.org>
Sat, 26 Dec 1992 22:09:40 +0000 (22:09 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 26 Dec 1992 22:09:40 +0000 (22:09 +0000)
From-SVN: r2913

gcc/objc/objc.h

index 5bd492f674bb70dba24f6982c6c594d95b4757dd..2d3ad76a278a785aae73c371bfd0a386a5a177fa 100644 (file)
@@ -34,26 +34,25 @@ extern "C" {
 #endif
 
 #include  "record.h"
-
+\f
+/* 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 charSTR;                              /* 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, ...); 
+\f
 /* Filer types used to describe Ivars and Methods.  */
 #define _C_ID       '@'
 #define _C_CLASS    '#'