Cormac Shannon
768de9fe8b
Expose lush global as a standard library (issue #26 )
...
Register luaopen_lush() in stdlibs so the lush table is available as a
global. Users can now extend the shell by adding functions to
lush.builtins. The OP_LUSH VM access via integer keys is preserved.
2026-03-18 09:52:56 +00:00
Roberto Ierusalimschy
165389b27b
New interface to function 'luaL_openselectedlibs'
...
Instead of preloading all non-loaded libraries, there is another
mask to select which libraries to preload.
2024-02-15 11:17:39 -03:00
Roberto Ierusalimschy
d738c8d18b
New function 'luaL_openselectedlibs'
...
Makes it easier to start Lua with only some standard libraries.
2022-12-07 15:12:52 -03:00
Roberto Ierusalimschy
d41c36bf67
'lua_assert' moved from 'lualib.h' to 'lauxlib.h'
...
The macro is useful also in 'lauxlib.c', which does not include
'lualib.h'. Also, the definition was corrected to be "on" when
LUAI_ASSERT is defined.
2020-12-03 10:39:38 -03:00
Roberto Ierusalimschy
f99509581e
Removed extra information from RCS keyword strings
...
Version numbers and dates (mostly wrong) from RCS keyword strings
removed from all source files; only the file name are kept.
2018-08-23 14:26:12 -03:00
Roberto Ierusalimschy
34b00c16e2
removed compatibility code with older versions
2018-02-27 15:47:32 -03:00
Roberto Ierusalimschy
94c1b3a8ee
Handling of LUA_PATH/LUA_CPATH moved back to 'package' library
...
to avoid incompatibilites with previous releases
2017-01-12 15:14:26 -02:00
Roberto Ierusalimschy
6ccf150039
new library: utf8
2014-02-06 15:32:33 -02:00
Roberto Ierusalimschy
a241b6cb3c
removed redundant definition for FILEHANDLE
2011-12-08 10:11:37 -02:00
Roberto Ierusalimschy
aa13c591f5
avoid use of 'ifdef/ifndef'; use 'defined' instead (simpler and
...
more powerful)
2011-05-25 11:12:28 -03:00
Roberto Ierusalimschy
9e8e60dd5f
bitlib renamed to 'bit32' + new function for arithmetic shift
2010-10-25 12:32:36 -02:00
Roberto Ierusalimschy
bd262d591f
'coroutine' library separated from 'baselib'
2010-06-10 18:30:26 -03:00
Roberto Ierusalimschy
a6f465f558
new mark LUAMOD_API for all luaopen_* functions
2009-11-24 10:05:44 -02:00
Roberto Ierusalimschy
3abe3da9fb
new module 'lbitlib.c' for bitwise operations
2009-07-01 13:16:40 -03:00
Roberto Ierusalimschy
a7c9e45c64
avoid trailing white spaces
2006-09-11 11:07:24 -03:00
Roberto Ierusalimschy
0fd6466957
lua_assert is an internal matter, not to be configured
2005-12-27 15:12:00 -02:00
Roberto Ierusalimschy
c7b4f44772
correct name to open package library
2005-08-10 15:06:58 -03:00
Roberto Ierusalimschy
04f657c7f8
new protocol to open standard libraries
2005-04-13 14:24:20 -03:00
Roberto Ierusalimschy
162b66624d
no more `lua_userinit' macro
2005-01-10 14:31:30 -02:00
Roberto Ierusalimschy
ce455481ab
separation between io lib and os lib
2004-07-09 12:47:48 -03:00
Roberto Ierusalimschy
31f6540fba
back with an "open all libs" function
2004-07-09 11:29:29 -03:00
Roberto Ierusalimschy
0733c83b8c
other modules may need FILEHANDLE definition
2004-05-28 15:35:05 -03:00
Roberto Ierusalimschy
26a9b249db
details
2004-03-24 12:46:49 -03:00
Roberto Ierusalimschy
79db75101e
detail
2003-03-18 09:24:26 -03:00
Roberto Ierusalimschy
b0c40e2405
first version of `loadlib'
2003-03-17 10:04:58 -03:00
Roberto Ierusalimschy
034de1fe73
new names for functions that open C libraries
2003-03-11 09:24:34 -03:00
Roberto Ierusalimschy
a885b826b3
LUA_ALERT is no longer used
2002-07-09 15:49:13 -03:00
Roberto Ierusalimschy
eec0905173
better tests (assertions) for debug hooks
2002-06-18 14:42:52 -03:00
Roberto Ierusalimschy
5b8ee9fa8d
new names for standard libraries
2002-06-05 14:24:04 -03:00
Roberto Ierusalimschy
8e1e618606
baselib' splited in baselib' and `tablib'
2002-04-09 17:19:06 -03:00
Roberto Ierusalimschy
dd3a63c205
new way to handle `profiles'
2001-03-26 11:31:49 -03:00
Roberto Ierusalimschy
6d4db86888
open functions are lua_Cfunctions
2001-03-06 17:09:38 -03:00
Roberto Ierusalimschy
8399df5dcf
detail
2001-02-23 17:31:37 -03:00
Roberto Ierusalimschy
35023355f2
details for wchar
2001-02-23 14:28:12 -03:00
Roberto Ierusalimschy
39b7978329
first (big) step to support wide chars
2001-02-23 14:17:25 -03:00
Roberto Ierusalimschy
52ee91dd73
better encapsulation of some types
2001-02-22 14:15:18 -03:00
Roberto Ierusalimschy
35d6b15057
some cleaning
2000-11-23 11:49:35 -02:00
Roberto Ierusalimschy
2cbbf3933a
new macro LUALIB_API (so the lib can be a separate DLL)
2000-10-27 14:15:53 -02:00
Roberto Ierusalimschy
64eecc0b82
new macro LUA_API
2000-10-20 14:39:03 -02:00
Roberto Ierusalimschy
55c3bc2bcb
_ALERT is used (and assumed) only by the libs
2000-09-12 10:46:59 -03:00
Roberto Ierusalimschy
6e80c1cde1
new version for API
2000-09-05 16:33:32 -03:00
Roberto Ierusalimschy
e238efc536
default now is multi-state
2000-08-09 16:16:57 -03:00
Roberto Ierusalimschy
89a3ec08f3
function lua_userinit is used only in single-state mode (by lua.c)
2000-06-16 14:22:43 -03:00
Roberto Ierusalimschy
29ede6aa13
first implementation of multiple states (reentrant code).
1999-11-22 11:12:07 -02:00
Roberto Ierusalimschy
c787dccd9b
"const" !!!
1999-08-16 17:52:00 -03:00
Roberto Ierusalimschy
7808ea3a5f
new implementation for '*' in patterns + new option '+'
1999-05-05 16:23:11 -03:00
Roberto Ierusalimschy
01772cefa5
new library for debbuging
1999-01-08 14:47:44 -02:00
Roberto Ierusalimschy
9618aaf07d
small corrections in comments
1998-06-19 13:14:09 -03:00
Roberto Ierusalimschy
502343b402
new scheme for buffers, centralized in auxlib.
1997-12-17 18:48:58 -02:00
Roberto Ierusalimschy
9ae0c082a3
small details by lint.
1997-11-26 16:53:45 -02:00