aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-20 11:24:43 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-20 11:24:43 -0800
commit7e486e3b5c5e1a3a6936322fde487260d3058042 (patch)
tree4be5dc184433a78827f6f5707aae9d40a68e9cda /expand.cpp
parent3d8face1f902bd51146c64f4df57a1de7049fd6d (diff)
More work towards instanced parser
Diffstat (limited to 'expand.cpp')
-rw-r--r--expand.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/expand.cpp b/expand.cpp
index cf0030c3..7ec94ce5 100644
--- a/expand.cpp
+++ b/expand.cpp
@@ -731,7 +731,7 @@ static int expand_pid2( const wcstring &in, int flags, std::vector<wcstring> &ou
}
-void expand_variable_error( const wchar_t *token, int token_pos, int error_pos )
+void expand_variable_error( parser_t &parser, const wchar_t *token, int token_pos, int error_pos )
{
int stop_pos = token_pos+1;
@@ -758,7 +758,7 @@ void expand_variable_error( const wchar_t *token, int token_pos, int error_pos )
if( is_var )
{
- error( SYNTAX_ERROR,
+ parser.error( SYNTAX_ERROR,
error_pos,
COMPLETE_VAR_BRACKET_DESC,
cpy,
@@ -767,7 +767,7 @@ void expand_variable_error( const wchar_t *token, int token_pos, int error_pos )
}
else
{
- error( SYNTAX_ERROR,
+ parser.error( SYNTAX_ERROR,
error_pos,
COMPLETE_VAR_BRACKET_DESC,
L"",
@@ -781,7 +781,7 @@ void expand_variable_error( const wchar_t *token, int token_pos, int error_pos )
case INTERNAL_SEPARATOR:
{
- error( SYNTAX_ERROR,
+ parser.error( SYNTAX_ERROR,
error_pos,
COMPLETE_VAR_PARAN_DESC );
break;
@@ -789,7 +789,7 @@ void expand_variable_error( const wchar_t *token, int token_pos, int error_pos )
case 0:
{
- error( SYNTAX_ERROR,
+ parser.error( SYNTAX_ERROR,
error_pos,
COMPLETE_VAR_NULL_DESC );
break;
@@ -797,7 +797,7 @@ void expand_variable_error( const wchar_t *token, int token_pos, int error_pos )
default:
{
- error( SYNTAX_ERROR,
+ parser.error( SYNTAX_ERROR,
error_pos,
COMPLETE_VAR_DESC,
token[stop_pos] );