Roberto Ierusalimschy
2f8c51a552
use unsigneds for unary minus, too
11 years ago
Roberto Ierusalimschy
2b4bd21585
'tonumber': base must be a number
12 years ago
Roberto Ierusalimschy
beff5b078a
'tonumber': does not accept numbers when given a base + convertion from
strings to numbers with a base moved to a separated function (more
modular)
12 years ago
Roberto Ierusalimschy
5ca5086c19
'tonumber' now works with integers too
12 years ago
Roberto Ierusalimschy
a83ed55f1e
added 'return' (when possible) to calls to error functions
12 years ago
Roberto Ierusalimschy
65e31fb179
Bug: load/loadfile returns wrong result when given an environment
for a binary chunk with no upvalues
12 years ago
Roberto Ierusalimschy
fc24a3a6c4
small bug: a reader function should not modify the Lua stack
13 years ago
Roberto Ierusalimschy
c5da4f4cd0
unused variable removed
13 years ago
Roberto Ierusalimschy
e21b26a964
avoid 'return' "to avoid warnings"
13 years ago
Roberto Ierusalimschy
3617e04e97
'lua_load' has an extra argument 'mode'
13 years ago
Roberto Ierusalimschy
fded7bef19
options for 'collectgarbage' renamed: "inc" -> "incremental";
"gen" -> "generational"
13 years ago
Roberto Ierusalimschy
6cce5c0601
new function 'luaL_loadfilex'
13 years ago
Roberto Ierusalimschy
7133e20c94
make treatment of 'pcall' and 'xpcall' more similar
13 years ago
Roberto Ierusalimschy
888d39ea75
refactoring of common parts of 'pcall' and 'xpcall' + avoids
stack errors on these functions (return error code instead)
13 years ago
Roberto Ierusalimschy
162ce8256e
lint (unused struct field)
13 years ago
Roberto Ierusalimschy
43c873895f
tonumber: base 10 is not special, no base is
13 years ago
Roberto Ierusalimschy
79cbc3468c
removed and deprecated functions really removed from the code base
14 years ago
Roberto Ierusalimschy
2f125ebc33
'deprecated' x 'removed' (they are not the same thing)
14 years ago
Roberto Ierusalimschy
22e1c5ebad
avoid conversion from 'const char*' to 'void *' (warning about 'const')
14 years ago
Roberto Ierusalimschy
ee7d0c2649
new macro 'luai_writeline' to print newlines (and flush 'stdout')
14 years ago
Roberto Ierusalimschy
98816d0ce5
small problems with 'luaone.c'
14 years ago
Roberto Ierusalimschy
c4ea0c3b29
detail (cleaning trailing spaces)
14 years ago
Roberto Ierusalimschy
511679313f
new function 'rawlen'
14 years ago
Roberto Ierusalimschy
aa6faa6331
own implementation of 'tunumber', so that it works correctly with
numbers outside the 'int' range
14 years ago
Roberto Ierusalimschy
d51743b0c7
removed 'newproxy'
14 years ago
Roberto Ierusalimschy
b83b6ba015
'loadin' -> 'load'
14 years ago
Roberto Ierusalimschy
81646af13b
'loadstring' deprecated; use 'load' instead
14 years ago
Roberto Ierusalimschy
233b71c092
comment
14 years ago
Roberto Ierusalimschy
c79b4a97aa
using 'strspn' to skip spaces in 'tonumber'
14 years ago
Roberto Ierusalimschy
e642cc4206
correct handling of negative numbers in non-10 bases by 'tonumber'
(e.g., tonumber(-34, 8))
14 years ago
Roberto Ierusalimschy
a289a62717
'loadin' should not check whether upvalue is called '_ENV',
because its name may be unknown when there is no debug information.
14 years ago
Roberto Ierusalimschy
0df2238063
name "_ENV" configurable through 'luaconf.h'
14 years ago
Roberto Ierusalimschy
6828f6d427
new parameter 'majorinc' to control frequency of major collections
in generational mode
14 years ago
Roberto Ierusalimschy
daa5fe3e31
'loadin' should accept any value for the environment (not only tables) +
it should check whether chunk has upvalue named '_ENV'
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
b98de30b8f
'ipair' is back
15 years ago
Roberto Ierusalimschy
bd262d591f
'coroutine' library separated from 'baselib'
15 years ago
Roberto Ierusalimschy
cca71912e6
'gcinfo' was deprecated in version 5.0.
15 years ago
Roberto Ierusalimschy
26d4a73962
with light C functions, 'pairs' does not need to keep 'next' as an
upvalue.
15 years ago
Roberto Ierusalimschy
11126422d9
option to return GC to normal (incremental, non generational) mode
15 years ago
Roberto Ierusalimschy
064e406f67
no more fenvs!
15 years ago
Roberto Ierusalimschy
74123e9686
draft version of a generational mode for garbage collection. (Not well
tested; no major collections; ...)
15 years ago
Roberto Ierusalimschy
62840c5fad
'ipairs' is deprecated
15 years ago
Roberto Ierusalimschy
489253d753
better definitions for lua_[gs]etglobal + less uses of ENVIRONINDEX
15 years ago
Roberto Ierusalimschy
25c557ec63
first version of _ENV; no more global variables
15 years ago
Roberto Ierusalimschy
0dc09cb42e
'unpack' moved to table library (and therefore "renamed" to
'table.unpack'.
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
a25b8ff69c
detail ('lua_tolstring' instead of lua_objlen)
15 years ago
Roberto Ierusalimschy
2e51792596
avoid using deprecated macros lua_[gs]etglobal
15 years ago