diff options
author | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-02-19 22:55:15 +0530 |
---|---|---|
committer | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-02-19 22:55:15 +0530 |
commit | 74a7303c2339eee146fd436849c61fe1bf506e30 (patch) | |
tree | 321894506b06fddbabfabfb397e535d64ca30e31 /parser.cpp | |
parent | d8a99917386146f47fc178c80b1d07f9e94aa121 (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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |