aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kbdc/make-tree.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-23 02:24:36 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-23 02:24:36 +0100
commite59c7db7e26853e033242f404ffc4cfb639add2e (patch)
tree6d67132319ff3631833da4e9691d257a2567ac79 /src/mds-kbdc/make-tree.h
parentwhitespace (diff)
downloadmds-e59c7db7e26853e033242f404ffc4cfb639add2e.tar.gz
mds-e59c7db7e26853e033242f404ffc4cfb639add2e.tar.bz2
mds-e59c7db7e26853e033242f404ffc4cfb639add2e.tar.xz
some code simplificiations
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds-kbdc/make-tree.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/mds-kbdc/make-tree.h b/src/mds-kbdc/make-tree.h
index 6c02a8f..e854dad 100644
--- a/src/mds-kbdc/make-tree.h
+++ b/src/mds-kbdc/make-tree.h
@@ -19,20 +19,17 @@
#define MDS_MDS_KBDC_MAKE_TREE_H
-#include "tree.h"
-#include "parse-error.h"
+#include "parsed.h"
/**
* Parse a file into a syntax tree
*
* @param filename The filename of the file to parse
- * @param result Output parameter for the root of the tree, `NULL` if -1 is returned
- * @param errors `NULL`-terminated list of found error, `NULL` if no errors were found or if -1 is returned
- * @return -1 if an error occursed that cannot be stored in `*errors`, zero otherwise
+ * @param result Output parameter for the parsing result
+ * @return -1 if an error occursed that cannot be stored in `result`, zero otherwise
*/
-int parse_to_tree(const char* restrict filename, mds_kbdc_tree_t** restrict result,
- mds_kbdc_parse_error_t*** restrict errors);
+int parse_to_tree(const char* restrict filename, mds_kbdc_parsed_t* restrict result);
#endif