X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/f319f19a8ef9c6d076359ed4bbbc42cdecefc0f0..daead564b9592e78d418deb56a211cd5ea399f76:/src/tree.c diff --git a/src/tree.c b/src/tree.c index a68b974..279180a 100644 --- a/src/tree.c +++ b/src/tree.c @@ -95,7 +95,7 @@ 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) +new_argument(char *gtktype, GList *flags, char *name, GString *get, int get_line, GString *set, int set_line, int line_no) { Argument *node = (Argument *)g_new(Node,1); node->type = ARGUMENT_NODE; @@ -106,16 +106,18 @@ new_argument(char *gtktype, GList *flags, char *name, GString *get, int get_line node->get_line = get_line; node->set = set; node->set_line = set_line; + node->line_no = line_no; return (Node *)node; } Node * -new_variable(int scope, Type *vtype, char *id) +new_variable(int scope, Type *vtype, char *id, int line_no) { Variable *node = (Variable *)g_new(Node,1); node->type = VARIABLE_NODE; node->scope = scope; node->vtype = vtype; node->id = id; + node->line_no = line_no; return (Node *)node; }