summaryrefslogtreecommitdiff
path: root/src/fileops.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-12-23 00:44:41 +0200
committerVicent Marti <tanoku@gmail.com>2010-12-23 00:44:41 +0200
commite035685f272579a8620741aaad521540712c0725 (patch)
tree2a4fec1eece77df75aca4b1b54e96c286af5ddd6 /src/fileops.h
parente7379f338474fad9318faffe5d0b6000ff3e1b30 (diff)
downloadlibgit2-e035685f272579a8620741aaad521540712c0725.tar.gz
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>
Diffstat (limited to 'src/fileops.h')
-rw-r--r--src/fileops.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/fileops.h b/src/fileops.h
index b90deddda..6656cdf43 100644
--- a/src/fileops.h
+++ b/src/fileops.h
@@ -27,9 +27,9 @@ GIT_INLINE(int) git__mkdir(const char *path, int GIT_UNUSED(mode))
return mkdir(path);
}
-GIT_EXTERN(int) git__unlink(const char *path);
-GIT_EXTERN(int) git__mkstemp(char *template);
-GIT_EXTERN(int) git__fsync(int fd);
+extern int git__unlink(const char *path);
+extern int git__mkstemp(char *template);
+extern int git__fsync(int fd);
# ifndef GIT__WIN32_NO_HIDE_FILEOPS
# define unlink(p) git__unlink(p)
@@ -54,21 +54,21 @@ typedef struct { /* file io buffer */
size_t len; /* data length */
} gitfo_buf;
-GIT_EXTERN(int) gitfo_exists(const char *path);
-GIT_EXTERN(int) gitfo_open(const char *path, int flags);
-GIT_EXTERN(int) gitfo_creat(const char *path, int mode);
-GIT_EXTERN(int) gitfo_isdir(const char *path);
-GIT_EXTERN(int) gitfo_mkdir_recurs(const char *path, int mode);
+extern int gitfo_exists(const char *path);
+extern int gitfo_open(const char *path, int flags);
+extern int gitfo_creat(const char *path, int mode);
+extern int gitfo_isdir(const char *path);
+extern int gitfo_mkdir_recurs(const char *path, int mode);
#define gitfo_close(fd) close(fd)
-GIT_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_read(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)
-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);
-GIT_EXTERN(void) gitfo_free_buf(gitfo_buf *obj);
-GIT_EXTERN(int) gitfo_move_file(char *from, char *to);
+extern int gitfo_read_file(gitfo_buf *obj, const char *path);
+extern void gitfo_free_buf(gitfo_buf *obj);
+extern int gitfo_move_file(char *from, char *to);
#define gitfo_stat(p,b) stat(p, b)
#define gitfo_fstat(f,b) fstat(f, b)
@@ -97,7 +97,7 @@ GIT_EXTERN(int) gitfo_move_file(char *from, char *to);
* - GIT_SUCCESS on success;
* - GIT_EOSERR on an unspecified OS related error.
*/
-GIT_EXTERN(int) gitfo_map_ro(
+extern int gitfo_map_ro(
git_map *out,
git_file fd,
off_t begin,
@@ -107,7 +107,7 @@ GIT_EXTERN(int) gitfo_map_ro(
* Release the memory associated with a previous memory mapping.
* @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).
@@ -120,15 +120,15 @@ GIT_EXTERN(void) gitfo_free_map(git_map *map);
* may modify the pathbuf, but only by appending new text.
* @param state to pass to fn as the first arg.
*/
-GIT_EXTERN(int) gitfo_dirent(
+extern int gitfo_dirent(
char *pathbuf,
size_t pathmax,
int (*fn)(void *, char *),
void *state);
-GIT_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);
-GIT_EXTERN(int) gitfo_flush_cached(gitfo_cache *ioc);
-GIT_EXTERN(int) gitfo_close_cached(gitfo_cache *ioc);
+extern gitfo_cache *gitfo_enable_caching(git_file fd, size_t cache_size);
+extern int gitfo_write_cached(gitfo_cache *ioc, void *buf, size_t len);
+extern int gitfo_flush_cached(gitfo_cache *ioc);
+extern int gitfo_close_cached(gitfo_cache *ioc);
#endif /* INCLUDE_fileops_h__ */