diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-21 12:29:08 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-21 12:29:08 -0300 |
| commit | e24ce8c2b322226bbc211e57f301c265a2622c4b (patch) | |
| tree | 875afb43726cadefdf6b1ea90ed8e8fb10db1a44 /lstrlib.c | |
| parent | a08d82eb132bfd9db5b91e0d5ebcb81d7b26dcd0 (diff) | |
| download | lua-e24ce8c2b322226bbc211e57f301c265a2622c4b.tar.gz lua-e24ce8c2b322226bbc211e57f301c265a2622c4b.tar.bz2 lua-e24ce8c2b322226bbc211e57f301c265a2622c4b.zip | |
lua_writestring & co. moved to llimits.h
They don't need to be visible by clients of Lua.
Diffstat (limited to 'lstrlib.c')
| -rw-r--r-- | lstrlib.c | 2 |
1 files changed, 0 insertions, 2 deletions
| @@ -41,8 +41,6 @@ | |||
| 41 | ** Some sizes are better limited to fit in 'int', but must also fit in | 41 | ** Some sizes are better limited to fit in 'int', but must also fit in |
| 42 | ** 'size_t'. (We assume that 'lua_Integer' cannot be smaller than 'int'.) | 42 | ** 'size_t'. (We assume that 'lua_Integer' cannot be smaller than 'int'.) |
| 43 | */ | 43 | */ |
| 44 | #define MAX_SIZET ((size_t)(~(size_t)0)) | ||
| 45 | |||
| 46 | #define MAXSIZE \ | 44 | #define MAXSIZE \ |
| 47 | (sizeof(size_t) < sizeof(int) ? MAX_SIZET : (size_t)(INT_MAX)) | 45 | (sizeof(size_t) < sizeof(int) ? MAX_SIZET : (size_t)(INT_MAX)) |
| 48 | 46 | ||
