aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-05-02 17:49:38 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-05-02 17:49:38 -0700
commit0748a4d8b6995cc0afc7d59a4b99e640d0e3b4ad (patch)
tree786a11bba62ed0db9b5184fa72f0de2e637030a5 /reader.h
parent3722f91e384a67f8dd2a28826980f1a843adbb61 (diff)
Use a more appropriate type for the reader_test function
Diffstat (limited to 'reader.h')
-rw-r--r--reader.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/reader.h b/reader.h
index 3c82f5d1..744a360e 100644
--- a/reader.h
+++ b/reader.h
@@ -17,6 +17,7 @@
#include "common.h"
#include "complete.h"
#include "highlight.h"
+#include "parse_constants.h"
class parser_t;
class completion_t;
@@ -247,7 +248,7 @@ void reader_set_highlight_function(highlight_function_t);
Specify function for testing if the command buffer contains syntax
errors that must be corrected before returning.
*/
-void reader_set_test_function(int (*f)(const wchar_t *));
+void reader_set_test_function(parser_test_error_bits_t (*f)(const wchar_t *));
/**
Specify string of shell commands to be run in order to generate the
@@ -291,7 +292,7 @@ int reader_exit_forced();
Test if the given shell command contains errors. Uses parser_test
for testing. Suitable for reader_set_test_function().
*/
-int reader_shell_test(const wchar_t *b);
+parser_test_error_bits_t reader_shell_test(const wchar_t *b);
/**
Test whether the interactive reader is in search mode.