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
eda87f1156
in 'luaL_checkstack', include extra stack space in test to allow
correct execution of error routines, if necessary
13 years ago
Roberto Ierusalimschy
2557107e91
removed unused variable 'found' (in 'findfield') + removed legacy
test for 'what' being "tail"
13 years ago
Roberto Ierusalimschy
470dd56a89
'os.execute' (and similars) should return 'exit' and code in case
of success, too.
14 years ago
Roberto Ierusalimschy
ad2531a0ee
more complete (and hopefuly more correct) handling of 'sizeof(char)'
14 years ago
Roberto Ierusalimschy
2f128c5130
'luaL_setfuncs' does not need to accept a NULL list. (If there is
no list, there is no reason to call this function.)
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
c97aa9485c
new function 'luaL_setmetatable'
14 years ago
Roberto Ierusalimschy
e885b91326
'luaL_typeerror' deprecated
14 years ago
Roberto Ierusalimschy
2a966116b1
detail (message)
14 years ago
Roberto Ierusalimschy
9be89a1864
'luaL_checkversion' also checks convertions (number to integer types)
14 years ago
Roberto Ierusalimschy
c6b64ffe65
new type lua_Unsigned and corresponding projection/injection functions
14 years ago
Roberto Ierusalimschy
4590a89b32
corrected warnings from different compilers (mostly casts and small
details)
14 years ago
Roberto Ierusalimschy
c3eb89544f
'luaL_loadlib' accepts Utf8 BOM in the beginning of files
14 years ago
Roberto Ierusalimschy
cd6c276e41
use index 0 for header of list of free references
14 years ago
Roberto Ierusalimschy
d447945685
'module'/'luaL_register' and associates are deprecated
14 years ago
Roberto Ierusalimschy
a9dc7c8828
functions lua_tonumber/lua_tointeger replaced by lua_tonumberx/lua_tointegerx
that have an extra out parameter with conversion status
15 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
79f11fb2bb
back with #-comments for binary files
15 years ago
Roberto Ierusalimschy
2c1a5d678d
factoring out common code in 'module' and 'luaL_openlib'
15 years ago
Roberto Ierusalimschy
e8a2c36909
more comments
15 years ago
Roberto Ierusalimschy
3c39a0e8cb
bug: loadfile of binary files read first character twice
15 years ago
Roberto Ierusalimschy
3811e23b32
detail (comment)
15 years ago
Roberto Ierusalimschy
e924a7f9ea
new API function 'lua_absindex'
15 years ago
Roberto Ierusalimschy
dcc070683c
avoid reserving LUA_RIDX_LAST slots in any table used by reference
system. Store free list in a field indexed by a unique name,
instead of using a numerical index.
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
82a1f5d354
comments
15 years ago
Roberto Ierusalimschy
28b2566c97
'lua_assert' not visible from libraries
15 years ago
Roberto Ierusalimschy
caf74dd731
'cpcall' renamed to 'ccall' as it does not do a protected call
15 years ago
Roberto Ierusalimschy
1514e49d43
avoid using function environments in C libraries (as it probably will
be deprecated)
15 years ago
Roberto Ierusalimschy
f292760f12
small optimization in luaL_addlstring (avoid adding chars one by one)
(suggested by Chuck Coffing)
15 years ago
Roberto Ierusalimschy
d08d237a49
detail: in loadfile read function, no need to return NULL on EOF;
size ==0 is enough to signal EOF.
15 years ago
Roberto Ierusalimschy
64a7ec987c
avoid using 'ungetc' in loadfile
15 years ago
Roberto Ierusalimschy
4274738e81
new macro 'luai_writestringerror'
15 years ago
Roberto Ierusalimschy
d27108ccd5
removed support for '#fist-line comment' on binary files (as binary
files do not have lines...)
15 years ago
Roberto Ierusalimschy
4f5f2fe367
new function 'luaL_cpcall'
15 years ago
Roberto Ierusalimschy
f84b575cfa
no more pseudoindex LUA_GLOBALSINDEX; global table now accessible
through registry
15 years ago
Roberto Ierusalimschy
c3a6f3fa1c
'lua_objlen' replaced by 'lua_rawlen', 'lua_len', and 'luaL_len'
15 years ago
Roberto Ierusalimschy
b0f2b288a6
new scheme for debug info about tail calls: no more 'fake' stack entries,
but stack entry knows whether it was tail called
15 years ago
Roberto Ierusalimschy
a5382b763c
new function lua_copy
15 years ago
Roberto Ierusalimschy
cee94df6e0
function list in luaL_register may be NULL for an empty list
15 years ago
Roberto Ierusalimschy
99182c6872
references must start after predefined values in the registry
15 years ago
Roberto Ierusalimschy
28419c4383
'luaL_tolstring' uses 'lua_tolstring' instead of 'lua_tostring' and
'lua_objlen'
16 years ago
Roberto Ierusalimschy
f76f4cb79d
new way to control stack overflow, controling only total size of the stack
16 years ago
Roberto Ierusalimschy
47c562435b
better error messages for luaL_checkversion
16 years ago