aboutsummaryrefslogtreecommitdiffhomepage
path: root/path.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-07 21:23:12 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-07 21:23:12 -0800
commitc0e783eb6e8c12d12c9dfbc62c4d5f820e6df61d (patch)
treea7c1f4a3669bd7e69d10d802942acf888e51cfa1 /path.h
parent399c78fbf74f0495c6b3ffd3871356c7dfdfbb13 (diff)
Excised some halloc
Diffstat (limited to 'path.h')
-rw-r--r--path.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/path.h b/path.h
index aa6143c8..8f63d14e 100644
--- a/path.h
+++ b/path.h
@@ -57,13 +57,10 @@ bool path_can_get_cdpath(const wcstring &in);
bool path_get_cdpath_string(const wcstring &in, wcstring &out, const env_vars &vars);
/**
- Remove doulbe slashes and trailing slashes from a path,
- e.g. transform foo//bar/ into foo/bar.
-
- The returned string is allocated using the specified halloc
- context.
+ Remove double slashes and trailing slashes from a path,
+ e.g. transform foo//bar/ into foo/bar. The string is modified in-place.
*/
-wchar_t *path_make_canonical( void *context, const wchar_t *path );
+void path_make_canonical( wcstring &path );
#endif