From e59c7db7e26853e033242f404ffc4cfb639add2e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 23 Nov 2014 02:24:36 +0100 Subject: some code simplificiations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-kbdc/make-tree.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/mds-kbdc/make-tree.h') 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 -- cgit v1.2.3-70-g09d2