aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-12-08 02:06:47 +1000
committerGravatar axel <axel@liljencrantz.se>2005-12-08 02:06:47 +1000
commit4ba2709452430ae594a3ad9d095f4cd48d84d08c (patch)
tree7f8c34e9d8ca087ef82d174b388861e495e35fa6 /parser.h
parent0c877183b92f7d256d9e82ccf32715f939e4ad4e (diff)
Improved error messages
darcs-hash:20051207160647-ac50b-4061540829a108381c20a1a6f3c8fd2d004a9800.gz
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/parser.h b/parser.h
index fc4fbfe7..2a597a1e 100644
--- a/parser.h
+++ b/parser.h
@@ -200,10 +200,11 @@ int eval_args( const wchar_t *line,
Sets the current error
\param ec The new error code
- \param str The new error message
\param p The character offset at which the error occured
+ \param str The printf-style error message filter
*/
-void error( int ec, const wchar_t *str, int p );
+void error( int ec, int p, const wchar_t *str, ... );
+
/**
Tests if the specified commands parameters should be interpreted as another command, which will be true if the command is either 'command', 'exec', 'if', 'while' or 'builtin'.