change how access is done and add built in array (need to optimise the size)
This commit is contained in:
@@ -11,35 +11,12 @@
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
typedef enum {
|
||||
__base__,
|
||||
__class__,
|
||||
__name__,
|
||||
__add__,
|
||||
__string__,
|
||||
__subtract__,
|
||||
__multiply__,
|
||||
__division__,
|
||||
__new__,
|
||||
__init__,
|
||||
__boolean__,
|
||||
__get_attr__,
|
||||
__binding__,
|
||||
__function__,
|
||||
field__address,
|
||||
__call__,
|
||||
__number__,
|
||||
field_log,
|
||||
field_length,
|
||||
BUILT_IN_FIELDS_COUNT
|
||||
} built_in_fields;
|
||||
|
||||
void init_built_in_field_hashes();
|
||||
|
||||
extern ArgonObject *BASE_CLASS;
|
||||
|
||||
typedef struct ArgonObject ArgonObject;
|
||||
ArgonObject *new_object();
|
||||
|
||||
ArgonObject *new_class();
|
||||
ArgonObject *new_instance(ArgonObject * of);
|
||||
|
||||
void add_builtin_field(ArgonObject *target, built_in_fields field,
|
||||
ArgonObject *object);
|
||||
@@ -62,7 +39,6 @@ ArgonObject *get_builtin_field_for_class(ArgonObject *target,
|
||||
built_in_fields field,
|
||||
ArgonObject *binding_object);
|
||||
|
||||
ArgonObject *get_builtin_field(ArgonObject *target, built_in_fields field,
|
||||
bool recursive, bool disable_method_wrapper);
|
||||
ArgonObject *get_builtin_field(ArgonObject *target, built_in_fields field);
|
||||
|
||||
#endif // OBJECT_H
|
||||
Reference in New Issue
Block a user