patch [#34103] path_util_cleanups.patch

from Lawrence D'Oliveiro (ldo)

- Better argument name for BLI_cleanup_path and BLI_cleanup_file
- remove redundant BLI_add_slash already done by BLI_cleanup_dir
This commit is contained in:
2013-03-05 04:35:14 +00:00
parent 65d6cecd68
commit 34233e7fd6
3 changed files with 29 additions and 30 deletions

View File

@@ -132,9 +132,9 @@ __attribute__((nonnull(1)))
* converts it to a regular full path.
* Also removes garbage from directory paths, like /../ or double slashes etc
*/
void BLI_cleanup_file(const char *relabase, char *dir); /* removes trailing slash */
void BLI_cleanup_file(const char *relabase, char *path); /* removes trailing slash */
void BLI_cleanup_dir(const char *relabase, char *dir); /* same as above but adds a trailing slash */
void BLI_cleanup_path(const char *relabase, char *dir); /* doesn't touch trailing slash */
void BLI_cleanup_path(const char *relabase, char *path); /* doesn't touch trailing slash */
/* go back one directory */
bool BLI_parent_dir(char *path);