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
|
eef22fa4ce
|
create error messages with a single concat, to avoid problems with
creating strings piecemeal
|
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
|
e0e406ead3
|
extra argument to instruction 'checkstack' (in 'testC')
|
13 years ago |
Roberto Ierusalimschy
|
30cea671a7
|
configurable 'directory separator' in 'package.searchpath'
|
13 years ago |
Roberto Ierusalimschy
|
a716ae1f50
|
avoids including 'stdio.h' everywhere (because of definitions for
luai_writestring/luai_writeline)
|
13 years ago |
Roberto Ierusalimschy
|
ea382b0be1
|
small bug: error message in 'io.lines' is not the error number
|
13 years ago |
Roberto Ierusalimschy
|
6d8d282e0f
|
avoid calling "extra value" as if it were a function option
|
13 years ago |
Roberto Ierusalimschy
|
00c8a17a2d
|
by default, do not use Windows' goodies in Windows CE build
|
13 years ago |
Roberto Ierusalimschy
|
166ce15512
|
cannot apply macro 'getstr' over NULL
|
13 years ago |
Roberto Ierusalimschy
|
87cf2bf711
|
extra comments about what fields are optional debug information
|
13 years ago |
Roberto Ierusalimschy
|
fd8a849621
|
detail (avoid applying macro 'getstr' with a function-call argument)
|
13 years ago |
Roberto Ierusalimschy
|
5a568a3b01
|
detail (comment)
|
13 years ago |
Roberto Ierusalimschy
|
475e6c5352
|
'lua_setglobal/lua_getglobal' implemented as functions to avoid
problems with stack indices
(e.g., lua_getglobal(L, lua_tostring(L, -1)) )
|
13 years ago |
Roberto Ierusalimschy
|
af00a0772c
|
new functions lua_rawsetp/lua_rawgetp
|
13 years ago |
Roberto Ierusalimschy
|
6819c2a98a
|
silly bug in 5.2 beta: assignment conflict code did not test to check
whether variable was a table element
|
13 years ago |
Roberto Ierusalimschy
|
1dd8af67b6
|
BUG: parser may collect a prototype while building it.
|
13 years ago |
Roberto Ierusalimschy
|
1350a2bcb5
|
more macros to try to make NaN trick work with other sizes of
IEEE float numbers. (It has not been tested with such different
sizes...)
|
13 years ago |
Roberto Ierusalimschy
|
217e67cb22
|
new type 'l_noret' for function that do not return
|
13 years ago |
Roberto Ierusalimschy
|
9bbfe9f3fd
|
avoid the word 'TRICKLE' in macro name (as it has nothing to do
with its meaning)
|
13 years ago |
Roberto Ierusalimschy
|
788a0ecd27
|
'luaC_separateudata' renamed to 'separatetobefnz' and called only
from 'lgc.c'
|
13 years ago |
Roberto Ierusalimschy
|
6d86b937e4
|
'luaC_separateudata' called from 'luaC_freeallobjects' + removed
extra 'luaF_close' (already being called by 'close_state')
|
13 years ago |
Roberto Ierusalimschy
|
bc90cf4b83
|
retraverse all gray lists together to avoid traversing some weak
tables twice (as they may change lists when traversed)
|
13 years ago |
Roberto Ierusalimschy
|
d79190e27f
|
missing 'LUA_CORE' definition
|
13 years ago |
Roberto Ierusalimschy
|
9caf5b4f79
|
lint (unused definition)
|
13 years ago |
Roberto Ierusalimschy
|
50cddefeeb
|
lint (wrong identation)
|
13 years ago |
Roberto Ierusalimschy
|
e24f1ee9ff
|
lint (unreachable code)
|
13 years ago |
Roberto Ierusalimschy
|
f3b0eb3ecf
|
lint (unused macros)
|
13 years ago |
Roberto Ierusalimschy
|
162ce8256e
|
lint (unused struct field)
|
13 years ago |
Roberto Ierusalimschy
|
ad90447eb6
|
detail: new macros for non-valid values
|
13 years ago |
Roberto Ierusalimschy
|
87912786af
|
dead objects are not collectable.
|
13 years ago |
Roberto Ierusalimschy
|
5645a84368
|
detail about 'trick' function (nil turn it off)
|
13 years ago |
Roberto Ierusalimschy
|
95ed6c1127
|
better(?) scheme for cleaning weak tables; all ressurected objects
are removed from weak values before finalization
|
13 years ago |
Roberto Ierusalimschy
|
12ab78aca6
|
detail in extra trace code: total bytes is given by 'gettotalbytes',
not by 'totalbytes' counter.
|
13 years ago |
Roberto Ierusalimschy
|
45c346645c
|
avoid clearing ephemeron tables that have nothing to be cleaned
(no white elements)
|
13 years ago |
Roberto Ierusalimschy
|
68ce878292
|
cannot compute 'mainposition' before checking whether key is nil
|
13 years ago |
Roberto Ierusalimschy
|
500336efd0
|
small bug in if-goto optimization: block must be closed ('leaveblock')
*before* the jump out ('escapelist')
|
13 years ago |
Roberto Ierusalimschy
|
5ea8f108e1
|
using 'long' versions of 'fseek'/'ftell' when available
|
13 years ago |
Roberto Ierusalimschy
|
2275030b86
|
details (and missing 'break's)
|
13 years ago |
Roberto Ierusalimschy
|
05de314701
|
upvalue names always can be NULL (if debug info was removed), so
always check for that case
|
13 years ago |
Roberto Ierusalimschy
|
d281d23f8d
|
detail (make 'lua_assert' a valid expression even when turned off)
|
13 years ago |
Roberto Ierusalimschy
|
ec431ce5db
|
comment
|
13 years ago |
Roberto Ierusalimschy
|
c8f47c2934
|
optimization for |if cond then goto|
|
13 years ago |
Roberto Ierusalimschy
|
ca458f1f52
|
'luaK_goiffalse' exported
|
13 years ago |
Roberto Ierusalimschy
|
121dc8af66
|
cleaner code for 'if' construct
|
13 years ago |
Roberto Ierusalimschy
|
a8675966ec
|
detail: centralize all tests for Windows on variable 'LUA_WIN'
|
13 years ago |
Roberto Ierusalimschy
|
3dc5475e23
|
'nCcalls' should be local to each thread, as each thread may have its
own C stack (with LuaThreads or something similar)
|
13 years ago |
Roberto Ierusalimschy
|
8a008a2057
|
bug: __newindex metamethod may not work if metatable is its own
metatable.
|
13 years ago |
Roberto Ierusalimschy
|
89b59eee73
|
bug: __newindex metamethod may not work if metatable is its own
metatable + luaV_settable does not create entry when there is a
metamethod (and therefore entry is useless)
|
13 years ago |
Roberto Ierusalimschy
|
166dd0261a
|
new option '-E' to avoid environment variables
|
13 years ago |