Commit 7d27ba04 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Add a list of methods to type definitions

For now, this is a copy of struct vcc_methods used in expression parsing
and the list includes type properties as well.
parent 3d137152
......@@ -97,13 +97,23 @@ struct token {
};
/*---------------------------------------------------------------------*/
typedef const struct type *vcc_type_t;
struct vcc_method {
vcc_type_t type;
const char *name;
const char *impl;
int func;
};
struct type {
unsigned magic;
#define TYPE_MAGIC 0xfae932d9
const char *name;
const struct vcc_method *methods;
const char *tostring;
vcc_type_t multype;
int stringform;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment