Roberto Ierusalimschy
c65605151c
New function 'luaL_addgsub'
Added a new function 'luaL_addgsub', similar to 'luaL_gsub' but that
adds its result directly to a preexisting buffer, avoiding the creation
of one extra intermediate string. Also added two simple macros,
'luaL_bufflen' and 'luaL_buffaddr', to query the current length
and the contents address of a buffer.
6 years ago
Roberto Ierusalimschy
46beca5bed
Better error messages for some polymorphic functions
New auxiliary functions/macros 'luaL_argexpected'/'luaL_typeerror'
ease the creation of error messages such as
bad argument #2 to 'setmetatable' (nil or table expected, got boolean)
(The novelty being the "got boolean" part...)
6 years ago
Roberto Ierusalimschy
2fc6b55dae
Removed resource-related "emergency collections"
New to-be-closed variables is a better way to ensure the proper release
of resources.
6 years ago
Roberto Ierusalimschy
3d838f635c
Added "emergency collection" to 'io.tmpfile' and 'os.tmpname'
These operations also can give errors for lack of resources, so they
also will try "emergency collections" in case of resource errors.
Because there are now two libraries with that kind of handling,
'resourcetryagain' was moved to the auxiliary library to be shared
by the libraries.
6 years ago
Roberto Ierusalimschy
34b00c16e2
removed compatibility code with older versions
7 years ago
Roberto Ierusalimschy
5a1c8d8ef3
new constant 'LUA_GNAME' for the name of the global table "_G"
7 years ago
Roberto Ierusalimschy
2caecf1b3e
type 'L_Umaxalign' replaced by macro 'LUAI_MAXALIGN', which is also added
to the auxlib buffer
8 years ago
Roberto Ierusalimschy
4df4560bf5
detail (wrong comment)
8 years ago
Roberto Ierusalimschy
b2aa2ba046
using constants for "_LOADED" and "PRELOAD"
8 years ago
Roberto Ierusalimschy
c5112f7b15
details (comments)
9 years ago
Roberto Ierusalimschy
05afee0f50
definitions for 'luai_writestring'/'luai_writeline'/'luai_writestringerror'
moved to 'lauxlib.h' (they do not need to be stable or configurable) +
prefixes changed from 'luai_' to 'lua_' (they are not part of the core)
10 years ago
Roberto Ierusalimschy
bdf566a8a3
`name' in comments changed to 'name'
10 years ago
Roberto Ierusalimschy
798660c9cd
deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.)
10 years ago
Roberto Ierusalimschy
a77d263e86
unsigned-manipulation functions (lua_puhsunsigned, lua_tounsigned, etc.)
deprecated
11 years ago
Roberto Ierusalimschy
4422b97472
keep 'luaL_checkversion_' with its signature in version 5.2, for
correct error messages in case of version mixings
11 years ago
Roberto Ierusalimschy
438c534ff4
'arg' arguments (previously called 'narg', 'nArg', 'numArg', etc.)
renamed all to 'arg'
11 years ago
Roberto Ierusalimschy
66d046833d
no need to check "bad conversion number->int;" in luaL_checkversion,
as now Lua does not use tricks for the conversion, but there is a
need to check the sizes of number types, as they can be different
in two modules
12 years ago
Roberto Ierusalimschy
982aa7058f
'luaL_len' returns lua_Integer instead of 'int'
12 years ago
Roberto Ierusalimschy
3617e04e97
'lua_load' has an extra argument 'mode'
13 years ago
Roberto Ierusalimschy
6cce5c0601
new function 'luaL_loadfilex'
13 years ago
Roberto Ierusalimschy
ef900f224c
strutcture for file handles exported in 'lauxlib.h'
13 years ago
Roberto Ierusalimschy
20d30bcd33
declarations should be present only when implementations are
14 years ago
Roberto Ierusalimschy
19fbdf6cae
'luaL_findtable' -> 'luaL_getsubtable'
14 years ago
Roberto Ierusalimschy
d806710ab5
returns for file-related functions and process-related functions
unified in 'auxlib'
14 years ago
Roberto Ierusalimschy
a10d495b18
'luaL_findtable' returns boolean about whether it created a new
table (to easy initializing table)
14 years ago
Roberto Ierusalimschy
d1c0efdb7d
comment about compatibility-only functions
14 years ago
Roberto Ierusalimschy
50334faad6
no more compatibility with (veryyyy) old ref system
14 years ago
Roberto Ierusalimschy
c97aa9485c
new function 'luaL_setmetatable'
14 years ago
Roberto Ierusalimschy
e885b91326
'luaL_typeerror' deprecated
14 years ago
Roberto Ierusalimschy
c6b64ffe65
new type lua_Unsigned and corresponding projection/injection functions
14 years ago
Roberto Ierusalimschy
7192afafee
new module policy: C modules do not create globals and do not register
themselves with 'require' (let 'require' do its work); new auxiliary
functions luaL_newlib/luaL_newlibtable/luaL_setfuncs/luaL_requiref.
Old luaL_register will be deprecated.
15 years ago
Roberto Ierusalimschy
a139e2e003
old (and complex) luaL_findtable now used only in compatibility code
inside lauxlib.c
15 years ago
Roberto Ierusalimschy
2c1a5d678d
factoring out common code in 'module' and 'luaL_openlib'
15 years ago
Roberto Ierusalimschy
2d7a81a204
missing parentheses in declaration
15 years ago
Roberto Ierusalimschy
376e939ef6
missing parentheses around 'luaL_pushresultsize' declaration
15 years ago
Roberto Ierusalimschy
afdb19ac82
no more 'ccall' nor 'cpcall' functions. (With light C functions they
are obsolete.)
15 years ago
Roberto Ierusalimschy
9100f7479a
new implementation for Generic Buffer manipulation (using userdata as
temporary buffer space)
15 years ago
Roberto Ierusalimschy
1514e49d43
avoid using function environments in C libraries (as it probably will
be deprecated)
15 years ago
Roberto Ierusalimschy
4f5f2fe367
new function 'luaL_cpcall'
15 years ago
Roberto Ierusalimschy
55d3138397
removed old prototype for 'luaI_openlib' (which does not exist anymore)
15 years ago
Roberto Ierusalimschy
f3a6815000
compatibility code removed or moved to luaconf.h
15 years ago
Roberto Ierusalimschy
c3a6f3fa1c
'lua_objlen' replaced by 'lua_rawlen', 'lua_len', and 'luaL_len'
15 years ago
Roberto Ierusalimschy
4a818f068a
'checkversion' implemented in the auxiliary library
16 years ago
Roberto Ierusalimschy
547e47649f
'luaL_typeerror' spelled right
16 years ago
Roberto Ierusalimschy
daddc57abd
luaL_tostring -> luaL_tolstring (more generic)
17 years ago
Roberto Ierusalimschy
ffc5f78229
detail
18 years ago
Roberto Ierusalimschy
3f78748ef3
traceback function moved to auxlib
18 years ago
Roberto Ierusalimschy
8d3dd04137
clearing some old compatibility code
18 years ago
Roberto Ierusalimschy
01fa1bc114
luaL_testudata (a luaL_checkudata that does not raise errors) is
very needed.
18 years ago
Roberto Ierusalimschy
cf86576a83
new function luaL_tostring
18 years ago