summaryrefslogtreecommitdiff
path: root/src/duk-libdom.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-09-26 23:20:38 +0100
committerVincent Sanders <vince@kyllikki.org>2015-09-26 23:20:38 +0100
commit017eb2ef4da167466c05ad83eb0714129a2e46ff (patch)
treee64da1b284e709c5904219c28ed3be6f35d77fa8 /src/duk-libdom.h
parent53acb5a29b8eb4fe89dd2e8bc3b808d5e7183b81 (diff)
downloadnsgenbind-017eb2ef4da167466c05ad83eb0714129a2e46ff.tar.gz
nsgenbind-017eb2ef4da167466c05ad83eb0714129a2e46ff.tar.bz2
Simplify genbind AST handling of preface, prologue, epilogue and postface
Diffstat (limited to 'src/duk-libdom.h')
-rw-r--r--src/duk-libdom.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/duk-libdom.h b/src/duk-libdom.h
index 3b07009..b9eeea3 100644
--- a/src/duk-libdom.h
+++ b/src/duk-libdom.h
@@ -47,7 +47,7 @@ int output_tool_prologue(FILE* outf);
/**
* output character data of node of given type.
*
- * used for any cdata including pre/pro/epi/post sections
+ * used for any cdata sections
*
* \param outf The file handle to write output.
* \param node The node to search.
@@ -57,6 +57,18 @@ int output_tool_prologue(FILE* outf);
int output_cdata(FILE* outf, struct genbind_node *node, enum genbind_node_type nodetype);
/**
+ * output character data of method node of given type.
+ *
+ * used for any cdata including pre/pro/epi/post sections
+ *
+ * \param outf The file handle to write output.
+ * \param node The node to search.
+ * \param nodetype the type of child node to search for.
+ * \return The number of nodes written or 0 for none.
+ */
+int output_method_cdata(FILE* outf, struct genbind_node *node, enum genbind_method_type sel_method_type);
+
+/**
* output a C variable type
*
* Used to output c type and optionlly identifier declarations for parameters