diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2007-06-21 10:52:27 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2007-06-21 10:52:27 -0300 |
| commit | 8d3dd04137348b604ec9ebee87df84c8ef5fdced (patch) | |
| tree | 291dcb423b3f288145196334d8121dacfe1fa3fa /luaconf.h | |
| parent | 791d8d858502f34204e0460c73e5eb6d340bcd92 (diff) | |
| download | lua-8d3dd04137348b604ec9ebee87df84c8ef5fdced.tar.gz lua-8d3dd04137348b604ec9ebee87df84c8ef5fdced.tar.bz2 lua-8d3dd04137348b604ec9ebee87df84c8ef5fdced.zip | |
clearing some old compatibility code
Diffstat (limited to 'luaconf.h')
| -rw-r--r-- | luaconf.h | 30 |
1 files changed, 1 insertions, 29 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.87 2007/02/07 17:46:20 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.88 2007/05/03 20:49:29 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 | */ |
| @@ -321,20 +321,6 @@ | |||
| 321 | 321 | ||
| 322 | 322 | ||
| 323 | /* | 323 | /* |
| 324 | @@ LUA_COMPAT_GETN controls compatibility with old getn behavior. | ||
| 325 | ** CHANGE it (define it) if you want exact compatibility with the | ||
| 326 | ** behavior of setn/getn in Lua 5.0. | ||
| 327 | */ | ||
| 328 | #undef LUA_COMPAT_GETN | ||
| 329 | |||
| 330 | /* | ||
| 331 | @@ LUA_COMPAT_LOADLIB controls compatibility about global loadlib. | ||
| 332 | ** CHANGE it to undefined as soon as you do not need a global 'loadlib' | ||
| 333 | ** function (the function is still available as 'package.loadlib'). | ||
| 334 | */ | ||
| 335 | #undef LUA_COMPAT_LOADLIB | ||
| 336 | |||
| 337 | /* | ||
| 338 | @@ LUA_COMPAT_VARARG controls compatibility with old vararg feature. | 324 | @@ LUA_COMPAT_VARARG controls compatibility with old vararg feature. |
| 339 | ** CHANGE it to undefined as soon as your programs use only '...' to | 325 | ** CHANGE it to undefined as soon as your programs use only '...' to |
| 340 | ** access vararg parameters (instead of the old 'arg' table). | 326 | ** access vararg parameters (instead of the old 'arg' table). |
| @@ -342,26 +328,12 @@ | |||
| 342 | #define LUA_COMPAT_VARARG | 328 | #define LUA_COMPAT_VARARG |
| 343 | 329 | ||
| 344 | /* | 330 | /* |
| 345 | @@ LUA_COMPAT_MOD controls compatibility with old math.mod function. | ||
| 346 | ** CHANGE it to undefined as soon as your programs use 'math.fmod' or | ||
| 347 | ** the new '%' operator instead of 'math.mod'. | ||
| 348 | */ | ||
| 349 | #define LUA_COMPAT_MOD | ||
| 350 | |||
| 351 | /* | ||
| 352 | @@ LUA_COMPAT_GFIND controls compatibility with old 'string.gfind' name. | 331 | @@ LUA_COMPAT_GFIND controls compatibility with old 'string.gfind' name. |
| 353 | ** CHANGE it to undefined as soon as you rename 'string.gfind' to | 332 | ** CHANGE it to undefined as soon as you rename 'string.gfind' to |
| 354 | ** 'string.gmatch'. | 333 | ** 'string.gmatch'. |
| 355 | */ | 334 | */ |
| 356 | #define LUA_COMPAT_GFIND | 335 | #define LUA_COMPAT_GFIND |
| 357 | 336 | ||
| 358 | /* | ||
| 359 | @@ LUA_COMPAT_OPENLIB controls compatibility with old 'luaL_openlib' | ||
| 360 | @* behavior. | ||
| 361 | ** CHANGE it to undefined as soon as you replace to 'luaL_register' | ||
| 362 | ** your uses of 'luaL_openlib' | ||
| 363 | */ | ||
| 364 | #define LUA_COMPAT_OPENLIB | ||
| 365 | 337 | ||
| 366 | 338 | ||
| 367 | 339 | ||
