diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-04-02 10:58:33 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-04-02 10:58:33 -0300 |
| commit | 8d50a998e381a444829effd5437d52e8ae6c7ee5 (patch) | |
| tree | f1c7ae21530a117be3f311bcf9335dab68b525d0 | |
| parent | bdd10a08b179d9825c1862ff8ac94cb62799e19f (diff) | |
| download | lua-8d50a998e381a444829effd5437d52e8ae6c7ee5.tar.gz lua-8d50a998e381a444829effd5437d52e8ae6c7ee5.tar.bz2 lua-8d50a998e381a444829effd5437d52e8ae6c7ee5.zip | |
definition for LUA_UNSIGNEDBITS (number of bits in a LUA_UNSIGNED)
| -rw-r--r-- | luaconf.h | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.266 2018/03/02 18:31:51 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.267 2018/03/09 14:56:02 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 | */ |
| @@ -447,6 +447,7 @@ | |||
| 447 | @@ LUA_MAXINTEGER is the maximum value for a LUA_INTEGER. | 447 | @@ LUA_MAXINTEGER is the maximum value for a LUA_INTEGER. |
| 448 | @@ LUA_MININTEGER is the minimum value for a LUA_INTEGER. | 448 | @@ LUA_MININTEGER is the minimum value for a LUA_INTEGER. |
| 449 | @@ LUA_MAXUNSIGNED is the maximum value for a LUA_UNSIGNED. | 449 | @@ LUA_MAXUNSIGNED is the maximum value for a LUA_UNSIGNED. |
| 450 | @@ LUA_UNSIGNEDBITS is the number of bits in a LUA_UNSIGNED. | ||
| 450 | @@ lua_integer2str converts an integer to a string. | 451 | @@ lua_integer2str converts an integer to a string. |
| 451 | */ | 452 | */ |
| 452 | 453 | ||
| @@ -468,6 +469,8 @@ | |||
| 468 | 469 | ||
| 469 | #define LUA_MAXUNSIGNED (~(lua_Unsigned)0) | 470 | #define LUA_MAXUNSIGNED (~(lua_Unsigned)0) |
| 470 | 471 | ||
| 472 | #define LUA_UNSIGNEDBITS (sizeof(LUA_UNSIGNED) * CHAR_BIT) | ||
| 473 | |||
| 471 | 474 | ||
| 472 | /* now the variable definitions */ | 475 | /* now the variable definitions */ |
| 473 | 476 | ||
