Commit bc957254 by Richard Stallman

Minor typographical changes.

From-SVN: r2913
parent 8b70e6ec
...@@ -34,26 +34,25 @@ extern "C" { ...@@ -34,26 +34,25 @@ extern "C" {
#endif #endif
#include "record.h" #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 (id)0 /* id of Nil instance */
#define Nil (Class_t)0 /* id of Nil class */ #define Nil (Class_t)0 /* id of Nil class */
typedef char* STR; /* String alias */ typedef char *STR; /* String alias */
/* Boolean typedefs */ /* Boolean typedefs */
typedef char BOOL; typedef char BOOL;
#define YES (BOOL)1 #define YES (BOOL)1
#define NO (BOOL)0 #define NO (BOOL)0
/* Definition of a selector. Selectors are really of type char*. The /* Definition of a selector. Selectors are really of type char*. The
run-time hashes the string's address to locate the method. If 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 method isn't in the hash table then a search is made through the
class hierarchy using strcmp to locate the method. */ class hierarchy using strcmp to locate the method. */
#if 0 typedef void *SEL;
typedef struct objc_selector* SEL;
#else
typedef void* SEL;
#endif
/* ObjC uses this typedef for untyped instances. */ /* ObjC uses this typedef for untyped instances. */
...@@ -62,8 +61,8 @@ typedef struct objc_object { ...@@ -62,8 +61,8 @@ typedef struct objc_object {
} *id; } *id;
/* Prototype for method functions. */ /* Prototype for method functions. */
typedef id (*IMP)(id, SEL, ...); typedef id (*IMP)(id, SEL, ...);
/* Filer types used to describe Ivars and Methods. */ /* Filer types used to describe Ivars and Methods. */
#define _C_ID '@' #define _C_ID '@'
#define _C_CLASS '#' #define _C_CLASS '#'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment