indent -kr -nut -i2 src/lfs.c src/lfs.h

This commit is contained in:
Hisham Muhammad
2020-04-21 18:58:59 -03:00
parent 4f7e1b5a49
commit 3e879ffba1
2 changed files with 682 additions and 547 deletions

1202
src/lfs.c

File diff suppressed because it is too large Load Diff

View File

@@ -1,33 +1,34 @@
/* /*
** LuaFileSystem ** LuaFileSystem
** Copyright Kepler Project 2003 - 2017 (http://keplerproject.github.io/luafilesystem) ** Copyright Kepler Project 2003 - 2020
** (http://keplerproject.github.io/luafilesystem)
*/ */
/* Define 'chdir' for systems that do not implement it */ /* Define 'chdir' for systems that do not implement it */
#ifdef NO_CHDIR #ifdef NO_CHDIR
#define chdir(p) (-1) #define chdir(p) (-1)
#define chdir_error "Function 'chdir' not provided by system" #define chdir_error "Function 'chdir' not provided by system"
#else #else
#define chdir_error strerror(errno) #define chdir_error strerror(errno)
#endif #endif
#ifdef _WIN32 #ifdef _WIN32
#define chdir(p) (_chdir(p)) #define chdir(p) (_chdir(p))
#define getcwd(d, s) (_getcwd(d, s)) #define getcwd(d, s) (_getcwd(d, s))
#define rmdir(p) (_rmdir(p)) #define rmdir(p) (_rmdir(p))
#define LFS_EXPORT __declspec (dllexport) #define LFS_EXPORT __declspec (dllexport)
#ifndef fileno #ifndef fileno
#define fileno(f) (_fileno(f)) #define fileno(f) (_fileno(f))
#endif #endif
#else #else
#define LFS_EXPORT #define LFS_EXPORT
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
LFS_EXPORT int luaopen_lfs (lua_State *L); LFS_EXPORT int luaopen_lfs(lua_State * L);
#ifdef __cplusplus #ifdef __cplusplus
} }