24baa919c1
small bug: 'find' did not detect magic chars after a \0 in a pattern and did a plain search in those cases
Roberto Ierusalimschy2010-11-16 18:39:41 -02:00
1a46a713d2
new macro 'l_tvar' to easy the use of mathlib with other floating types (float and long double)
Roberto Ierusalimschy2010-11-11 13:39:12 -02:00
23b9ceb0a4
allows larger array parts in tables (no need to restrict it to 2^26)
Roberto Ierusalimschy2010-11-11 13:38:43 -02:00
0a6a6b9d9d
no more sentinel to detect loops in module dependencies; usual message for infinite recursion is good enough.
Roberto Ierusalimschy2010-11-10 18:00:04 -02:00
1b54197491
better error message when light userdata is used instead of a full userdata
Roberto Ierusalimschy2010-11-10 16:06:10 -02:00
f722ba6890
code should not use "defined" types, but "typedef"s types when they are available (i.e., after including lua.h) + small changes to make conversions more portable across diferent types for lua_Number (long double) and lua_Unsigned (long long unsigned)
Roberto Ierusalimschy2010-11-08 14:33:20 -02:00
f1629217f1
code for conversion macros moved from luaconf to llimits + 'uint' renamed to 'unsigned' in those macros
Roberto Ierusalimschy2010-11-03 13:16:17 -02:00
6098e06e09
better organization for coercion functions between lua_Number and integer types + IEEE trick to be used in most platforms, by default
Roberto Ierusalimschy2010-10-26 17:32:19 -02:00
c6b64ffe65
new type lua_Unsigned and corresponding projection/injection functions
Roberto Ierusalimschy2010-10-25 18:31:11 -02:00
4590a89b32
corrected warnings from different compilers (mostly casts and small details)
Roberto Ierusalimschy2010-10-25 17:01:37 -02:00
ffff9a49da
'nresults' in CallInfo now refers to number of results that the current function returns (and not what it expects from a call)
Roberto Ierusalimschy2010-09-30 14:21:31 -03:00
a289a62717
'loadin' should not check whether upvalue is called '_ENV', because its name may be unknown when there is no debug information.
Roberto Ierusalimschy2010-09-07 16:38:36 -03:00
e3eabcf913
'lua_[gs]etupvalue' may work even without debug information (that is, without upvalue names)
Roberto Ierusalimschy2010-09-07 16:35:04 -03:00
6828f6d427
new parameter 'majorinc' to control frequency of major collections in generational mode
Roberto Ierusalimschy2010-09-03 11:14:01 -03:00
daa5fe3e31
'loadin' should accept any value for the environment (not only tables) + it should check whether chunk has upvalue named '_ENV'
Roberto Ierusalimschy2010-08-23 15:03:11 -03:00
8d9ea59d28
'pushclosure' -> 'codeclosure' (as there is another 'pushclosure' in 'lvm.c) + small detail
Roberto Ierusalimschy2010-08-23 14:32:34 -03:00
5e7dbd0b8b
api checks to ensure that thread is OK when using lua_call/lua_pcall
Roberto Ierusalimschy2010-08-04 15:40:28 -03:00
81dd13f4c6
new way to distinguish between indexing tables in registers and tables in upvalues (+ fixed small bug when checking conflicts in multiple assignments)
Roberto Ierusalimschy2010-07-07 13:27:29 -03:00
7631c29b2f
comand-line option '-l' creates global with given name after requiring module
Roberto Ierusalimschy2010-07-02 14:36:32 -03:00
a9dc7c8828
functions lua_tonumber/lua_tointeger replaced by lua_tonumberx/lua_tointegerx that have an extra out parameter with conversion status
Roberto Ierusalimschy2010-07-02 14:35:06 -03:00
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.
Roberto Ierusalimschy2010-07-02 08:38:13 -03:00
a139e2e003
old (and complex) luaL_findtable now used only in compatibility code inside lauxlib.c
Roberto Ierusalimschy2010-06-30 14:40:27 -03:00