aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-12-12 18:18:07 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-12-12 18:18:07 -0800
commit5cf59de6763a0000fdc87f0101ca78bd137dffcc (patch)
treeb9700e9650a4a06af91ec24dad0c621f8381c3d5 /parser.h
parente25d49b80b0668b55a58e1445aa047a68a1043d3 (diff)
Finish rewriting detect_errors to use new parser. All tests now pass (!)
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/parser.h b/parser.h
index b2fbfe13..fb3efad8 100644
--- a/parser.h
+++ b/parser.h
@@ -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);
/**