diff options
author | liljencrantz <liljencrantz@gmail.com> | 2008-01-14 02:47:47 +1000 |
---|---|---|
committer | liljencrantz <liljencrantz@gmail.com> | 2008-01-14 02:47:47 +1000 |
commit | 87db9517e928c9007c66ed5b23836db2dad2b693 (patch) | |
tree | edfe373687a5afb9ba5360a456e3096d7bf2df85 /path.h | |
parent | ab3502fc8b25469429af25a94306346af590428c (diff) |
Add lots of new code comments.
darcs-hash:20080113164747-75c98-9d0cefd27be7aef7ba60772616d9da7e6bb52912.gz
Diffstat (limited to 'path.h')
-rw-r--r-- | path.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -9,6 +9,9 @@ #ifndef FISH_PATH_H #define FISH_PATH_H +/** + Return value for path_cdpath_get when locatied a rotten symlink + */ #define EROTTEN 1 /** @@ -48,6 +51,13 @@ wchar_t *path_get_path( void *context, const wchar_t *cmd ); */ wchar_t *path_get_cdpath( void *context, wchar_t *in ); +/** + 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. + */ wchar_t *path_make_canonical( void *context, const wchar_t *path ); |