Commit e035685f by Vicent Marti

Revert "Properly export all external symbols in Win32"

It is not a good idea to export these internal symbols now that they are
not required to run the unit tests.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
parent e7379f33
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* - GIT_SUCCESS on a successful delta unpack. * - GIT_SUCCESS on a successful delta unpack.
* - GIT_ERROR if the delta is corrupt or doesn't match the base. * - GIT_ERROR if the delta is corrupt or doesn't match the base.
*/ */
GIT_EXTERN(int) git__delta_apply( extern int git__delta_apply(
git_rawobj *out, git_rawobj *out,
const unsigned char *base, const unsigned char *base,
size_t base_len, size_t base_len,
......
...@@ -22,10 +22,10 @@ typedef struct { ...@@ -22,10 +22,10 @@ typedef struct {
int first; int first;
} git__DIR; } git__DIR;
GIT_EXTERN(git__DIR *) git__opendir(const char *); extern git__DIR *git__opendir(const char *);
GIT_EXTERN(struct git__dirent *) git__readdir(git__DIR *); extern struct git__dirent *git__readdir(git__DIR *);
GIT_EXTERN(void) git__rewinddir(git__DIR *); extern void git__rewinddir(git__DIR *);
GIT_EXTERN(int) git__closedir(git__DIR *); extern int git__closedir(git__DIR *);
# ifndef GIT__WIN32_NO_WRAP_DIR # ifndef GIT__WIN32_NO_WRAP_DIR
# define dirent git__dirent # define dirent git__dirent
......
...@@ -27,9 +27,9 @@ GIT_INLINE(int) git__mkdir(const char *path, int GIT_UNUSED(mode)) ...@@ -27,9 +27,9 @@ GIT_INLINE(int) git__mkdir(const char *path, int GIT_UNUSED(mode))
return mkdir(path); return mkdir(path);
} }
GIT_EXTERN(int) git__unlink(const char *path); extern int git__unlink(const char *path);
GIT_EXTERN(int) git__mkstemp(char *template); extern int git__mkstemp(char *template);
GIT_EXTERN(int) git__fsync(int fd); extern int git__fsync(int fd);
# ifndef GIT__WIN32_NO_HIDE_FILEOPS # ifndef GIT__WIN32_NO_HIDE_FILEOPS
# define unlink(p) git__unlink(p) # define unlink(p) git__unlink(p)
...@@ -54,21 +54,21 @@ typedef struct { /* file io buffer */ ...@@ -54,21 +54,21 @@ typedef struct { /* file io buffer */
size_t len; /* data length */ size_t len; /* data length */
} gitfo_buf; } gitfo_buf;
GIT_EXTERN(int) gitfo_exists(const char *path); extern int gitfo_exists(const char *path);
GIT_EXTERN(int) gitfo_open(const char *path, int flags); extern int gitfo_open(const char *path, int flags);
GIT_EXTERN(int) gitfo_creat(const char *path, int mode); extern int gitfo_creat(const char *path, int mode);
GIT_EXTERN(int) gitfo_isdir(const char *path); extern int gitfo_isdir(const char *path);
GIT_EXTERN(int) gitfo_mkdir_recurs(const char *path, int mode); extern int gitfo_mkdir_recurs(const char *path, int mode);
#define gitfo_close(fd) close(fd) #define gitfo_close(fd) close(fd)
GIT_EXTERN(int) gitfo_read(git_file fd, void *buf, size_t cnt); extern int gitfo_read(git_file fd, void *buf, size_t cnt);
GIT_EXTERN(int) gitfo_write(git_file fd, void *buf, size_t cnt); extern int gitfo_write(git_file fd, void *buf, size_t cnt);
#define gitfo_lseek(f,n,w) lseek(f, n, w) #define gitfo_lseek(f,n,w) lseek(f, n, w)
GIT_EXTERN(off_t) gitfo_size(git_file fd); extern off_t gitfo_size(git_file fd);
GIT_EXTERN(int) gitfo_read_file(gitfo_buf *obj, const char *path); extern int gitfo_read_file(gitfo_buf *obj, const char *path);
GIT_EXTERN(void) gitfo_free_buf(gitfo_buf *obj); extern void gitfo_free_buf(gitfo_buf *obj);
GIT_EXTERN(int) gitfo_move_file(char *from, char *to); extern int gitfo_move_file(char *from, char *to);
#define gitfo_stat(p,b) stat(p, b) #define gitfo_stat(p,b) stat(p, b)
#define gitfo_fstat(f,b) fstat(f, b) #define gitfo_fstat(f,b) fstat(f, b)
...@@ -97,7 +97,7 @@ GIT_EXTERN(int) gitfo_move_file(char *from, char *to); ...@@ -97,7 +97,7 @@ GIT_EXTERN(int) gitfo_move_file(char *from, char *to);
* - GIT_SUCCESS on success; * - GIT_SUCCESS on success;
* - GIT_EOSERR on an unspecified OS related error. * - GIT_EOSERR on an unspecified OS related error.
*/ */
GIT_EXTERN(int) gitfo_map_ro( extern int gitfo_map_ro(
git_map *out, git_map *out,
git_file fd, git_file fd,
off_t begin, off_t begin,
...@@ -107,7 +107,7 @@ GIT_EXTERN(int) gitfo_map_ro( ...@@ -107,7 +107,7 @@ GIT_EXTERN(int) gitfo_map_ro(
* Release the memory associated with a previous memory mapping. * Release the memory associated with a previous memory mapping.
* @param map the mapping description previously configured. * @param map the mapping description previously configured.
*/ */
GIT_EXTERN(void) gitfo_free_map(git_map *map); extern void gitfo_free_map(git_map *map);
/** /**
* Walk each directory entry, except '.' and '..', calling fn(state). * Walk each directory entry, except '.' and '..', calling fn(state).
...@@ -120,15 +120,15 @@ GIT_EXTERN(void) gitfo_free_map(git_map *map); ...@@ -120,15 +120,15 @@ GIT_EXTERN(void) gitfo_free_map(git_map *map);
* may modify the pathbuf, but only by appending new text. * may modify the pathbuf, but only by appending new text.
* @param state to pass to fn as the first arg. * @param state to pass to fn as the first arg.
*/ */
GIT_EXTERN(int) gitfo_dirent( extern int gitfo_dirent(
char *pathbuf, char *pathbuf,
size_t pathmax, size_t pathmax,
int (*fn)(void *, char *), int (*fn)(void *, char *),
void *state); void *state);
GIT_EXTERN(gitfo_cache *) gitfo_enable_caching(git_file fd, size_t cache_size); extern gitfo_cache *gitfo_enable_caching(git_file fd, size_t cache_size);
GIT_EXTERN(int) gitfo_write_cached(gitfo_cache *ioc, void *buf, size_t len); extern int gitfo_write_cached(gitfo_cache *ioc, void *buf, size_t len);
GIT_EXTERN(int) gitfo_flush_cached(gitfo_cache *ioc); extern int gitfo_flush_cached(gitfo_cache *ioc);
GIT_EXTERN(int) gitfo_close_cached(gitfo_cache *ioc); extern int gitfo_close_cached(gitfo_cache *ioc);
#endif /* INCLUDE_fileops_h__ */ #endif /* INCLUDE_fileops_h__ */
...@@ -25,7 +25,7 @@ typedef struct { /* memory mapped buffer */ ...@@ -25,7 +25,7 @@ typedef struct { /* memory mapped buffer */
#endif #endif
} git_map; } git_map;
GIT_EXTERN(int) git__mmap(git_map *out, size_t len, int prot, int flags, int fd, off_t offset); extern int git__mmap(git_map *out, size_t len, int prot, int flags, int fd, off_t offset);
GIT_EXTERN(int) git__munmap(git_map *map); extern int git__munmap(git_map *map);
#endif /* INCLUDE_map_h__ */ #endif /* INCLUDE_map_h__ */
...@@ -84,6 +84,6 @@ typedef struct { int counter; } git_refcnt; ...@@ -84,6 +84,6 @@ typedef struct { int counter; } git_refcnt;
#endif #endif
GIT_EXTERN(int) git_online_cpus(void); extern int git_online_cpus(void);
#endif /* INCLUDE_thread_utils_h__ */ #endif /* INCLUDE_thread_utils_h__ */
...@@ -14,15 +14,15 @@ ...@@ -14,15 +14,15 @@
#define git__calloc calloc #define git__calloc calloc
#define git__strdup strdup #define git__strdup strdup
GIT_EXTERN(int) git__fmt(char *, size_t, const char *, ...) extern int git__fmt(char *, size_t, const char *, ...)
GIT_FORMAT_PRINTF(3, 4); GIT_FORMAT_PRINTF(3, 4);
GIT_EXTERN(int) git__prefixcmp(const char *str, const char *prefix); extern int git__prefixcmp(const char *str, const char *prefix);
GIT_EXTERN(int) git__suffixcmp(const char *str, const char *suffix); extern int git__suffixcmp(const char *str, const char *suffix);
GIT_EXTERN(int) git__dirname(char *dir, size_t n, char *path); extern int git__dirname(char *dir, size_t n, char *path);
GIT_EXTERN(int) git__basename(char *base, size_t n, char *path); extern int git__basename(char *base, size_t n, char *path);
GIT_EXTERN(void) git__hexdump(const char *buffer, size_t n); extern void git__hexdump(const char *buffer, size_t n);
/** @return true if p fits into the range of a size_t */ /** @return true if p fits into the range of a size_t */
GIT_INLINE(int) git__is_sizet(off_t p) GIT_INLINE(int) git__is_sizet(off_t p)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment