diff options
author | pixel <pixel> | 2004-11-27 21:35:19 +0000 |
---|---|---|
committer | pixel <pixel> | 2004-11-27 21:35:19 +0000 |
commit | 3f7070bf177b743be0eeb8c404a620f72eb15ab6 (patch) | |
tree | a22fa7d0a1fd362bfc858f8e7e2062fdd5b252ce /lib/lua/src/LuaLib/ldirlib.c | |
parent | 6ba597d46a93aaa9a17eb8a9fe8f3bcdedf686c0 (diff) |
Large dos2unix commit...
Diffstat (limited to 'lib/lua/src/LuaLib/ldirlib.c')
-rw-r--r-- | lib/lua/src/LuaLib/ldirlib.c | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/lib/lua/src/LuaLib/ldirlib.c b/lib/lua/src/LuaLib/ldirlib.c index b6760da..4e221b4 100644 --- a/lib/lua/src/LuaLib/ldirlib.c +++ b/lib/lua/src/LuaLib/ldirlib.c @@ -1,19 +1,14 @@ -#include <stdlib.h> +#include <stdlib.h>
#include <dirent.h>
-#include <errno.h> -#ifdef _WIN32 -#include <sys/stat.h> -#else -#include <sys/stat.h> -#include <sys/type.h> -#endif - -#define ldirlib_c - -#include "lua.h" - -#include "lauxlib.h" -#include "lualib.h" +#include <errno.h>
+#include <sys/stat.h>
+
+#define ldirlib_c
+
+#include "lua.h"
+
+#include "lauxlib.h"
+#include "lualib.h"
/* forward declaration for the iterator function */
static int dir_iter (lua_State *L);
@@ -73,13 +68,13 @@ static int dir_gc (lua_State *L) { if (d) closedir(d);
return 0;
}
- -static const luaL_reg dirlib[] = { - {NULL, NULL} +
+static const luaL_reg dirlib[] = {
+ {NULL, NULL}
};
int luaopen_dir (lua_State *L) {
- luaL_openlib(L, LUA_DIRLIBNAME, dirlib, 0); + luaL_openlib(L, LUA_DIRLIBNAME, dirlib, 0);
luaL_newmetatable(L, "LuaBook.dir");
/* set its __gc field */
|