aboutsummaryrefslogtreecommitdiffhomepage
path: root/expand.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-31 21:30:09 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-31 21:30:09 -0800
commit0b4b6c498d4cac8591dcfc04549acd62305d5008 (patch)
treea8bd71ef0b36a1f265922b98e9e5292b8561d2a4 /expand.h
parent409f70c7f3836457cb39113aec36e2c0622e0a61 (diff)
Migrated off of old variant of expand_one that used halloc
Diffstat (limited to 'expand.h')
-rw-r--r--expand.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/expand.h b/expand.h
index 255b985b..1f188fe1 100644
--- a/expand.h
+++ b/expand.h
@@ -156,18 +156,11 @@ __warn_unused int expand_string2( const wcstring &input, std::vector<completion_
expand_one is identical to expand_string, except it will fail if in
expands to more than one string. This is used for expanding command
names.
-
- If \c context is non-null, the returning string ill be registered
- to be free'd when context is free'd.
- \param context the halloc context to use for automatic deallocation
- \param in The parameter to expand
+ \param inout_str The parameter to expand in-place
\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
+ \return Whether expansion succeded
*/
-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 );
/**