diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-08-01 12:05:09 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-08-01 12:05:09 -0300 |
commit | d8be9a63260134afb7792cbcd614b9640803b233 (patch) | |
tree | 3016bd7289dd4fefce620f133aca73ae8e716070 | |
parent | 95f3eefa5b03df5e14a30e81965a29a8b044f525 (diff) | |
download | lua-d8be9a63260134afb7792cbcd614b9640803b233.tar.gz lua-d8be9a63260134afb7792cbcd614b9640803b233.tar.bz2 lua-d8be9a63260134afb7792cbcd614b9640803b233.zip |
small changes
-rw-r--r-- | luaconf.h | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.54 2005/07/05 14:31:45 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.55 2005/07/11 17:10:35 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 | */ |
@@ -83,6 +83,8 @@ | |||
83 | @* template. | 83 | @* template. |
84 | @@ LUA_EXECDIR in a Windows path is replaced by the executable's | 84 | @@ LUA_EXECDIR in a Windows path is replaced by the executable's |
85 | @* directory. | 85 | @* directory. |
86 | @@ LUA_IGMARK is a mark to ignore all before it when bulding the | ||
87 | @* luaopen_ function name. | ||
86 | ** CHANGE them if for some reason your system cannot use those | 88 | ** CHANGE them if for some reason your system cannot use those |
87 | ** characters. (E.g., if one of those characters is a common character | 89 | ** characters. (E.g., if one of those characters is a common character |
88 | ** in file/directory names.) Probably you do not need to change them. | 90 | ** in file/directory names.) Probably you do not need to change them. |
@@ -90,6 +92,7 @@ | |||
90 | #define LUA_PATHSEP ";" | 92 | #define LUA_PATHSEP ";" |
91 | #define LUA_PATH_MARK "?" | 93 | #define LUA_PATH_MARK "?" |
92 | #define LUA_EXECDIR "!" | 94 | #define LUA_EXECDIR "!" |
95 | #define LUA_IGMARK ":" | ||
93 | 96 | ||
94 | 97 | ||
95 | /* | 98 | /* |
@@ -275,6 +278,7 @@ | |||
275 | #define LUAI_GCMUL 200 /* GC runs 'twice the speed' of memory allocation */ | 278 | #define LUAI_GCMUL 200 /* GC runs 'twice the speed' of memory allocation */ |
276 | 279 | ||
277 | 280 | ||
281 | |||
278 | /* | 282 | /* |
279 | @@ LUA_COMPAT_GETN controls compatibility with old getn behavior. | 283 | @@ LUA_COMPAT_GETN controls compatibility with old getn behavior. |
280 | ** CHANGE it (define it) if you want exact compatibility with the | 284 | ** CHANGE it (define it) if you want exact compatibility with the |
@@ -283,18 +287,11 @@ | |||
283 | #undef LUA_COMPAT_GETN | 287 | #undef LUA_COMPAT_GETN |
284 | 288 | ||
285 | /* | 289 | /* |
286 | @@ LUA_COMPAT_PATH controls compatibility about LUA_PATH. | ||
287 | ** CHANGE it (define it) if you want 'require' to look for global | ||
288 | ** LUA_PATH before checking package.path. | ||
289 | */ | ||
290 | #undef LUA_COMPAT_PATH | ||
291 | |||
292 | /* | ||
293 | @@ LUA_COMPAT_LOADLIB controls compatibility about global loadlib. | 290 | @@ LUA_COMPAT_LOADLIB controls compatibility about global loadlib. |
294 | ** CHANGE it to undefined as soon as you do not need a global 'loadlib' | 291 | ** CHANGE it to undefined as soon as you do not need a global 'loadlib' |
295 | ** function (the function is still available as 'package.loadlib'). | 292 | ** function (the function is still available as 'package.loadlib'). |
296 | */ | 293 | */ |
297 | #define LUA_COMPAT_LOADLIB | 294 | #undef LUA_COMPAT_LOADLIB |
298 | 295 | ||
299 | /* | 296 | /* |
300 | @@ LUA_COMPAT_VARARG controls compatibility with old vararg feature. | 297 | @@ LUA_COMPAT_VARARG controls compatibility with old vararg feature. |
@@ -323,7 +320,7 @@ | |||
323 | ** CHANGE it to undefined as soon as your programs use 'string.find' only | 320 | ** CHANGE it to undefined as soon as your programs use 'string.find' only |
324 | ** to find patterns. | 321 | ** to find patterns. |
325 | */ | 322 | */ |
326 | /*#define LUA_COMPAT_FIND*/ | 323 | #define LUA_COMPAT_FIND |
327 | 324 | ||
328 | /* | 325 | /* |
329 | @@ LUA_COMPAT_GFIND controls compatibility with old 'string.gfind' name. | 326 | @@ LUA_COMPAT_GFIND controls compatibility with old 'string.gfind' name. |
@@ -332,6 +329,8 @@ | |||
332 | */ | 329 | */ |
333 | #define LUA_COMPAT_GFIND | 330 | #define LUA_COMPAT_GFIND |
334 | 331 | ||
332 | |||
333 | |||
335 | /* | 334 | /* |
336 | @@ luai_apicheck is the assert macro used by the Lua-C API. | 335 | @@ luai_apicheck is the assert macro used by the Lua-C API. |
337 | ** CHANGE luai_apicheck if you want Lua to perform some checks in the | 336 | ** CHANGE luai_apicheck if you want Lua to perform some checks in the |
@@ -476,7 +475,7 @@ | |||
476 | #if !defined(LUA_ANSI) && (defined(__i386) || defined (_M_IX86)) | 475 | #if !defined(LUA_ANSI) && (defined(__i386) || defined (_M_IX86)) |
477 | union luai_Cast { double l_d; long l_l; }; | 476 | union luai_Cast { double l_d; long l_l; }; |
478 | #define lua_number2int(i,d) \ | 477 | #define lua_number2int(i,d) \ |
479 | { union luai_Cast u; u.l_d = d + 6755399441055744.0; (i) = u.l_l; } | 478 | { volatile union luai_Cast u; u.l_d = (d) + 6755399441055744.0; (i) = u.l_l; } |
480 | #define lua_number2integer(i,n) lua_number2int(i, n) | 479 | #define lua_number2integer(i,n) lua_number2int(i, n) |
481 | 480 | ||
482 | /* this option always works, but may be slow */ | 481 | /* this option always works, but may be slow */ |