Roberto Ierusalimschy
45c430eac0
addition of '.0' to float representation done by the kernel
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
5aeb57f11f
detail (error message for conversion from float to integer)
11 years ago
Roberto Ierusalimschy
a3addae036
lua_gettable and similars return type of gotten value
11 years ago
Roberto Ierusalimschy
a4c6dcf999
detail (better error messages for light userdata)
11 years ago
Roberto Ierusalimschy
4a1ed6e6e5
new field '__name' in metatables to help better error messages
11 years ago
Roberto Ierusalimschy
d438e1379d
insertion of ".0" in floats with integer values done by "luaL_tolstring",
not by the core
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
c72fb1cf8e
detail (removed 'assert')
12 years ago
Roberto Ierusalimschy
138e69cc55
correct error message for floating-point values out of (integer) range
12 years ago
Roberto Ierusalimschy
0394314c7a
avoid using a negative value to test 'lua_tounsigned'
12 years ago
Roberto Ierusalimschy
6fb0b11350
string contatenation handles conversion of integers to strings +
floats always format as floats (with decimal dot or exponent)
12 years ago
Roberto Ierusalimschy
9c43d6a24e
new format "%I" in 'lua_pushfstring' for lua_Integer
12 years ago
Roberto Ierusalimschy
af8efcc762
detail (avoid unnecessary "unconst" in cast)
12 years ago
Roberto Ierusalimschy
4082c77ff2
error message for 'bad self' includes original 'extramsg'
12 years ago
Roberto Ierusalimschy
7a3de1aba3
typo in comment
12 years ago
Roberto Ierusalimschy
c1a2a646c8
details (no need to use lua_pushfstring for plain strings)
12 years ago
Roberto Ierusalimschy
4dd0622d0c
bug in luaL_getsubtable (calling lua_absindex not with original stack)
13 years ago
Roberto Ierusalimschy
4cca1a436d
details (using lua_setglobal/lua_getglobal instead of explicit
use of the global table)
13 years ago
Roberto Ierusalimschy
3e66d3b4be
cleaner code (avoids loop with empty body)
13 years ago
Roberto Ierusalimschy
29a28693e5
'luaL_checkversion' called by 'luaL_setfuncs'
13 years ago
Roberto Ierusalimschy
e320b5b672
small bug: format '%d' for lua_Number argument
13 years ago
Roberto Ierusalimschy
e2feb886d6
macro 'luaL_getmetatable' seems more appropriate when getting
metatables in registry
13 years ago
Roberto Ierusalimschy
7bcb2462e4
comments
13 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
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