aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.cpp
diff options
context:
space:
mode:
authorGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-02-19 22:55:15 +0530
committerGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-02-19 22:55:15 +0530
commit74a7303c2339eee146fd436849c61fe1bf506e30 (patch)
tree321894506b06fddbabfabfb397e535d64ca30e31 /parser.cpp
parentd8a99917386146f47fc178c80b1d07f9e94aa121 (diff)
Modified functions in function.h/.cpp to use wcstring instead wchar_t*, other files also modified to use wcstring.
Diffstat (limited to 'parser.cpp')
-rw-r--r--parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser.cpp b/parser.cpp
index 2453a37b..54e52ab5 100644
--- a/parser.cpp
+++ b/parser.cpp
@@ -1031,7 +1031,7 @@ const wchar_t *parser_t::current_filename() const
if( b->type == FUNCTION_CALL )
{
wcstring function_call_name = b->state1<wcstring>();
- return function_get_definition_file(function_call_name.c_str());
+ return function_get_definition_file(function_call_name);
}
b=b->outer;
}
@@ -1862,7 +1862,7 @@ int parser_t::parse_job( process_t *p,
nxt_forbidden = (forbid == nxt);
}
- if( !nxt_forbidden && has_nxt && function_exists( nxt.c_str() ) )
+ if( !nxt_forbidden && has_nxt && function_exists( nxt ) )
{
/*
Check if we have reached the maximum recursion depth