Kim Alvefur
8136aa749a
util: Add compat for prosody module name change to C sources
2023-03-17 18:03:07 +01:00
Kim Alvefur
dabdfc91be
util.table: Fix inaccurate comment
...
Probably a duplicate of the comment next to Lmove, recorded by mistake
Lpack can probably be removed at some point in the near future once we
are confident it is not used anywhere.
2022-07-11 20:02:10 +02:00
Kim Alvefur
dff4beae02
util-src: Remove Lua 5.1 compat macros
...
Part of #1600
2022-07-01 21:21:21 +02:00
Matthew Wild
ca3d1e1958
util.table: Compatibility with Lua 5.1 lua_equals
2022-03-18 15:29:05 +00:00
Matthew Wild
26605b5197
util.table: Backport table.move() from Lua 5.4
...
One difference is that 5.4 accepts "table-like" values (for this and other
table.*() functions), but that would require additional backporting work.
2022-03-18 15:21:25 +00:00
Kim Alvefur
384687ffa4
util-src: Specify size of various tables to be allocated
2017-03-09 01:20:59 +01:00
Kim Alvefur
3bf3935e78
Backed out changeset a3a4ed0d34f4 C99 is ok
2017-03-02 00:46:32 +01:00
Kim Alvefur
40d8e257d8
util-src/*.c: Attach pointer * to name instead of type
2017-02-12 16:42:29 +01:00
Kim Alvefur
0d28378a7a
util-src/*.c: Squeeze repeated blank lines
2017-01-23 18:33:35 +01:00
Kim Alvefur
5b10d245e3
util-src: Make C modules assert that the Lua runtime matches what it was compiled for
2017-01-08 14:21:08 +01:00
Kim Alvefur
2c74295bfa
util.table: Move loop variable to top of function for C89 compatibility
2016-08-07 20:49:50 +02:00
Matthew Wild
544456bc19
util.table: Add pack() function (this is already available in Lua 5.2+)
2016-07-27 13:39:19 +01:00
Kim Alvefur
e866ef555a
util-src/*.c: astyle --indent=tab --brackets=attach --indent-switches --break-blocks --pad-oper --unpad-paren --add-brackets --align-pointer=type --lineend=linux
2015-04-03 19:52:48 +02:00
Matthew Wild
f9a6cc2cc9
util.table, Makefile: New C module that allows pre-allocation of tables to improve performance and decrease memory fragmentation
2015-03-31 11:59:17 +01:00