Roberto Ierusalimschy
|
4fe11ae232
|
'lua_getuservalue' returns type of user value
|
11 years ago |
Roberto Ierusalimschy
|
c549d4fe64
|
'lua_strtonum' (and 'luaO_str2num') now return string size, instead of
receiving it
|
11 years ago |
Roberto Ierusalimschy
|
5388aa9fc0
|
'luaO_str2d' + 'luaO_str2int' replaced by 'luaO_str2num' (which converts
to float or integer according to the string syntax)
|
11 years ago |
Roberto Ierusalimschy
|
ffa43df3cd
|
'setnvalue' -> 'setfltvalue' (for consitency with 'fltvalue')
|
11 years ago |
Roberto Ierusalimschy
|
037a70dfea
|
cast_u2s/cast_s2u renamed l_castS2U/l_castU2S to be configurable from
outside (mostly for testing)
|
11 years ago |
Roberto Ierusalimschy
|
8f961da3db
|
macros cast_integer/cast_unsigned replaced by cast_u2s/cast_s2u, that
should be used only between lua_Integer and lua_Unsigned
|
11 years ago |
Roberto Ierusalimschy
|
ef789d4161
|
new global macro 'LUA_MAXUNSIGNED'
|
11 years ago |
Roberto Ierusalimschy
|
493b3fdd65
|
added an 'api_check' for negative sizes in 'lua_checkstack'
|
11 years ago |
Roberto Ierusalimschy
|
a3addae036
|
lua_gettable and similars return type of gotten value
|
11 years ago |
Roberto Ierusalimschy
|
87c930676f
|
detail (comments)
|
11 years ago |
Roberto Ierusalimschy
|
295f7ac04e
|
added 'stip' parameter to lua_dump/string.dump
|
11 years ago |
Roberto Ierusalimschy
|
c86b9da022
|
userdata can have any Lua value as uservalue
|
11 years ago |
Roberto Ierusalimschy
|
ffa96d988d
|
field 'op' renamed to 'open'
|
11 years ago |
Roberto Ierusalimschy
|
1cce3e6842
|
change in the way 'collectgarbage("step", size)' interprets 'size'
(mimicking the way the GC itself behaves when Lua allocates 'size'
Kbytes)
|
11 years ago |
Roberto Ierusalimschy
|
90b0ac6495
|
limit to 'gcstepmul' imposed by 'lua_gc' (+ some details in 'lgc.c')
|
11 years ago |
Roberto Ierusalimschy
|
733c58595b
|
no more local collection
|
11 years ago |
Roberto Ierusalimschy
|
86dd8bf3f5
|
no more 'L' in macros "luai_num*" (several places that use those macros
cannot throw errors anyway...)
|
11 years ago |
Roberto Ierusalimschy
|
1ea2d20f74
|
first implementation of '<<', '>>', and '~' (bitwise not)
|
11 years ago |
Roberto Ierusalimschy
|
cac1ebd1e0
|
detail ('ttisuserdata' renamed to 'ttisfulluserdata')
|
11 years ago |
Roberto Ierusalimschy
|
686e57cf9c
|
GC local pause configurable
|
11 years ago |
Roberto Ierusalimschy
|
06156e7575
|
detail (setmetatable do not need to use a back GC barrier)
|
11 years ago |
Roberto Ierusalimschy
|
af35c7f398
|
upvalues collected by reference count
|
11 years ago |
Roberto Ierusalimschy
|
439d74e29f
|
added 'local' bit (true => object is only refered by local variables)
|
11 years ago |
Roberto Ierusalimschy
|
677d90165f
|
no more generational collection !!!
|
11 years ago |
Roberto Ierusalimschy
|
5519c98655
|
'lua_cvtonum' -> 'lua_strtonum'; converts only strings to numbers
|
12 years ago |
Roberto Ierusalimschy
|
d6f5fb2d2c
|
avoid warning for unary minus over an unsigned value
|
12 years ago |
Roberto Ierusalimschy
|
453450d687
|
new macro 'l_floor' (allows 'floorf' even when other math operations
do not have an 'f' variant)
|
12 years ago |
Roberto Ierusalimschy
|
53210d7e5b
|
correct way (I hope) to convert floats to unsigned int
|
12 years ago |
Roberto Ierusalimschy
|
932e7fb0e1
|
'lua_tounsigned' takes number modulo 2^numbits as a result when
number is a float
(That may change...)
|
12 years ago |
Roberto Ierusalimschy
|
b5ec26101f
|
new API function 'lua_cvtonum' to convert a value (number or string)
to a number, following the rules of the language to create integers
or floats
|
12 years ago |
Roberto Ierusalimschy
|
67532d5a10
|
constant folding and API arithmetic with integers
|
12 years ago |
Roberto Ierusalimschy
|
88bf2f83c0
|
new function 'tointeger' + 'luaV_arith' replaced by 'luaT_trybinTM'
|
12 years ago |
Roberto Ierusalimschy
|
360587f319
|
favoring 'tonumber' over 'nvalue'
|
12 years ago |
Roberto Ierusalimschy
|
4abe99dc34
|
new interface for 'tonumber'
|
12 years ago |
Roberto Ierusalimschy
|
d4e6b75098
|
"integer" keys in tables are now lua_Integer, not 'int'.
|
12 years ago |
Roberto Ierusalimschy
|
01b6fe0cbf
|
new API function 'lua_isinteger'
|
12 years ago |
Roberto Ierusalimschy
|
7a543cfae6
|
|
12 years ago |
Roberto Ierusalimschy
|
8f8665fffa
|
'ttypenv' -> 'ttnov'
|
12 years ago |
Roberto Ierusalimschy
|
75250a237c
|
typos in comments
|
12 years ago |
Roberto Ierusalimschy
|
7ea68d84c4
|
added comment
|
12 years ago |
Roberto Ierusalimschy
|
0e9167bc72
|
missing brackets in 'if' body (no bug, only 'luaC_checkfinalizer' is
called to do nothing)
|
12 years ago |
Roberto Ierusalimschy
|
52f9ccd298
|
removed unreacheable 'lua_unlock'
|
12 years ago |
Roberto Ierusalimschy
|
ad5da6ba14
|
API functions get acceptable indices except when not possible (when
they modify the value at that index) + new macro 'ispseudo' +
specific test 'api_checkstackindex'
|
12 years ago |
Roberto Ierusalimschy
|
cf160abcf9
|
no more macro 'changenvalue'
|
12 years ago |
Roberto Ierusalimschy
|
53480f1163
|
details (remove of some extra spaces)
|
12 years ago |
Roberto Ierusalimschy
|
cc2a60ecb7
|
bugs in yields inside debug hooks
|
13 years ago |
Roberto Ierusalimschy
|
21ed264a38
|
compensate for 'GCSTEPSIZE' in GC steps
|
13 years ago |
Roberto Ierusalimschy
|
086da10dac
|
merge of fields 'lastmajormem' (used in gen. mode) and 'estimate'
(used in inc. mode)
|
13 years ago |
Roberto Ierusalimschy
|
398811a313
|
simpler macro 'luaC_condGC' + better 'step' in 'lua_gc' +
micro bug in 'luaC_checkfinalizer' (current sweep object could be
removed from 'allgc' list)
|
13 years ago |
Roberto Ierusalimschy
|
31829ad177
|
test for whether collector is running moved from function to
macro 'luaC_condGC'.
|
13 years ago |