aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-05-22 05:25:24 +1000
committerGravatar axel <axel@liljencrantz.se>2006-05-22 05:25:24 +1000
commit1c2cbb00bcb6fb31d509019b035a0828c940bf6e (patch)
tree083d5ae8d15fef1e9ea04bc7abd3385b83ee906e /parser.h
parentbbf2a3836fa10b9539a5d8d0bbd143349f2c67e4 (diff)
Major update to the ahead-of-time syntax checker
darcs-hash:20060521192524-ac50b-48713f826558e66ef21046d1bb779623cc2fd97a.gz
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/parser.h b/parser.h
index 028788d0..944e1d3f 100644
--- a/parser.h
+++ b/parser.h
@@ -315,10 +315,20 @@ const wchar_t *parser_get_block_desc( int block );
/**
- Test if the specified string can be parsed, or if more bytes need to be read first.
- The result has the first bit set if the string contains errors, and the second bit is set if the string contains an unclosed block.
+ Test if the specified string can be parsed, or if more bytes need
+ to be read first. The result has the first bit set if the string
+ contains errors, and the second bit is set if the string contains
+ an unclosed block.
*/
-int parser_test( wchar_t * buff, int babble );
+int parser_test( const wchar_t * buff, int babble );
+
+/**
+ Test if the specified string can be parsed as an argument list,
+ e.g. sent to eval_args. The result has the first bit set if the
+ string contains errors, and the second bit is set if the string
+ contains an unclosed block.
+*/
+int parser_test_args( const wchar_t * buff, int babble );
/**
Returns the full path of the specified directory. If the \c in is a