Change usages of static inline to GIT_INLINE

Signed-off-by: Julio Espinoza-Sokal <julioes@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Julio Espinoza-Sokal 2008-12-20 20:47:41 -05:00 committed by Shawn O. Pearce
parent 6f6a17db05
commit 213e720ca8
3 changed files with 4 additions and 4 deletions

View File

@ -4,13 +4,13 @@
#include <stdlib.h> #include <stdlib.h>
/* convenience functions */ /* convenience functions */
static inline int git_int_error(int code) GIT_INLINE(int) git_int_error(int code)
{ {
git_errno = code; git_errno = code;
return code; return code;
} }
static inline void *git_ptr_error(int code) GIT_INLINE(void) *git_ptr_error(int code)
{ {
git_errno = code; git_errno = code;
return NULL; return NULL;

View File

@ -113,7 +113,7 @@ gitfo_cache *gitfo_enable_caching(git_file fd, size_t cache_size)
return ioc; 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); memcpy(ioc->cache + ioc->pos, buf, len);
ioc->pos += len; ioc->pos += len;

View File

@ -60,7 +60,7 @@ int git_oid_mkstr(git_oid *out, const char *str)
return GIT_SUCCESS; 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 >> 4];
*str++ = to_hex[val & 0xf]; *str++ = to_hex[val & 0xf];