From 213e720ca80207fe1bb48ad95e2c422e17281a9a Mon Sep 17 00:00:00 2001 From: Julio Espinoza-Sokal Date: Sat, 20 Dec 2008 20:47:41 -0500 Subject: [PATCH] Change usages of static inline to GIT_INLINE Signed-off-by: Julio Espinoza-Sokal Signed-off-by: Shawn O. Pearce --- src/errors.h | 4 ++-- src/fileops.c | 2 +- src/oid.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/errors.h b/src/errors.h index 690992508..1137d90e6 100644 --- a/src/errors.h +++ b/src/errors.h @@ -4,13 +4,13 @@ #include /* convenience functions */ -static inline int git_int_error(int code) +GIT_INLINE(int) git_int_error(int code) { git_errno = code; return code; } -static inline void *git_ptr_error(int code) +GIT_INLINE(void) *git_ptr_error(int code) { git_errno = code; return NULL; diff --git a/src/fileops.c b/src/fileops.c index e6e4e0455..1e4ac7e37 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -113,7 +113,7 @@ gitfo_cache *gitfo_enable_caching(git_file fd, size_t cache_size) return ioc; } -static inline void gitfo_add_to_cache(gitfo_cache *ioc, void *buf, size_t len) +GIT_INLINE(void) gitfo_add_to_cache(gitfo_cache *ioc, void *buf, size_t len) { memcpy(ioc->cache + ioc->pos, buf, len); ioc->pos += len; diff --git a/src/oid.c b/src/oid.c index bca03c4e4..8601554dd 100644 --- a/src/oid.c +++ b/src/oid.c @@ -60,7 +60,7 @@ int git_oid_mkstr(git_oid *out, const char *str) return GIT_SUCCESS; } -static inline char *fmt_one(char *str, unsigned int val) +GIT_INLINE(char) *fmt_one(char *str, unsigned int val) { *str++ = to_hex[val >> 4]; *str++ = to_hex[val & 0xf];