diff options
author | axel <axel@liljencrantz.se> | 2006-02-10 01:50:20 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-02-10 01:50:20 +1000 |
commit | d1c9bca2e9f0eaac2fb8e00e5ed07e8e2906bb02 (patch) | |
tree | 9de2b4fd732398afaebd00c732d8fe41762ac322 /expand.h | |
parent | 49973b85dac4baf843b95ae22ffaed7f41ae43bc (diff) |
Another halloc:ification of fish. Halloc has been extended to allow registering function calls, this has allowed the creation of halloc-handled arraylists, stringbuffers, etc. More job parsing halloc-ification has reduced the error handling code to only a shadow of it's former self
darcs-hash:20060209155020-ac50b-e119c5293ce2368e252cfc01b98ab7c629fdd678.gz
Diffstat (limited to 'expand.h')
-rw-r--r-- | expand.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -130,7 +130,7 @@ enum \param out The list to which the result will be appended. \return One of EXPAND_OK, EXPAND_ERROR, EXPAND_WILDCARD_MATCH and EXPAND_WILDCARD_NO_MATCH */ -int expand_string( wchar_t *in, array_list_t *out, int flag ); +int expand_string( void *context, wchar_t *in, array_list_t *out, int flag ); /** expand_one is identical to expand_string, except it will fail if in @@ -141,14 +141,13 @@ int expand_string( wchar_t *in, array_list_t *out, int flag ); \param flag Specifies if any expansion pass should be skipped. Legal values are any combination of EXPAND_SKIP_SUBSHELL EXPAND_SKIP_VARIABLES and EXPAND_SKIP_WILDCARDS \return The expanded parameter, or 0 on failiure */ -wchar_t *expand_one( wchar_t *in, int flag ); +wchar_t *expand_one( void *context, wchar_t *in, int flag ); /** Convert the variable value to a human readable form, i.e. escape things, handle arrays, etc. Suitable for pretty-printing. */ wchar_t *expand_escape_variable( const wchar_t *in ); - /** Perform tilde expansion and nothing else on the specified string. |