diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-05-07 16:14:18 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-05-07 16:24:51 +0100 |
commit | c56642819eed87431dff3446fe111f7f3eefaa7d (patch) | |
tree | 397126ca4baac425f9c1c44f3d5c56c681e2c4fe /utils/filepath.h | |
parent | c1e2da80dfa62793ea107cf12408c814e268a54b (diff) | |
download | netsurf-c56642819eed87431dff3446fe111f7f3eefaa7d.tar.gz netsurf-c56642819eed87431dff3446fe111f7f3eefaa7d.tar.bz2 |
add file operations table and make all frontends use it.
This rationalises the path construction and basename file
operations. The default implementation is POSIX which works for all
frontends except windows, riscos and amiga which have differeing path
separators and rules.
These implementations are significantly more robust than the previous
nine implementations and also do not use unsafe strncpy or buffers
with arbitrary length limits.
These implementations also carry full documentation comments.
Diffstat (limited to 'utils/filepath.h')
-rw-r--r-- | utils/filepath.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/utils/filepath.h b/utils/filepath.h index 56e9eff74..61b7209cc 100644 --- a/utils/filepath.h +++ b/utils/filepath.h @@ -128,17 +128,6 @@ void filepath_free_strvec(char **pathv); /** - * generate a new filename from a path and leaf. - * - * @param path The base path. - * @param leaf The leaf to add. - * @return The combined path in a new string must be freed by caller - * or NULL on failiure to allocte memory. - */ -char *filepath_append(const char *path, const char *leaf); - - -/** * Ensure that all directory elements needed to store a filename exist. * * @param fname The filename to ensure the path to exists. |