Mercurial > hg > xemacs-beta
diff pkg-src/tree-x/input.h @ 167:85ec50267440 r20-3b10
Import from CVS: tag r20-3b10
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:45:46 +0200 |
parents | 0132846995bd |
children |
line wrap: on
line diff
--- a/pkg-src/tree-x/input.h Mon Aug 13 09:44:44 2007 +0200 +++ b/pkg-src/tree-x/input.h Mon Aug 13 09:45:46 2007 +0200 @@ -9,7 +9,7 @@ /* * #define DELIMITER_BEGIN_LIST '{' * #define DELIMITER_END_LIST '}' - */ + */ /* Possible token types in file */ @@ -21,7 +21,7 @@ TOKEN_EOF }; -typedef enum { +typedef enum { ERR_OPENFAIL, ERR_EMPTYFILE, ERR_MEMALLOC, @@ -29,9 +29,12 @@ ERR_NOEND, ERR_NOROOT, ERR_MANYROOT, - ERR_NONE, + ERR_NONE } ErrCode; #define NUM_ERRS 7 /* don't count ERR_NONE */ +Tree* ReadTreeFromFile(char *fname, ErrCode *error); +void SetNodeLabelAndValue(Tree *node, char *label_and_value); +int SaveTreeToFile(Tree *tree, char *fname);