]> git.draconx.ca Git - gob-dx.git/blobdiff - src/tree.h
Release 0.92.2
[gob-dx.git] / src / tree.h
index 474579e6b96f3c5daba9245f22d289011382a5a0..9d853297f8ebd4b968bc76152256d472814a7abb 100644 (file)
@@ -35,12 +35,20 @@ enum {
        VARIABLE_NODE
 };
 
+/* for ccode type */
+enum {
+       C_CCODE,
+       H_CCODE,
+       HT_CCODE,
+       PH_CCODE
+};
+
 typedef union _Node Node;
 
 typedef struct _CCode CCode;
 struct _CCode {
        int type;
-       int header;
+       int cctype;
        char *cbuf;
        int line_no;
 };
@@ -91,6 +99,7 @@ typedef struct _Argument Argument;
 struct _Argument {
        int type;
        char *gtktype;
+       Type *atype;
        GList *flags;
        char *name;
        char *get;
@@ -133,7 +142,7 @@ struct _Method {
        char *cbuf;
        int line_no;
        int ccode_line;
-       int vararg;
+       gboolean vararg;
 };
 
 typedef struct _Variable Variable;
@@ -156,13 +165,13 @@ union _Node {
        Variable variable;
 };
 
-Node *new_ccode(int header, char *cbuf, int line_no);
+Node *new_ccode(int cctype, char *cbuf, int line_no);
 Node *new_class(char *otype, char *ptype, GList *nodes);
 Node *new_type(int stars, char *name, char *postfix);
 Node *new_check(int chtype, char *number);
 Node *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);
-Node *new_argument(char *gtktype, GList *flags, char *name, char *get, int get_line, char *set, int set_line, int line_no);
+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, gboolean vararg);
+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_variable(int scope, Type *vtype, char *id,int line_no);
 
 #endif