X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/4c9cb9b99991c36920bd17e366e2128d1b22eb6e..64034bc2613afefb289d1450411e69a0de4bce4e:/src/tree.h diff --git a/src/tree.h b/src/tree.h index 348cb8a..5df83d9 100644 --- a/src/tree.h +++ b/src/tree.h @@ -96,6 +96,7 @@ struct _Argument { int get_line; GString *set; int set_line; + int line_no; }; /*scope type*/ @@ -123,6 +124,7 @@ struct _Method { GString *cbuf; int line_no; int ccode_line; + int vararg; }; typedef struct _Variable Variable; @@ -131,6 +133,7 @@ struct _Variable { int scope; Type *vtype; char *id; + int line_no; }; union _Node { @@ -149,8 +152,8 @@ Node *new_class(char *otype, char *ptype, GList *nodes); Node *new_type(int stars, char *name); Node *new_check(int chtype, char *number); Node *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); -Node *new_argument(char *gtktype, GList *flags, char *name, GString *get, int get_line, GString *set, int set_line); -Node *new_variable(int scope, Type *vtype, char *id); +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); +Node *new_argument(char *gtktype, GList *flags, char *name, GString *get, int get_line, GString *set, int set_line, int line_no); +Node *new_variable(int scope, Type *vtype, char *id,int line_no); #endif