aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-12-08 13:41:12 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-12-08 13:41:12 -0800
commitdd0cc5ed9fa60f4bae5530d1708a2974eb0c454f (patch)
tree05f9a1c63c48f18ca688e6485d64afa0018b1013 /parser.h
parenta23441109deebe703a436968294966abbca64cb6 (diff)
Rewriting indenting functionality to use new parser
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/parser.h b/parser.h
index 8b43b83f..076bacef 100644
--- a/parser.h
+++ b/parser.h
@@ -13,8 +13,11 @@
#include "function.h"
#include <vector>
-#define PARSER_TEST_ERROR 1
-#define PARSER_TEST_INCOMPLETE 2
+enum {
+ PARSER_TEST_ERROR = 1,
+ PARSER_TEST_INCOMPLETE = 2
+};
+typedef unsigned int parser_test_error_bits_t;
/**
event_blockage_t represents a block on events of the specified type
@@ -484,7 +487,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
*/
- int test(const wchar_t * buff, int *block_level = NULL, wcstring *out = NULL, const wchar_t *prefix = NULL);
+ parser_test_error_bits_t test(const wchar_t * buff, int *block_level = NULL, wcstring *out = NULL, const wchar_t *prefix = NULL);
/**
Test if the specified string can be parsed as an argument list,