]> git.draconx.ca Git - gob-dx.git/blobdiff - src/tree.c
Release 0.92.1
[gob-dx.git] / src / tree.c
index ab06d4f8fde793dc46b06ecd1950c7d951af8521..414ba43cabcd3764dcd1a38e14541b3916c72130 100644 (file)
@@ -24,7 +24,7 @@
 #include "tree.h"
 
 Node *
-new_ccode(int header, GString *cbuf, int line_no)
+new_ccode(int header, char *cbuf, int line_no)
 {
        CCode *node = (CCode *)g_new(Node,1);
        node->type = CCODE_NODE;
@@ -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,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, int 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;
@@ -96,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;