diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-03-24 14:01:39 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-03-24 14:17:40 +0100 |
commit | 0ecf7e3a2d3bf4c8062ebf1d462a16d716a37352 (patch) | |
tree | bdd88851fad1197bc0965647a8525e0fb86b1841 | |
parent | 7ae41442088a4b1b1cd324b683defd87998ba75c (diff) | |
download | rneovim-0ecf7e3a2d3bf4c8062ebf1d462a16d716a37352.tar.gz rneovim-0ecf7e3a2d3bf4c8062ebf1d462a16d716a37352.tar.bz2 rneovim-0ecf7e3a2d3bf4c8062ebf1d462a16d716a37352.zip |
refactor/rename: path_to_absolute()
-rw-r--r-- | src/nvim/buffer.c | 4 | ||||
-rw-r--r-- | src/nvim/path.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 3958fb05e9..0cd6f628b5 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -2683,7 +2683,7 @@ void buflist_altfpos(win_T *win) } /// Check that "ffname" is not the same file as current file. -/// Fname must have a full path (expanded by path_get_absolute_path()). +/// Fname must have a full path (expanded by path_to_absolute()). /// /// @param ffname full path name to check bool otherfile(char_u *ffname) @@ -2693,7 +2693,7 @@ bool otherfile(char_u *ffname) } /// Check that "ffname" is not the same file as the file loaded in "buf". -/// Fname must have a full path (expanded by path_get_absolute_path()). +/// Fname must have a full path (expanded by path_to_absolute()). /// /// @param buf buffer to check /// @param ffname full path name to check diff --git a/src/nvim/path.c b/src/nvim/path.c index a1f9b2a0cc..168d835a66 100644 --- a/src/nvim/path.c +++ b/src/nvim/path.c @@ -1699,7 +1699,7 @@ int vim_FullName(const char *fname, char *buf, size_t len, bool force) return OK; } - int rv = path_get_absolute_path((char_u *)fname, (char_u *)buf, len, force); + int rv = path_to_absolute((char_u *)fname, (char_u *)buf, len, force); if (rv == FAIL) { xstrlcpy(buf, fname, len); // something failed; use the filename } @@ -2189,8 +2189,8 @@ int append_path(char *path, const char *to_append, size_t max_len) /// @param force also expand when "fname" is already absolute. /// /// @return FAIL for failure, OK for success. -static int path_get_absolute_path(const char_u *fname, char_u *buf, - size_t len, int force) +static int path_to_absolute(const char_u *fname, char_u *buf, size_t len, + int force) { char_u *p; *buf = NUL; |