Roberto Ierusalimschy
5d628519d3
simpler definition for 'luaV_tonumber_'
10 years ago
Roberto Ierusalimschy
244646bdf7
detail (LUAL_BUFFERSIZE has a larger variation among different
platforms)
10 years ago
Roberto Ierusalimschy
5bdfefd3a5
allows calling luaL_checkstack with no message (in runC)
10 years ago
Roberto Ierusalimschy
5873786e27
small bug (error of "chunk has too many lines" might use 't.token'
before reading the first token)
10 years ago
Roberto Ierusalimschy
cb59019f58
uses return value from luaL_getmetatable
10 years ago
Roberto Ierusalimschy
52c0f9575b
uses return value from lua_getfield
10 years ago
Roberto Ierusalimschy
4fde357130
details (matching parameter names with manual)
10 years ago
Roberto Ierusalimschy
e5fd1e5fe2
details (match parameter names with lua.h and manual)
10 years ago
Roberto Ierusalimschy
87b179e71d
detail (use new returned value from 'lua_getglobal' )
10 years ago
Roberto Ierusalimschy
b401d37188
detail (to avoid a "to avoid warnings" return)
10 years ago
Roberto Ierusalimschy
6624ccff26
independent code for 'printstack' + test for panic function can
ran code there
10 years ago
Roberto Ierusalimschy
9a38c08011
no need to ensure any stack space for panic function + some changes
in 'tryfuncTM' (small simplification)
10 years ago
Roberto Ierusalimschy
be87789a6c
details
10 years ago
Roberto Ierusalimschy
d1d1ddec1e
details
10 years ago
Roberto Ierusalimschy
bfa0898312
bug: memory error in panic mode does not push error message on
the stack + stack check in tryfuncTM + comments
10 years ago
Roberto Ierusalimschy
79b0d05480
new function 'T.checkpanic' (to check panic errors)
10 years ago
Roberto Ierusalimschy
779381fe9e
detail (comment)
10 years ago
Roberto Ierusalimschy
b6911c177d
luaL_loadbuffer replaced by luaL_loadstring (to test luaL_loadstring)
+ 'rawgetp'/'rawsetp' added to C interpreter
10 years ago
Roberto Ierusalimschy
9212175ffb
added missing cases for debug info about tag methods +
better error message for bitwise operators
10 years ago
Roberto Ierusalimschy
ad20689feb
better error message for bitwise operators (they are not arithmetic...)
10 years ago
Roberto Ierusalimschy
e320790154
using address instead of string for key for table 'CLIBS' in the
registry
10 years ago
Roberto Ierusalimschy
fee3aa518d
using address key (light userdata) for hook table, instead of
string
10 years ago
Roberto Ierusalimschy
b58602d93d
removed unneeded test (result of b_str2int is already checked
against length)
10 years ago
Roberto Ierusalimschy
74e10b9c3b
details (error messages)
10 years ago
Roberto Ierusalimschy
b044b8c182
detail (line break)
10 years ago
Roberto Ierusalimschy
a113e1498d
when checking thread consistency, check its entire stack (always
the entire stack must have valid values)
10 years ago
Roberto Ierusalimschy
17ca3b1763
cleaner test for overflow for range of 'math.random'
10 years ago
Roberto Ierusalimschy
50b18f60cb
detail
10 years ago
Roberto Ierusalimschy
ad73e5156e
more direct way to fill sign-extension extra bytes when packing
integers with sizes larger than lua_Integer + added comments
10 years ago
Roberto Ierusalimschy
720c68dabb
removed repeated flags (-Wall/-Wdisabled-optimization) + removed flag
-Wcast-align (Lua does some unconventional casts) + added flag -std=c99
+ added file lprefix.h in dependency lists
10 years ago
Roberto Ierusalimschy
81c39a5244
no need to cast '*s' to unsigned char when we know it is a digit +
no need to call 'luaO_hexavalue' for decimal digits
10 years ago
Roberto Ierusalimschy
cfabcbfb17
added macro for configuring padding value in 'string.pack'
10 years ago
Roberto Ierusalimschy
bde14c3adc
macro to change method of conversion from float to integer (make it
use floor intead of requiring an exact integral value)
10 years ago
Roberto Ierusalimschy
4b839d7c72
Definitions for Lua code that must come before any other header file
10 years ago
Roberto Ierusalimschy
c49edc4566
keep "#include <windows.h>" in this file, but without the
previous requirement that it must be included before any other
header file (it doesn't seem to matter)
10 years ago
Roberto Ierusalimschy
c5d52a5468
Windows uses "LONGLONG" option, even not having long long (it has __int64)
10 years ago
Roberto Ierusalimschy
e75c0148c3
comments (references to "ANSI C" changed to "ISO C", which is the
international name
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
c25072a246
'lua_load' sets _ENV for any chunk with upvalues (not just those
with exactly one upvalue)
10 years ago
Roberto Ierusalimschy
1a69a3ecea
LUA_WIN -> LUA_USE_WINDOWS
10 years ago
Roberto Ierusalimschy
dcfc3c9405
new option '=' (native endian) for pack/unpack
10 years ago
Roberto Ierusalimschy
4542fb9f78
comments (a few extra quotes around identifiers)
10 years ago
Roberto Ierusalimschy
80e817719d
default changed from C89 to C99 + extra tests before using C99
features (when possible) + LUA_32BITS use 'int' when possible
('long' can be 64 bits)
10 years ago
Roberto Ierusalimschy
96f3a31b24
Better organization of definitions in categories + removed
'_CRT_SECURE_NO_WARNINGS' (useless there) + LUA_ENV/luai_writestring/
luai_writeline/luai_writestringerror/LUA_INT32/LUAI_UMEM/LUAI_MEM
moved to other places (no need to be in luaconf.h) + changed definition
for LUAL_BUFFERSIZE
10 years ago
Roberto Ierusalimschy
ff6c034330
configurations for types 'lu_mem'/'l_mem'/'Instruction' moved to here
(from 'luaconf.h'), as they are not needed by the API and probably
will not be changed
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
351a446ec5
definition for 'LUA_ENV' moved from 'luaconf.h' to here (no need to
be visible outside Lua + no need for easy redefinitions)
10 years ago
Roberto Ierusalimschy
e9885efc7c
added comment and assert about an (impossible) division by zero
10 years ago
Roberto Ierusalimschy
59fbbf0a65
small simplifications in code for 'lua_strx2number'
10 years ago
Roberto Ierusalimschy
61c3c80177
detail
10 years ago