Roberto Ierusalimschy
4a1612ff9b
new experimental syntax using reserved word 'undef'
7 years ago
Roberto Ierusalimschy
34b00c16e2
removed compatibility code with older versions
7 years ago
Roberto Ierusalimschy
b7edf5d2d8
metamethods for 'removekey'/'keyin'
7 years ago
Roberto Ierusalimschy
d766e2ae17
first (parcial) implementation of 'keyin'/'removekey'
(still no metamethods, no raw verssions)
7 years ago
Roberto Ierusalimschy
56e50e8bc5
'collectgarbage' returns old mode when changing mode
7 years ago
Roberto Ierusalimschy
e4e5aa85a2
detail ('signal' -> 'sign' in comments)
7 years ago
Roberto Ierusalimschy
5a1c8d8ef3
new constant 'LUA_GNAME' for the name of the global table "_G"
7 years ago
Roberto Ierusalimschy
72d82a296c
revamping the incremental collector
Some simplifications (not counting bytes, couting only slots visited;
no more 'gcfinnum'); more GC parameters; using vararg in 'lua_gc' to
set parameters in different GC modes
8 years ago
Roberto Ierusalimschy
f5f3df3bd1
generational collection: new attempt (still incomplete)
8 years ago
Roberto Ierusalimschy
dbb6f11e8e
bug (with compat on): 'ipairs' can work with any type that provides
an __index; so, 'pairsmeta' should not check for tables. ('pairs'
already checks for tables through 'next'.)
8 years ago
Roberto Ierusalimschy
82a8e06524
details ('error' does not coerce numbers to strings + comments)
9 years ago
Roberto Ierusalimschy
c874abac98
with 'fast tracks', there is no need to do raw accesses in 'ipairs'
9 years ago
Roberto Ierusalimschy
2b1fc1b38c
with string cache, it is not that important for 'type' to avoid
'lua_pushstring'
10 years ago
Roberto Ierusalimschy
e723c75c02
details (avoid 'lint' warnings)
10 years ago
Roberto Ierusalimschy
27ab59bc16
'ipairs' needs an argument
10 years ago
Roberto Ierusalimschy
594d7266af
'assert' checks that it has (at least) one parameter + 'assert' ensures
it passes only one value to 'error'
10 years ago
Roberto Ierusalimschy
b58602d93d
removed unneeded test (result of b_str2int is already checked
against length)
10 years ago
Roberto Ierusalimschy
28fdbcf393
added include for 'lprefix.h', for stuff that must be added before
any other header file
10 years ago
Roberto Ierusalimschy
05afee0f50
definitions for 'luai_writestring'/'luai_writeline'/'luai_writestringerror'
moved to 'lauxlib.h' (they do not need to be stable or configurable) +
prefixes changed from 'luai_' to 'lua_' (they are not part of the core)
10 years ago
Roberto Ierusalimschy
bdf566a8a3
`name' in comments changed to 'name'
10 years ago
Roberto Ierusalimschy
0d31efb365
'lua_stringtonum' -> 'lua_stringtonumber'
10 years ago
Roberto Ierusalimschy
f97c64d7bf
macros 'LUA_QL'/'LUA_QL' deprecated
10 years ago
Roberto Ierusalimschy
89602bf747
'lua_strtonum' -> 'lua_stringtonum'
10 years ago
Roberto Ierusalimschy
2a21f6c894
'lua_Kcontext' -> 'lua_KContext'
10 years ago
Roberto Ierusalimschy
798660c9cd
deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.)
10 years ago
Roberto Ierusalimschy
d35fff16d5
'ipairs' always stops at first nil element
10 years ago
Roberto Ierusalimschy
6384475ec4
'luaL_getmetafield' returns type of metafield (instead of a boolean)
10 years ago
Roberto Ierusalimschy
7f1a2ad699
new functions 'lua_geti/lua_seti' (non raw)
10 years ago
Roberto Ierusalimschy
2be88d5084
'lua_Ctx' -> 'lua_Kcontext'
10 years ago
Roberto Ierusalimschy
61fa462535
added cast to avoid warning
10 years ago
Roberto Ierusalimschy
f9037ae8c1
'ipairs' respects metamethods
10 years ago
Roberto Ierusalimschy
1aa4f69b51
new type 'lua_Ctx' for continuation-function contexts (to allow type
to be configurable)
10 years ago
Roberto Ierusalimschy
16b4110521
function 'type' keeps type names as upvalues to avoid creating strings
everytime it is called
10 years ago
Roberto Ierusalimschy
b9dcf9974d
detail (typos in comments)
11 years ago
Roberto Ierusalimschy
6f6fd96e3b
new type lua_KFunction + no more 'lua_getctx'
11 years ago
Roberto Ierusalimschy
9e68c047ae
'assert' does not assume that the error object is a string
11 years ago
Roberto Ierusalimschy
e2be310a85
better(?) implementation for 'pcall'/'xpcall' (regarding the insertion
of the boolean first result)
11 years ago
Roberto Ierusalimschy
c549d4fe64
'lua_strtonum' (and 'luaO_str2num') now return string size, instead of
receiving it
11 years ago
Roberto Ierusalimschy
a3addae036
lua_gettable and similars return type of gotten value
11 years ago
Roberto Ierusalimschy
6a24bd17a8
no more second result from 'collectgarbage"count"' (as Lua seldom
will need lua_Number to be an integer)
11 years ago
Roberto Ierusalimschy
733c58595b
no more local collection
11 years ago
Roberto Ierusalimschy
686e57cf9c
GC local pause configurable
11 years ago
Roberto Ierusalimschy
677d90165f
no more generational collection !!!
11 years ago
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