Mercurial > repos > rhope
comparison runtime/object.h @ 62:b218af069da7
merge
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 10 Oct 2009 16:43:37 -0400 |
parents | d2f9b0a9403d 1b86a1ee500a |
children | 04baa003de5a |
comparison
equal
deleted
inserted
replaced
61:fa24ef3b026f | 62:b218af069da7 |
---|---|
12 rhope_func *convert_to; | 12 rhope_func *convert_to; |
13 rhope_func *convert_from; | 13 rhope_func *convert_from; |
14 special_func init; | 14 special_func init; |
15 special_func copy; | 15 special_func copy; |
16 special_func cleanup; | 16 special_func cleanup; |
17 special_func free; | |
17 struct object *name; | 18 struct object *name; |
18 uint32_t type_id; | 19 uint32_t type_id; |
19 uint32_t first_methodid; | 20 uint32_t first_methodid; |
20 uint32_t last_methodid; | 21 uint32_t last_methodid; |
21 uint32_t first_getfieldid; | 22 uint32_t first_getfieldid; |
74 void add_getter(blueprint * bp, uint32_t fieldid, rhope_func impl); | 75 void add_getter(blueprint * bp, uint32_t fieldid, rhope_func impl); |
75 void add_setter(blueprint * bp, uint32_t fieldid, rhope_func impl); | 76 void add_setter(blueprint * bp, uint32_t fieldid, rhope_func impl); |
76 returntype convert_to(uint32_t convertto, calldata * params); | 77 returntype convert_to(uint32_t convertto, calldata * params); |
77 returntype convert_from(uint32_t convertfrom, calldata * params); | 78 returntype convert_from(uint32_t convertfrom, calldata * params); |
78 object * copy_object(object * tocopy); | 79 object * copy_object(object * tocopy); |
80 object * naked_to_boxed(uint32_t type, void * rawdata); | |
81 void boxed_to_naked(object * src, void * dest); | |
79 returntype coerce_value(uint32_t type, calldata * params); | 82 returntype coerce_value(uint32_t type, calldata * params); |
80 blueprint * get_blueprint_byid(uint32_t type); | 83 blueprint * get_blueprint_byid(uint32_t type); |
81 | 84 |
82 #define INITIAL_TYPE_STORAGE 32 | 85 #define INITIAL_TYPE_STORAGE 32 |
83 #define INITIAL_METHOD_LOOKUP 8 | 86 #define INITIAL_METHOD_LOOKUP 8 |