QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
class.c File Reference

Functions

protocollist_tadd_protocol (protocollist_t *protocollist, const char *name)
 
void category_add_methods (category_t *category, methodlist_t *methods)
 
void category_add_protocols (category_t *category, protocollist_t *protocols)
 
int class_access (class_type_t *class_type, class_t *class)
 
void class_add_ivars (class_t *class, symtab_t *ivars)
 
void class_add_methods (class_t *class, methodlist_t *methods)
 
void class_add_protocols (class_t *class, protocollist_t *protocols)
 
void class_begin (class_type_t *class_type)
 
void class_check_ivars (class_t *class, symtab_t *ivars)
 
symbol_tclass_find_ivar (class_t *class, int vis, const char *name)
 
method_tclass_find_method (class_type_t *class_type, method_t *method)
 
void class_finish (class_type_t *class_type)
 
void class_finish_ivar_scope (class_type_t *class_type, symtab_t *ivar_scope, symtab_t *param_scope)
 
void class_finish_module (void)
 
void class_init (void)
 
symtab_tclass_ivar_scope (class_type_t *class_type, symtab_t *parent)
 
method_tclass_message_response (class_t *class, int class_msg, expr_t *sel)
 
symtab_tclass_new_ivars (class_t *class)
 
symbol_tclass_pointer_symbol (class_t *class)
 
symbol_tclass_symbol (class_type_t *class_type, int external)
 
symtab_tclass_to_struct (class_t *class, symtab_t *symtab)
 
void clear_classes (void)
 
int compare_protocols (protocollist_t *protos1, protocollist_t *protos2)
 
void emit_category_ref (const char *class_name, const char *category_name)
 
void emit_class_ref (const char *class_name)
 
def_temit_protocol (protocol_t *protocol)
 
def_temit_protocol_list (protocollist_t *protocols, const char *name)
 
class_textract_class (class_type_t *class_type)
 
category_tget_category (symbol_t *class_name, const char *category_name, int create)
 
class_tget_class (symbol_t *sym, int create)
 
const char * get_class_name (class_type_t *class_type, int pretty)
 
protocol_tget_protocol (const char *name, int create)
 
protocollist_tnew_protocol_list (void)
 
int obj_is_class (const type_t *type)
 
int obj_is_Class (const type_t *type)
 
int obj_is_classptr (const type_t *type)
 
int obj_is_id (const type_t *type)
 
int obj_types_assignable (const type_t *dst, const type_t *src)
 
void print_protocollist (dstring_t *dstr, protocollist_t *protocollist)
 
int procollist_find_protocol (protocollist_t *protocollist, protocol_t *proto)
 
void protocol_add_methods (protocol_t *protocol, methodlist_t *methods)
 
void protocol_add_protocols (protocol_t *protocol, protocollist_t *protocols)
 
def_tprotocol_def (protocol_t *protocol)
 

Variables

int obj_initialized = 0
 
type_t type_Class = { ev_pointer, 0, ty_none, {{&type_obj_class}}}
 
type_t type_id = { ev_pointer, "id", ty_none, {{&type_obj_object}}}
 
type_t type_IMP
 
type_t type_moduleptr = { ev_pointer, 0, ty_none, {{&type_obj_module}}}
 
type_t type_obj_category = { ev_invalid, 0, ty_struct}
 
type_t type_obj_class = { ev_invalid, 0, ty_struct}
 
type_t type_obj_exec_class
 
type_t type_obj_ivar = { ev_invalid, 0, ty_struct}
 
type_t type_obj_method = { ev_invalid, 0, ty_struct }
 
type_t type_obj_method_description = { ev_invalid, 0, ty_struct }
 
type_t type_obj_module = { ev_invalid, 0, ty_struct}
 
type_t type_obj_object = {ev_invalid, 0, ty_struct}
 
type_t type_obj_protocol = { ev_invalid, 0, ty_struct}
 
type_t type_obj_selector = { ev_invalid, 0, ty_struct}
 
type_t type_obj_super = { ev_invalid, 0 }
 
type_t type_SEL = { ev_pointer, "SEL", ty_none, {{&type_obj_selector}}}
 
type_t type_supermsg
 
type_t type_SuperPtr = { ev_pointer, 0, ty_none, {{&type_obj_super}}}
 

Function Documentation

protocollist_t* add_protocol ( protocollist_t protocollist,
const char *  name 
)
void category_add_methods ( category_t category,
methodlist_t methods 
)
void category_add_protocols ( category_t category,
protocollist_t protocols 
)
int class_access ( class_type_t class_type,
class_t class 
)
void class_add_ivars ( class_t class,
symtab_t ivars 
)
void class_add_methods ( class_t class,
methodlist_t methods 
)
void class_add_protocols ( class_t class,
protocollist_t protocols 
)
void class_begin ( class_type_t class_type)
void class_check_ivars ( class_t class,
symtab_t ivars 
)
symbol_t* class_find_ivar ( class_t class,
int  vis,
const char *  name 
)
method_t* class_find_method ( class_type_t class_type,
method_t method 
)
void class_finish ( class_type_t class_type)
void class_finish_ivar_scope ( class_type_t class_type,
symtab_t ivar_scope,
symtab_t param_scope 
)
void class_finish_module ( void  )
void class_init ( void  )
symtab_t* class_ivar_scope ( class_type_t class_type,
symtab_t parent 
)
method_t* class_message_response ( class_t class,
int  class_msg,
expr_t sel 
)
symtab_t* class_new_ivars ( class_t class)
symbol_t* class_pointer_symbol ( class_t class)
symbol_t* class_symbol ( class_type_t class_type,
int  external 
)
symtab_t* class_to_struct ( class_t class,
symtab_t symtab 
)
void clear_classes ( void  )
int compare_protocols ( protocollist_t protos1,
protocollist_t protos2 
)
void emit_category_ref ( const char *  class_name,
const char *  category_name 
)
void emit_class_ref ( const char *  class_name)
def_t* emit_protocol ( protocol_t protocol)
def_t* emit_protocol_list ( protocollist_t protocols,
const char *  name 
)
class_t* extract_class ( class_type_t class_type)
category_t* get_category ( symbol_t class_name,
const char *  category_name,
int  create 
)
class_t* get_class ( symbol_t sym,
int  create 
)
const char* get_class_name ( class_type_t class_type,
int  pretty 
)
protocol_t* get_protocol ( const char *  name,
int  create 
)
protocollist_t* new_protocol_list ( void  )
int obj_is_class ( const type_t type)
int obj_is_Class ( const type_t type)
int obj_is_classptr ( const type_t type)
int obj_is_id ( const type_t type)
int obj_types_assignable ( const type_t dst,
const type_t src 
)
void print_protocollist ( dstring_t dstr,
protocollist_t protocollist 
)
int procollist_find_protocol ( protocollist_t protocollist,
protocol_t proto 
)
void protocol_add_methods ( protocol_t protocol,
methodlist_t methods 
)
void protocol_add_protocols ( protocol_t protocol,
protocollist_t protocols 
)
def_t* protocol_def ( protocol_t protocol)

Variable Documentation

int obj_initialized = 0
type_t type_Class = { ev_pointer, 0, ty_none, {{&type_obj_class}}}
type_t type_id = { ev_pointer, "id", ty_none, {{&type_obj_object}}}
type_t type_IMP
Initial value:
= { ev_func, "IMP", ty_none,
{{&type_id, -3, {&type_id, &type_SEL}}}}
func/field/pointer or not used
Definition: type.h:55
type_t type_id
Definition: class.c:89
type_t type_SEL
Definition: class.c:72
Definition: pr_comp.h:41
type_t type_moduleptr = { ev_pointer, 0, ty_none, {{&type_obj_module}}}
type_t type_obj_category = { ev_invalid, 0, ty_struct}
type_t type_obj_class = { ev_invalid, 0, ty_struct}
type_t type_obj_exec_class
Initial value:
= { ev_func, 0, ty_none,
{{&type_void, 1, { &type_moduleptr }}}}
type_t type_void
Definition: type.c:65
func/field/pointer or not used
Definition: type.h:55
type_t type_moduleptr
Definition: class.c:84
Definition: pr_comp.h:41
type_t type_obj_ivar = { ev_invalid, 0, ty_struct}
type_t type_obj_method = { ev_invalid, 0, ty_struct }
type_t type_obj_method_description = { ev_invalid, 0, ty_struct }
type_t type_obj_module = { ev_invalid, 0, ty_struct}
type_t type_obj_object = {ev_invalid, 0, ty_struct}
type_t type_obj_protocol = { ev_invalid, 0, ty_struct}
type_t type_obj_selector = { ev_invalid, 0, ty_struct}
type_t type_obj_super = { ev_invalid, 0 }
type_t type_SEL = { ev_pointer, "SEL", ty_none, {{&type_obj_selector}}}
type_t type_supermsg
Initial value:
= { ev_func, ".supermsg", ty_none,
{{&type_id, -3, {&type_SuperPtr, &type_SEL}}}}
func/field/pointer or not used
Definition: type.h:55
type_t type_id
Definition: class.c:89
type_t type_SuperPtr
Definition: class.c:76
type_t type_SEL
Definition: class.c:72
Definition: pr_comp.h:41
type_t type_SuperPtr = { ev_pointer, 0, ty_none, {{&type_obj_super}}}