aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-06-13 00:12:33 +1000
committerGravatar axel <axel@liljencrantz.se>2006-06-13 00:12:33 +1000
commitd32751df13ba9707afb58eec6159835746bc18e4 (patch)
tree447ff6344786efe1fc6909f9d8b6f0ee7fa61e56 /parser.h
parent038dcca143b8dbcee490868a1486f1ec5409574e (diff)
Use halloc in a few more places, including the highlight code
darcs-hash:20060612141233-ac50b-1c44411dd31cdc31d6ccb226f567c308c4fc0f55.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 ff148171..60428936 100644
--- a/parser.h
+++ b/parser.h
@@ -204,9 +204,10 @@ extern io_data_t *block_io;
Finds the full path of an executable in a newly allocated string.
\param cmd The name of the executable.
+ \param context the halloc context to use for memory allocations
\return 0 if the command can not be found, the path of the command otherwise.
*/
-wchar_t *get_filename( const wchar_t *cmd );
+wchar_t *parser_get_filename( void *context, const wchar_t *cmd );
/**
Evaluate the expressions contained in cmd.
@@ -337,7 +338,7 @@ int parser_test_args( const wchar_t * buff, string_buffer_t *out, const wchar_t
directories i the CDPATH, the full path is returned. If no
directory can be found, 0 is returned.
*/
-wchar_t *parser_cdpath_get( wchar_t *in );
+wchar_t *parser_cdpath_get( void *context, wchar_t *in );
/**
Tell the parser that the specified function may not be run if not