]> git.draconx.ca Git - gob-dx.git/blobdiff - src/tree.c
Release 0.91.2
[gob-dx.git] / src / tree.c
index 279180a5dc30311b9aa95f038706b28118dd6afe..c226273b053f49c4588806b6ed99c4e21b7b938d 100644 (file)
@@ -46,12 +46,13 @@ new_class(char *otype, char *ptype, GList *nodes)
 }
 
 Node *
-new_type(int stars, char *name)
+new_type(int stars, char *name, char *postfix)
 {
        Type *node = (Type *)g_new(Node,1);
        node->type = TYPE_NODE;
        node->stars = stars;
        node->name = name;
+       node->postfix = postfix;
        return (Node *)node;
 }
 
@@ -77,7 +78,7 @@ 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)
+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)
 {
        Method *node = (Method *)g_new(Node,1);
        node->type = METHOD_NODE;
@@ -91,6 +92,7 @@ new_method(int scope, Type *mtype, char *otype, GList *gtktypes, char *id, GList
        node->cbuf = cbuf;
        node->line_no = line_no;
        node->ccode_line = ccode_line;
+       node->vararg = vararg;
        return (Node *)node;
 }