Make some S_* functions static
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/296f3a94 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/296f3a94 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/296f3a94 Branch: refs/heads/master Commit: 296f3a94d5123fb1e797f5c149738f85f733f523 Parents: b910060 Author: Nick Wellnhofer <[email protected]> Authored: Tue Dec 4 19:34:27 2012 +0100 Committer: Nick Wellnhofer <[email protected]> Committed: Tue Dec 4 19:34:27 2012 +0100 ---------------------------------------------------------------------- core/Lucy/Store/FSFolder.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/296f3a94/core/Lucy/Store/FSFolder.c ---------------------------------------------------------------------- diff --git a/core/Lucy/Store/FSFolder.c b/core/Lucy/Store/FSFolder.c index fd27f9d..064f3fe 100644 --- a/core/Lucy/Store/FSFolder.c +++ b/core/Lucy/Store/FSFolder.c @@ -55,15 +55,15 @@ static bool S_dir_ok(const CharBuf *path); // Create a directory, or set Err_error and return false. -bool +static bool S_create_dir(const CharBuf *path); // Return true unless the supplied path contains a slash. -bool +static bool S_is_local_entry(const CharBuf *path); // Create a hard link. -bool +static bool S_hard_link(CharBuf *from_path, CharBuf *to_path); FSFolder* @@ -265,7 +265,7 @@ S_dir_ok(const CharBuf *path) { return false; } -bool +static bool S_create_dir(const CharBuf *path) { if (-1 == chy_makedir((char*)CB_Get_Ptr8(path), 0777)) { Err_set_error(Err_new(CB_newf("Couldn't create directory '%o': %s", @@ -275,7 +275,7 @@ S_create_dir(const CharBuf *path) { return true; } -bool +static bool S_is_local_entry(const CharBuf *path) { ZombieCharBuf *scratch = ZCB_WRAP(path); uint32_t code_point; @@ -296,7 +296,7 @@ S_is_local_entry(const CharBuf *path) { #include <windows.h> -bool +static bool S_hard_link(CharBuf *from_path, CharBuf *to_path) { char *from8 = (char*)CB_Get_Ptr8(from_path); char *to8 = (char*)CB_Get_Ptr8(to_path); @@ -315,7 +315,7 @@ S_hard_link(CharBuf *from_path, CharBuf *to_path) { #elif (defined(CHY_HAS_UNISTD_H)) -bool +static bool S_hard_link(CharBuf *from_path, CharBuf *to_path) { char *from8 = (char*)CB_Get_Ptr8(from_path); char *to8 = (char*)CB_Get_Ptr8(to_path);
