diff options
author | 2013-12-12 18:18:07 -0800 | |
---|---|---|
committer | 2013-12-12 18:18:07 -0800 | |
commit | 5cf59de6763a0000fdc87f0101ca78bd137dffcc (patch) | |
tree | b9700e9650a4a06af91ec24dad0c621f8381c3d5 /parser.h | |
parent | e25d49b80b0668b55a58e1445aa047a68a1043d3 (diff) |
Finish rewriting detect_errors to use new parser. All tests now pass (!)
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -11,6 +11,7 @@ #include "util.h" #include "event.h" #include "function.h" +#include "parse_tree.h" #include <vector> enum { @@ -487,7 +488,7 @@ public: \param out if non-null, any errors in the command will be filled out into this buffer \param prefix the prefix string to prepend to each error message written to the \c out buffer */ - parser_test_error_bits_t detect_errors(const wchar_t * buff, wcstring *out = NULL, const wchar_t *prefix = NULL); + parser_test_error_bits_t detect_errors(const wcstring &buff, parse_error_list_t *out_errors = NULL, const wchar_t *prefix = NULL); parser_test_error_bits_t detect_errors2(const wchar_t * buff, wcstring *out = NULL, const wchar_t *prefix = NULL); /** |