diff options
| -rw-r--r-- | luaconf.h | 15 |
1 files changed, 6 insertions, 9 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.216 2014/10/08 20:24:43 roberto Exp $ | 2 | ** $Id: luaconf.h,v 1.216 2014/10/08 20:32:50 roberto Exp roberto $ |
| 3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -8,9 +8,6 @@ | |||
| 8 | #ifndef lconfig_h | 8 | #ifndef lconfig_h |
| 9 | #define lconfig_h | 9 | #define lconfig_h |
| 10 | 10 | ||
| 11 | #include <limits.h> | ||
| 12 | #include <stddef.h> | ||
| 13 | |||
| 14 | 11 | ||
| 15 | /* | 12 | /* |
| 16 | ** ================================================================== | 13 | ** ================================================================== |
| @@ -73,6 +70,7 @@ | |||
| 73 | #endif | 70 | #endif |
| 74 | 71 | ||
| 75 | #if defined(LUA_WIN) | 72 | #if defined(LUA_WIN) |
| 73 | #define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ANSI C functions */ | ||
| 76 | #define LUA_DL_DLL | 74 | #define LUA_DL_DLL |
| 77 | #define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */ | 75 | #define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */ |
| 78 | #endif | 76 | #endif |
| @@ -113,6 +111,9 @@ | |||
| 113 | 111 | ||
| 114 | 112 | ||
| 115 | 113 | ||
| 114 | #include <limits.h> | ||
| 115 | #include <stddef.h> | ||
| 116 | |||
| 116 | /* | 117 | /* |
| 117 | @@ LUA_PATH_DEFAULT is the default path that Lua uses to look for | 118 | @@ LUA_PATH_DEFAULT is the default path that Lua uses to look for |
| 118 | @@ Lua libraries. | 119 | @@ Lua libraries. |
| @@ -258,14 +259,10 @@ | |||
| 258 | 259 | ||
| 259 | /* | 260 | /* |
| 260 | @@ luai_writestring/luai_writeline define how 'print' prints its results. | 261 | @@ luai_writestring/luai_writeline define how 'print' prints its results. |
| 261 | ** They are only used in libraries and the stand-alone program. (The #if | 262 | ** They are only used in libraries and the stand-alone program. |
| 262 | ** avoids including 'stdio.h' everywhere.) | ||
| 263 | */ | 263 | */ |
| 264 | #if defined(LUA_LIB) || defined(lua_c) | ||
| 265 | #include <stdio.h> | ||
| 266 | #define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout) | 264 | #define luai_writestring(s,l) fwrite((s), sizeof(char), (l), stdout) |
| 267 | #define luai_writeline() (luai_writestring("\n", 1), fflush(stdout)) | 265 | #define luai_writeline() (luai_writestring("\n", 1), fflush(stdout)) |
| 268 | #endif | ||
| 269 | 266 | ||
| 270 | /* | 267 | /* |
| 271 | @@ luai_writestringerror defines how to print error messages. | 268 | @@ luai_writestringerror defines how to print error messages. |
