X-Git-Url: https://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/2255b3d84eeb947d4c065332f16e410ae4704c63..refs/tags/v0.92.4:/src/tree.c diff --git a/src/tree.c b/src/tree.c index 22c6a2e..b92f771 100644 --- a/src/tree.c +++ b/src/tree.c @@ -24,11 +24,11 @@ #include "tree.h" Node * -new_ccode(int header, char *cbuf, int line_no) +new_ccode(int cctype, char *cbuf, int line_no) { CCode *node = (CCode *)g_new(Node,1); node->type = CCODE_NODE; - node->header = header; + node->cctype = cctype; node->cbuf = cbuf; node->line_no = line_no; return (Node *)node; @@ -78,7 +78,10 @@ new_funcarg(Type *atype, char *name, GList *checks) } Node * -new_method(int scope, int method, Type *mtype, char *otype, GList *gtktypes, char *id, GList *args, char *onerror, char *cbuf, int line_no,int ccode_line, int vararg) +new_method(int scope, int method, Type *mtype, char *otype, + GList *gtktypes, GList *flags, char *id, GList *args, + char *onerror, char *cbuf, int line_no, int ccode_line, + gboolean vararg) { Method *node = (Method *)g_new(Node,1); node->type = METHOD_NODE; @@ -87,6 +90,7 @@ new_method(int scope, int method, Type *mtype, char *otype, GList *gtktypes, cha node->mtype = mtype; node->otype = otype; node->gtktypes = gtktypes; + node->flags = flags; node->id = id; node->args = args; node->onerror = onerror; @@ -98,11 +102,12 @@ new_method(int scope, int method, Type *mtype, char *otype, GList *gtktypes, cha } Node * -new_argument(char *gtktype, GList *flags, char *name, char *get, int get_line, char *set, int set_line, int line_no) +new_argument(char *gtktype, Type *atype, GList *flags, char *name, char *get, int get_line, char *set, int set_line, int line_no) { Argument *node = (Argument *)g_new(Node,1); node->type = ARGUMENT_NODE; node->gtktype = gtktype; + node->atype = atype; node->flags = flags; node->name = name; node->get = get;