From d58d0289a7b7817e2d96f4666ebb370add8d1a81 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 20 Sep 2012 20:28:49 +0100 Subject: cope with partial interfaces --- src/webidl-ast.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/webidl-ast.h') diff --git a/src/webidl-ast.h b/src/webidl-ast.h index 682bb27..b421615 100644 --- a/src/webidl-ast.h +++ b/src/webidl-ast.h @@ -19,14 +19,7 @@ enum webidl_node_type { WEBIDL_NODE_TYPE_OPERATION, }; -struct webidl_node { - enum webidl_node_type type; - struct webidl_node *l; - union { - struct webidl_node *node; - char *text; - } r; -}; +struct webidl_node; /** callback for search and iteration routines */ typedef int (webidl_callback_t)(struct webidl_node *node, void *ctx); @@ -35,6 +28,8 @@ int webidl_cmp_node_type(struct webidl_node *node, void *ctx); struct webidl_node *webidl_node_new(enum webidl_node_type, struct webidl_node *l, void *r); +void webidl_node_set(struct webidl_node *node, enum webidl_node_type type, void *r); + struct webidl_node *webidl_node_link(struct webidl_node *tgt, struct webidl_node *src); /* node contents acessors */ -- cgit v1.2.3