Commit 752efdc0 by Dennis Glatting

fixed several const decls. bozo.

From-SVN: r80
parent 3f2f1813
...@@ -19,10 +19,14 @@ ...@@ -19,10 +19,14 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
* *
$Header: /usr/user/dennis_glatting/ObjC/c-runtime/include/RCS/ObjC.h,v 0.4 1991/11/19 12:37:49 dennisg Exp dennisg $ $Header: /usr/user/dennis_glatting/ObjC/c-runtime/include/RCS/ObjC.h,v 0.5 1991/11/29 00:24:14 dennisg Exp dennisg $
$Author: dennisg $ $Author: dennisg $
$Date: 1991/11/19 12:37:49 $ $Date: 1991/11/29 00:24:14 $
$Log: ObjC.h,v $ $Log: ObjC.h,v $
* Revision 0.5 1991/11/29 00:24:14 dennisg
* many changes including posing, things to make the compiler
* happier, structure changes, and things to make it play better.
*
* Revision 0.4 1991/11/19 12:37:49 dennisg * Revision 0.4 1991/11/19 12:37:49 dennisg
* changed typedef and struct decls. * changed typedef and struct decls.
* the run-time was changed and those decls changed too. * the run-time was changed and those decls changed too.
...@@ -179,12 +183,12 @@ typedef struct objc_symtab { ...@@ -179,12 +183,12 @@ typedef struct objc_symtab {
* module structure of the executable. * module structure of the executable.
*/ */
typedef struct objc_module { typedef struct objc_module {
u_long version; /* Compiler revision. */ u_long version; /* Compiler revision. */
u_long size; /* sizeof(Module). */ u_long size; /* sizeof(Module). */
char* name; /* Name of the file where the const char* name; /* Name of the file where the
module was generated. The module was generated. The
name includes the path. */ name includes the path. */
Symtab_t symtab; /* Pointer to the Symtab of Symtab_t symtab; /* Pointer to the Symtab of
the module. The Symtab the module. The Symtab
holds an array of pointers to holds an array of pointers to
the classes and categories the classes and categories
...@@ -205,13 +209,13 @@ typedef struct objc_ivar_list { ...@@ -205,13 +209,13 @@ typedef struct objc_ivar_list {
variable defined in the variable defined in the
class. */ class. */
struct objc_ivar { struct objc_ivar {
char* ivar_name; /* Name of the instance const char* ivar_name; /* Name of the instance
variable as entered in the variable as entered in the
class definition. */ class definition. */
char* ivar_type; /* Description of the Ivar's const char* ivar_type; /* Description of the Ivar's
type. Useful for type. Useful for
debuggers. */ debuggers. */
int ivar_offset; /* Byte offset from the base int ivar_offset; /* Byte offset from the base
address of the instance address of the instance
structure to the variable. */ structure to the variable. */
...@@ -237,16 +241,16 @@ typedef struct objc_method_list { ...@@ -237,16 +241,16 @@ typedef struct objc_method_list {
int method_count; /* Number of methods defined in int method_count; /* Number of methods defined in
this structure. */ this structure. */
struct objc_method { struct objc_method {
SEL method_name; /* This variable is the method's SEL method_name; /* This variable is the method's
name. It is a char*. name. It is a char*.
The unique integer passed to The unique integer passed to
objc_msgSend() is a char* too. objc_msgSend() is a char* too.
It is compared against It is compared against
method_name using strcmp(). */ method_name using strcmp(). */
char* method_types; /* Description of the method's const char* method_types; /* Description of the method's
parameter list. Useful for parameter list. Useful for
debuggers. */ debuggers. */
IMP method_imp; /* Address of the method in the IMP method_imp; /* Address of the method in the
executable. */ executable. */
} method_list[1]; /* Variable length } method_list[1]; /* Variable length
structure. */ structure. */
...@@ -275,7 +279,7 @@ typedef struct objc_metaClass { ...@@ -275,7 +279,7 @@ typedef struct objc_metaClass {
struct objc_metaClass* super_class; /* Pointer to meta class's struct objc_metaClass* super_class; /* Pointer to meta class's
super class. NULL for super class. NULL for
Object. */ Object. */
char* name; /* Name of the meta class. */ const char* name; /* Name of the meta class. */
long version; /* Unknown. */ long version; /* Unknown. */
long info; /* Bit mask. See class masks long info; /* Bit mask. See class masks
defined above. */ defined above. */
...@@ -312,7 +316,7 @@ typedef struct objc_class { ...@@ -312,7 +316,7 @@ typedef struct objc_class {
struct objc_class* super_class; /* Pointer to the super struct objc_class* super_class; /* Pointer to the super
class. NULL for class class. NULL for class
Object. */ Object. */
char* name; /* Name of the class. */ const char* name; /* Name of the class. */
long version; /* Unknown. */ long version; /* Unknown. */
long info; /* Bit mask. See class masks long info; /* Bit mask. See class masks
defined above. */ defined above. */
...@@ -345,10 +349,10 @@ typedef struct objc_class { ...@@ -345,10 +349,10 @@ typedef struct objc_class {
* factory methods. * factory methods.
*/ */
typedef struct objc_category { typedef struct objc_category {
char* category_name; /* Name of the category. Name const char* category_name; /* Name of the category. Name
contained in the () of the contained in the () of the
category definition. */ category definition. */
char* class_name; /* Name of the class to which const char* class_name; /* Name of the class to which
the category belongs. */ the category belongs. */
MethodList_t instance_methods; /* Linked list of instance MethodList_t instance_methods; /* Linked list of instance
methods defined in the methods defined in the
...@@ -377,4 +381,5 @@ typedef struct objc_super { ...@@ -377,4 +381,5 @@ typedef struct objc_super {
} }
#endif #endif
#endif #endif
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