The Lua development repository, as seen by the Lua team. Mirrored irregularly. Please DO NOT send pull requests. Report issues in the Lua mailing list https://www.lua.org/lua-l.html https://lua.org
Find a file
Roberto Ierusalimschy 002beeebe7 New way to keep hints for table length
Instead of using 'alimit' for keeping the size of the array and at
the same time being a hint for '#t', a table now keeps these two
values separate. The Table structure has a field 'asize' with the
size of the array, while the length hint is kept in the array itself.
That way, tables with no array part waste no space with that field.
Moreover, the space for the hint may have zero cost for small arrays,
if the array of tags plus the hint still fits in a single word.
2024-11-29 17:26:20 -03:00
manual Debug information about extra arguments from __call 2024-11-19 14:09:18 -03:00
testes New way to keep hints for table length 2024-11-29 17:26:20 -03:00
.gitignore 'lua_upvalueid' returns NULL on invalid upvalue index 2020-10-12 14:51:28 -03:00
all 'lua_checkstack' doesn't need to check stack overflow 2022-05-23 10:38:03 -03:00
lapi.c More integration of 'nresults' into 'callstatus' 2024-11-15 15:25:11 -03:00
lapi.h Using CIST_CLSRET instead of trick with 'nresults' 2024-07-19 17:34:22 -03:00
lauxlib.c Debug information about extra arguments from __call 2024-11-19 14:09:18 -03:00
lauxlib.h lua_writestring & co. moved to llimits.h 2024-06-21 12:29:08 -03:00
lbaselib.c Parameter for lua_gc/LUA_GCSTEP changed to 'size_t' 2024-09-10 17:05:39 -03:00
lcode.c Details 2024-09-06 14:35:04 -03:00
lcode.h Added gcc option '-Wconversion' 2024-07-27 13:32:59 -03:00
lcorolib.c llimits.h being used by all Lua code 2024-06-20 14:46:06 -03:00
lctype.c Easy way to allow Unicode characters in identifiers 2019-12-17 14:24:30 -03:00
lctype.h Better documentation for 'lctype.h' 2020-09-03 09:52:43 -03:00
ldblib.c Debug information about extra arguments from __call 2024-11-19 14:09:18 -03:00
ldebug.c Debug information about extra arguments from __call 2024-11-19 14:09:18 -03:00
ldebug.h Bug: Call hook may be called twice when count hook yields 2023-07-25 16:50:44 -03:00
ldo.c Change to macro 'LUAI_TRY' 2024-11-25 15:47:08 -03:00
ldo.h Cleaning of llimits.h 2024-06-20 13:43:33 -03:00
ldump.c Added gcc option '-Wconversion' 2024-07-27 13:32:59 -03:00
lfunc.c 'objsize' returns 'l_mem' 2024-11-15 12:04:53 -03:00
lfunc.h 'objsize' returns 'l_mem' 2024-11-15 12:04:53 -03:00
lgc.c New way to keep hints for table length 2024-11-29 17:26:20 -03:00
lgc.h Some changes in default GC parameters 2024-10-23 17:15:06 -03:00
linit.c llimits.h being used by all Lua code 2024-06-20 14:46:06 -03:00
liolib.c New function 'lua_numbertostrbuff' 2024-10-23 17:16:17 -03:00
ljumptab.h Several details about 5.4.0 rc1 2020-04-23 14:48:15 -03:00
llex.c Added gcc option '-Wconversion' 2024-07-27 13:32:59 -03:00
llex.h Detail 2020-09-15 14:29:52 -03:00
llimits.h New macro 'assert_code' 2024-11-15 11:57:18 -03:00
lmathlib.c Added gcc option '-Wconversion' 2024-07-27 13:32:59 -03:00
lmem.c GC back to controling pace counting bytes 2024-09-19 19:02:14 -03:00
lmem.h '-Wconversion' extended to all options of Lua numbers 2024-07-27 15:13:21 -03:00
loadlib.c Added gcc option '-Wconversion' 2024-07-27 13:32:59 -03:00
lobject.c New function 'lua_numbertostrbuff' 2024-10-23 17:16:17 -03:00
lobject.h New way to keep hints for table length 2024-11-29 17:26:20 -03:00
lopcodes.c Details 2024-09-06 14:35:04 -03:00
lopcodes.h Added gcc option '-Wconversion' 2024-07-27 13:32:59 -03:00
lopnames.h Several details about 5.4.0 rc1 2020-04-23 14:48:15 -03:00
loslib.c Added gcc option '-Wconversion' 2024-07-27 13:32:59 -03:00
lparser.c USHRT_MAX changed to SHRT_MAX 2024-09-19 19:06:16 -03:00
lparser.h 'lcode.c' can use 'checklimit', too 2024-08-20 15:15:23 -03:00
lprefix.h Several details about 5.4.0 rc1 2020-04-23 14:48:15 -03:00
lstate.c 'objsize' returns 'l_mem' 2024-11-15 12:04:53 -03:00
lstate.h Counter for length of chains of __call metamethods 2024-11-16 12:00:28 -03:00
lstring.c Added gcc option '-Wconversion' 2024-07-27 13:32:59 -03:00
lstring.h Added gcc option '-Wconversion' 2024-07-27 13:32:59 -03:00
lstrlib.c '-Wconversion' extended to all options of Lua numbers 2024-07-27 15:13:21 -03:00
ltable.c New way to keep hints for table length 2024-11-29 17:26:20 -03:00
ltable.h New way to keep hints for table length 2024-11-29 17:26:20 -03:00
ltablib.c Details 2024-09-12 11:08:11 -03:00
ltests.c New way to keep hints for table length 2024-11-29 17:26:20 -03:00
ltests.h Better support in 'ltests' for tracing the GC 2024-10-21 15:18:20 -03:00
ltm.c Added gcc option '-Wconversion' 2024-07-27 13:32:59 -03:00
ltm.h Added gcc option '-Wconversion' 2024-07-27 13:32:59 -03:00
lua.c Local declaration in the REPL generates a warning 2024-09-27 10:00:35 -03:00
lua.h Debug information about extra arguments from __call 2024-11-19 14:09:18 -03:00
luaconf.h Ease slightly making Lua with C89 2024-11-15 11:43:32 -03:00
lualib.h New interface to function 'luaL_openselectedlibs' 2024-02-15 11:17:39 -03:00
lundump.c Added gcc option '-Wconversion' 2024-07-27 13:32:59 -03:00
lundump.h Removed type 'varint_t' 2024-03-13 09:16:51 -03:00
lutf8lib.c Details 2024-09-06 14:35:04 -03:00
lvm.c New way to keep hints for table length 2024-11-29 17:26:20 -03:00
lvm.h Added gcc option '-Wconversion' 2024-07-27 13:32:59 -03:00
lzio.c Cleaning of llimits.h 2024-06-20 13:43:33 -03:00
lzio.h Added gcc option '-Wconversion' 2024-07-27 13:32:59 -03:00
makefile Ease slightly making Lua with C89 2024-11-15 11:43:32 -03:00
onelua.c Details 2023-03-09 11:12:11 -03:00
README.md Details 2020-12-02 15:13:13 -03:00

Lua

This is the repository of Lua development code, as seen by the Lua team. It contains the full history of all commits but is mirrored irregularly. For complete information about Lua, visit Lua.org.

Please do not send pull requests. To report issues, post a message to the Lua mailing list.

Download official Lua releases from Lua.org.