return (Node *)self;
}
-Node * new_class (char * otype, char * ptype, char * chunk_size, GList * nodes)
+Node * new_class (char * otype, char * ptype, char * bonobo_x_class, char * chunk_size, GList * nodes)
{
Class * self = g_new0(Class, 1);
self->type = CLASS_NODE;
self->otype = otype;
self->ptype = ptype;
+ self->bonobo_x_class = bonobo_x_class;
self->chunk_size = chunk_size;
self->nodes = nodes;
return (Node *)self;
return (Node *)self;
}
-Node * new_method (int scope, int method, Type * mtype, char * otype, GList * gtktypes, GList * flags, char * id, GList * args, char * onerror, char * defreturn, char * cbuf, int line_no, int ccode_line, gboolean vararg, int unique_id)
+Node * new_method (int scope, int method, Type * mtype, char * otype, GList * gtktypes, GList * flags, char * id, GList * args, char * onerror, char * defreturn, char * cbuf, int line_no, int ccode_line, gboolean vararg, int unique_id, gboolean bonobo_x_func)
{
Method * self = g_new0(Method, 1);
self->type = METHOD_NODE;
self->ccode_line = ccode_line;
self->vararg = vararg;
self->unique_id = unique_id;
+ self->bonobo_x_func = bonobo_x_func;
return (Node *)self;
}
new->type = CLASS_NODE;
new->otype = g_strdup(self->otype);
new->ptype = g_strdup(self->ptype);
+ new->bonobo_x_class = g_strdup(self->bonobo_x_class);
new->chunk_size = g_strdup(self->chunk_size);
new->nodes = copy_node_list(self->nodes);
return new;
new->ccode_line = self->ccode_line;
new->vararg = self->vararg;
new->unique_id = self->unique_id;
+ new->bonobo_x_func = self->bonobo_x_func;
return new;
}
g_return_if_fail(self->type == CLASS_NODE);
g_free(self->otype);
g_free(self->ptype);
+ g_free(self->bonobo_x_class);
g_free(self->chunk_size);
free_node_list(self->nodes);
g_free(self);