diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-30 02:23:58 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-30 02:23:58 -0800 |
commit | 79e0405f6a6e56c2430d5d74b6c150d0b5d0e2fe (patch) | |
tree | 913c2d75ae2937ad4a4cb87d6a1e10ad25626593 /expand.h | |
parent | 316f81119f24471882f2d394cd332bcc1312da4d (diff) |
Yet more un-hallocing
Diffstat (limited to 'expand.h')
-rw-r--r-- | expand.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -165,7 +165,10 @@ __warn_unused int expand_string2( const wcstring &input, std::vector<completion_ \param flag Specifies if any expansion pass should be skipped. Legal values are any combination of EXPAND_SKIP_CMDSUBST EXPAND_SKIP_VARIABLES and EXPAND_SKIP_WILDCARDS \return The expanded parameter, or 0 on failiure */ -wchar_t *expand_one( void *context, wchar_t *in, int flag ); +wchar_t *expand_one( void *context, const wchar_t *in, int flag ); + +/** expand_one for a wcstring. Modifies the string in-place, returning true on success and false on failure */ +bool expand_one( wcstring &inout_str, int flag ); /** Convert the variable value to a human readable form, i.e. escape things, handle arrays, etc. Suitable for pretty-printing. The result must be free'd! |