mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 23:11:38 +00:00
Add Runtime header for obj* stuff.
Also, move lots of stuff out of the Object header.
This commit is contained in:
parent
7cb2ce3263
commit
ff57b96bc6
4 changed files with 4 additions and 64 deletions
|
@ -2,6 +2,7 @@
|
|||
#define __ruamoko_Array_h
|
||||
|
||||
#include "Object.h"
|
||||
#include "Runtime.h"
|
||||
|
||||
/**
|
||||
The %Array class is a general ordered collection class.
|
||||
|
|
|
@ -9,7 +9,7 @@ nobase_pkginclude_HEADERS= \
|
|||
\
|
||||
cbuf.h cmd.h cvar.h file.h gib.h hash.h plist.h \
|
||||
AutoreleasePool.h Array.h Entity.h List.h ListNode.h Object.h \
|
||||
PropertyList.h Protocol.h Stack.h \
|
||||
PropertyList.h Protocol.h Runtime.h Stack.h \
|
||||
\
|
||||
gui/Group.h gui/InputLine.h gui/Pic.h gui/Point.h gui/Rect.h gui/Size.h \
|
||||
gui/Slider.h gui/Text.h gui/View.h
|
||||
|
|
|
@ -1,69 +1,7 @@
|
|||
#ifndef __ruamoko_Object_h
|
||||
#define __ruamoko_Object_h
|
||||
|
||||
/**
|
||||
Standard boolean type
|
||||
*/
|
||||
typedef enum {
|
||||
NO, ///< false
|
||||
YES, ///< true
|
||||
} BOOL;
|
||||
|
||||
@extern void obj_error (id object, integer code, string fmt, ...);
|
||||
@extern void obj_verror (id object, integer code, string fmt, @va_list args);
|
||||
//obj_error_handler obj_set_error_handler (objc_error_handler func);
|
||||
@extern IMP obj_msg_lookup (id receiver, SEL op);
|
||||
@extern IMP obj_msg_lookup_super (Super class, SEL op);
|
||||
@extern @param obj_msg_sendv (id receiver, SEL op, @va_list args);
|
||||
@extern (void []) obj_malloc (integer size);
|
||||
@extern (void []) obj_atomic_malloc (integer size);
|
||||
@extern (void []) obj_valloc (integer size);
|
||||
@extern (void []) obj_realloc (void [] mem, integer size);
|
||||
@extern (void []) obj_calloc (integer nelem, integer size);
|
||||
@extern void obj_free (void [] mem);
|
||||
//(void []) obj_get_uninstalled_dtable (void);
|
||||
|
||||
@extern Class obj_get_class (string name);
|
||||
@extern Class obj_lookup_class (string name);
|
||||
//Class obj_next_class (void [][] enum_stage);
|
||||
|
||||
@extern string sel_get_name (SEL selector);
|
||||
@extern string sel_get_type (SEL selector);
|
||||
@extern SEL sel_get_uid (string name);
|
||||
//@extern SEL sel_get_any_uid (string name);
|
||||
//@extern SEL sel_get_any_typed_uid (string name);
|
||||
//@extern SEL sel_get_typed_uid (string name, string type);
|
||||
@extern SEL sel_register_name (string name);
|
||||
//@extern SEL sel_register_typed_name (string name, string type);
|
||||
@extern BOOL sel_is_mapped (SEL aSel);
|
||||
|
||||
@extern Method class_get_class_method (Class class, SEL aSel);
|
||||
@extern Method class_get_instance_method (Class class, SEL aSel);
|
||||
@extern Class class_pose_as (Class imposter, Class superclass);
|
||||
@extern id class_create_instance (Class class);
|
||||
@extern string class_get_class_name (Class class);
|
||||
@extern integer class_get_instance_size (Class class);
|
||||
@extern Class class_get_meta_class (Class class);
|
||||
@extern Class class_get_super_class (Class class);
|
||||
@extern integer class_get_version (Class class);
|
||||
@extern BOOL class_is_class (Class class);
|
||||
@extern BOOL class_is_meta_class (Class class);
|
||||
@extern void class_set_version (Class class, integer version);
|
||||
@extern (void []) class_get_gc_object_type (Class class);
|
||||
@extern void class_ivar_set_gcinvisible (Class class, string ivarname, BOOL gcInvisible);
|
||||
|
||||
@extern IMP method_get_imp (Method method);
|
||||
@extern IMP get_imp (Class class, SEL sel);
|
||||
|
||||
@extern id object_copy (id object);
|
||||
@extern id object_dispose (id object);
|
||||
@extern Class object_get_class (id object);
|
||||
@extern string object_get_class_name (id object);
|
||||
@extern Class object_get_meta_class (id object);
|
||||
@extern Class object_get_super_class (id object);
|
||||
@extern BOOL object_is_class (id object);
|
||||
@extern BOOL object_is_instance (id object);
|
||||
@extern BOOL object_is_meta_class (id object);
|
||||
#include "Runtime.h"
|
||||
|
||||
@class Protocol;
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "math.h"
|
||||
|
||||
#include "Array.h"
|
||||
#include "Runtime.h"
|
||||
|
||||
#define STANDARD_CAPACITY 16
|
||||
#define ARRAY_MAX_GRANULARITY 100
|
||||
|
|
Loading…
Reference in a new issue