X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/f31590988781d77ff5249987801d03a986368ca2..e10d6e307623d0952f6e1f5d9fee8720ddab4808:/src/tree.c diff --git a/src/tree.c b/src/tree.c index c226273..d695b45 100644 --- a/src/tree.c +++ b/src/tree.c @@ -24,11 +24,11 @@ #include "tree.h" Node * -new_ccode(int header, GString *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,11 +78,12 @@ new_funcarg(Type *atype, char *name, GList *checks) } Node * -new_method(int scope, Type *mtype, char *otype, GList *gtktypes, char *id, GList *args, char *onerror, GString *cbuf, int line_no,int ccode_line, int vararg) +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, gboolean vararg) { Method *node = (Method *)g_new(Node,1); node->type = METHOD_NODE; node->scope = scope; + node->method = method; node->mtype = mtype; node->otype = otype; node->gtktypes = gtktypes; @@ -97,11 +98,12 @@ new_method(int scope, Type *mtype, char *otype, GList *gtktypes, char *id, GList } Node * -new_argument(char *gtktype, GList *flags, char *name, GString *get, int get_line, GString *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;