2461ab4bb7
In libobjc/: 2010-10-10 Nicola Pero <nicola.pero@meta-innovation.com> * Makefile.in (OBJC_DEPRECATED_H): Added struct_objc_category.h, struct_objc_ivar.h, struct_objc_ivar_list.h, struct_objc_method.h, struct_objc_method_list.h, struct_objc_module.h, struct_objc_protocol_list.h, struct_objc_symtab.h. * objc/deprecated/struct_objc_category.h: New. * objc/deprecated/struct_objc_ivar.h: New. * objc/deprecated/struct_objc_ivar_list.h: New. * objc/deprecated/struct_objc_method.h: New. * objc/deprecated/struct_objc_method_list.h: New. * objc/deprecated/struct_objc_module.h: New. * objc/deprecated/struct_objc_protocol_list.h: New. * objc/deprecated/struct_objc_symtab.h: New. * objc/deprecated/struct_objc_static_instances.h: New. * objc/objc-api.h: Definitions of deprecated structures moved into the above header fragment files in objc/deprecated/. Include the files instead of definition the structures here. Updated comments. * objc/runtime.h: Updated comments. Do not include objc-api.h. (objc_set_enumeration_mutation_handler): Renamed to objc_setEnumerationMutationHandler. * objc-foreach.c (objc_set_enumeration_mutation_handler): Renamed to objc_setEnumerationMutationHandler. * objc/objc-exception.h (objc_set_exception_matcher): Renamed to objc_setExceptionMatcher. (objc_set_uncaught_exception_handler): Renamed to objc_setUncaughtExceptionHandler. * exception.c: Same changes. From-SVN: r165249
25 lines
977 B
C
25 lines
977 B
C
/*
|
|
** The compiler generates one of these structures for each module that
|
|
** composes the executable (eg main.m).
|
|
**
|
|
** This data structure is the root of the definition tree for the module.
|
|
**
|
|
** A collect program runs between ld stages and creates a ObjC ctor array.
|
|
** That array holds a pointer to each module structure of the executable.
|
|
*/
|
|
typedef struct objc_module {
|
|
unsigned long version; /* Version of the Module data structure. */
|
|
unsigned long size; /* sizeof(Module) according to the compiler -
|
|
only used to sanity check that it matches
|
|
sizeof(Module) according to the
|
|
runtime. */
|
|
const char* name; /* Name of the file used to compile the
|
|
module - not set by modern compilers for
|
|
security reasons. */
|
|
Symtab_t symtab; /* Pointer to the Symtab of the module. The
|
|
Symtab holds an array of pointers to the
|
|
classes and categories defined in the
|
|
module. */
|
|
} Module, *Module_t;
|
|
|