diff options
| -rw-r--r-- | luaconf.h | 42 |
1 files changed, 23 insertions, 19 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.191 2014/03/06 16:15:18 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.192 2014/03/18 18:27:08 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 | */ |
| @@ -20,6 +20,24 @@ | |||
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | /* | 22 | /* |
| 23 | ** =================================================================== | ||
| 24 | @@ LUA_INT_INT / LUA_INT_LONG / LUA_INT_LONGLONG defines size for | ||
| 25 | @* Lua integers; | ||
| 26 | @@ LUA_REAL_FLOAT / LUA_REAL_DOUBLE / LUA_REAL_LONGDOUBLE defines size for | ||
| 27 | @* Lua floats. | ||
| 28 | ** | ||
| 29 | ** These definitions set the numeric types for Lua. Lua should work | ||
| 30 | ** fine with 32-bit or 64-bit integers mixed with 32-bit or 64-bit | ||
| 31 | ** floats. The usual configurations are 64-bit integers and floats (the | ||
| 32 | ** default) and 32-bit integers and floats (Small Lua, for restricted | ||
| 33 | ** hardware). | ||
| 34 | ** ===================================================================== | ||
| 35 | */ | ||
| 36 | #define LUA_INT_LONGLONG | ||
| 37 | #define LUA_REAL_DOUBLE | ||
| 38 | |||
| 39 | |||
| 40 | /* | ||
| 23 | @@ LUA_ANSI controls the use of non-ansi features. | 41 | @@ LUA_ANSI controls the use of non-ansi features. |
| 24 | ** CHANGE it (define it) if you want Lua to avoid the use of any | 42 | ** CHANGE it (define it) if you want Lua to avoid the use of any |
| 25 | ** non-ansi feature or library. | 43 | ** non-ansi feature or library. |
| @@ -378,29 +396,15 @@ | |||
| 378 | #define LUAL_BUFFERSIZE BUFSIZ | 396 | #define LUAL_BUFFERSIZE BUFSIZ |
| 379 | 397 | ||
| 380 | 398 | ||
| 381 | |||
| 382 | |||
| 383 | /* | 399 | /* |
| 384 | ** {================================================================== | 400 | ** {================================================================== |
| 385 | ** The following definitions set the numeric types for Lua. | 401 | ** Configuration for Numbers. |
| 386 | ** Lua should work fine with 32-bit or 64-bit integers mixed with | 402 | ** Change these definitions if no predefined LUA_REAL_* / LUA_INT_* |
| 387 | ** 32-bit or 64-bit floats. The usual configurations are 64-bit | 403 | ** satisfy your needs. |
| 388 | ** integers and floats (the default) and 32-bit integers and floats | ||
| 389 | ** (for restricted hardware). | ||
| 390 | ** =================================================================== | 404 | ** =================================================================== |
| 391 | */ | 405 | */ |
| 392 | 406 | ||
| 393 | /* | 407 | /* |
| 394 | @@ LUA_INT_INT/LUA_INT_LONG/LUA_INT_LONGLONG defines size for Lua integers; | ||
| 395 | @@ LUA_REAL_FLOAT/LUA_REAL_DOUBLE/LUA_REAL_LONGDOUBLE defines size for | ||
| 396 | @* Lua floats. | ||
| 397 | ** Default is long long + double | ||
| 398 | */ | ||
| 399 | #define LUA_INT_LONGLONG | ||
| 400 | #define LUA_REAL_DOUBLE | ||
| 401 | |||
| 402 | |||
| 403 | /* | ||
| 404 | @@ LUA_NUMBER is the floating-point type used by Lua. | 408 | @@ LUA_NUMBER is the floating-point type used by Lua. |
| 405 | ** | 409 | ** |
| 406 | @@ LUAI_UACNUMBER is the result of an 'usual argument conversion' | 410 | @@ LUAI_UACNUMBER is the result of an 'usual argument conversion' |
| @@ -409,7 +413,7 @@ | |||
| 409 | @@ LUA_NUMBER_FRMLEN is the length modifier for writing floats. | 413 | @@ LUA_NUMBER_FRMLEN is the length modifier for writing floats. |
| 410 | @@ LUA_NUMBER_SCAN is the format for reading floats. | 414 | @@ LUA_NUMBER_SCAN is the format for reading floats. |
| 411 | @@ LUA_NUMBER_FMT is the format for writing floats. | 415 | @@ LUA_NUMBER_FMT is the format for writing floats. |
| 412 | @@ lua_number2str converts a floats to a string. | 416 | @@ lua_number2str converts a float to a string. |
| 413 | ** | 417 | ** |
| 414 | @@ l_mathop allows the addition of an 'l' or 'f' to all math operations | 418 | @@ l_mathop allows the addition of an 'l' or 'f' to all math operations |
| 415 | ** | 419 | ** |
