X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/3379dcdfd0872947d761053c61d773add94d38c2..486240dc4c5d57b0afaddba60d87fe375112bed5:/src/treefuncs.h diff --git a/src/treefuncs.h b/src/treefuncs.h index d2e9430..4d60558 100644 --- a/src/treefuncs.h +++ b/src/treefuncs.h @@ -33,7 +33,8 @@ enum { NO_SCOPE, PUBLIC_SCOPE, PRIVATE_SCOPE, - PROTECTED_SCOPE + PROTECTED_SCOPE, + CLASS_SCOPE }; /* method type */ @@ -101,6 +102,7 @@ struct _Class { int type; char * otype; char * ptype; + char * chunk_size; GList * nodes; }; @@ -127,12 +129,13 @@ struct _Method { int line_no; int ccode_line; gboolean vararg; + int unique_id; }; struct _Type { int type; - int stars; char * name; + char * pointer; char * postfix; }; @@ -165,10 +168,10 @@ union _Node { Node * new_argument (char * gtktype, Type * atype, GList * flags, char * name, char * get, int get_line, char * set, int set_line, int line_no); Node * new_ccode (int cctype, char * cbuf, int line_no); Node * new_check (int chtype, char * number); -Node * new_class (char * otype, char * ptype, GList * nodes); +Node * new_class (char * otype, char * ptype, char * chunk_size, GList * nodes); Node * new_funcarg (Type * atype, char * name, GList * checks); -Node * new_method (int scope, int method, Type * mtype, char * otype, GList * gtktypes, GList * flags, char * id, GList * args, char * onerror, char * defreturn, char * cbuf, int line_no, int ccode_line, gboolean vararg); -Node * new_type (int stars, char * name, char * postfix); +Node * new_method (int scope, int method, Type * mtype, char * otype, GList * gtktypes, GList * flags, char * id, GList * args, char * onerror, char * defreturn, char * cbuf, int line_no, int ccode_line, gboolean vararg, int unique_id); +Node * new_type (char * name, char * pointer, char * postfix); Node * new_variable (int scope, Type * vtype, char * id, int line_no, char * destructor, int destructor_line, gboolean destructor_simple, char * initializer, int initializer_line); /* General copy/free functions */