diff options
author | ZyX <kp-pav@yandex.ru> | 2015-07-26 01:20:13 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2015-10-08 22:00:14 +0300 |
commit | 931539d108d397b88da618585861dce854018af2 (patch) | |
tree | 8cb2b8e94e0dd6a6061ac260ace7c16290365a7d | |
parent | 8dafa533dbd505a6a2cf2e009bf440e2bde342f4 (diff) | |
download | rneovim-931539d108d397b88da618585861dce854018af2.tar.gz rneovim-931539d108d397b88da618585861dce854018af2.tar.bz2 rneovim-931539d108d397b88da618585861dce854018af2.zip |
shada: Do not export shada_read_file
Unlike some wrapper functions it is not used actually, so no need to export it.
Also removed ShadaPosition typedef which was not used.
-rw-r--r-- | src/nvim/shada.c | 11 | ||||
-rw-r--r-- | src/nvim/shada.h | 11 |
2 files changed, 10 insertions, 12 deletions
diff --git a/src/nvim/shada.c b/src/nvim/shada.c index d64b8c489d..7ca4edc783 100644 --- a/src/nvim/shada.c +++ b/src/nvim/shada.c @@ -151,6 +151,15 @@ KHASH_SET_INIT_STR(strset) /// Common prefix for all “system” errors #define SERR "E886: " +/// Flags for shada_read_file and children +enum { + kShaDaWantInfo = 1, ///< Load non-mark information + kShaDaWantMarks = 2, ///< Load local file marks and change list + kShaDaForceit = 4, ///< Overwrite info already read + kShaDaGetOldfiles = 8, ///< Load v:oldfiles. + kShaDaMissingError = 16, ///< Error out when os_open returns -ENOENT. +}; + /// Possible ShaDa entry types /// /// @warning Enum values are part of the API and must not be altered. @@ -776,7 +785,7 @@ static bool shada_disabled(void) /// @param[in] flags Flags, see kShaDa enum values in shada.h. /// /// @return FAIL if reading failed for some reason and OK otherwise. -int shada_read_file(const char *const file, const int flags) +static int shada_read_file(const char *const file, const int flags) FUNC_ATTR_WARN_UNUSED_RESULT { if (shada_disabled()) { diff --git a/src/nvim/shada.h b/src/nvim/shada.h index 438eb9c07f..2b0a6ff6be 100644 --- a/src/nvim/shada.h +++ b/src/nvim/shada.h @@ -1,17 +1,6 @@ #ifndef NVIM_SHADA_H #define NVIM_SHADA_H -typedef long ShadaPosition; - -/// Flags for shada_read_file and children -enum { - kShaDaWantInfo = 1, ///< Load non-mark information - kShaDaWantMarks = 2, ///< Load local file marks and change list - kShaDaForceit = 4, ///< Overwrite info already read - kShaDaGetOldfiles = 8, ///< Load v:oldfiles. - kShaDaMissingError = 16, ///< Error out when os_open returns -ENOENT. -}; - #ifdef INCLUDE_GENERATED_DECLARATIONS # include "shada.h.generated.h" #endif |