diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-11-23 02:24:36 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-11-23 02:24:36 +0100 |
commit | e59c7db7e26853e033242f404ffc4cfb639add2e (patch) | |
tree | 6d67132319ff3631833da4e9691d257a2567ac79 /src/mds-kbdc/simplify-tree.h | |
parent | whitespace (diff) | |
download | mds-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 'src/mds-kbdc/simplify-tree.h')
-rw-r--r-- | src/mds-kbdc/simplify-tree.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mds-kbdc/simplify-tree.h b/src/mds-kbdc/simplify-tree.h index 94e4f94..9db62ef 100644 --- a/src/mds-kbdc/simplify-tree.h +++ b/src/mds-kbdc/simplify-tree.h @@ -19,20 +19,16 @@ #define MDS_MDS_KBDC_SIMPLIFY_TREE_H -#include "tree.h" -#include "parse-error.h" +#include "parsed.h" /** * Simplify a tree and generate related warnings in the process * - * @param filename The filename of the tree that have been parsed - * @param tree The tree, it may be modified - * @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 `result` from `parse_to_tree`, same sematics, will be updated + * @return -1 if an error occursed that cannot be stored in `result`, zero otherwise */ -int simplify_tree(const char* restrict filename, mds_kbdc_tree_t* restrict tree, - mds_kbdc_parse_error_t*** restrict errors); +int simplify_tree(mds_kbdc_parsed_t* restrict result); #endif |