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
Roberto Ierusalimschy
9de384e27a
removed useless 'include math.h'
10 years ago
Roberto Ierusalimschy
4b526045fa
comment
10 years ago
Roberto Ierusalimschy
4870194380
small reorganization of tests around LUA_USE_C99
10 years ago
Roberto Ierusalimschy
41d0e66184
comments + Windows numeric types not used if LUA_ANSI is defined
10 years ago
Roberto Ierusalimschy
aa1bd8876c
comments
10 years ago
Roberto Ierusalimschy
7314acaa80
'T.limits' reports some more useful limits
10 years ago
Roberto Ierusalimschy
4b2521cd9e
better (and safer?) way to test native size of type 'int'
10 years ago
Roberto Ierusalimschy
491103708e
'MAXSTACK' -> 'MAXREGS' and moved to 'lcode.c' (there is no reason
to change that constant...)
10 years ago
Roberto Ierusalimschy
fa4d5c8689
pack/unpack do not handle final '\0' as an "option" (it streches
unnecessarily the switch range)
10 years ago
Roberto Ierusalimschy
aef2d711b1
detail
10 years ago
Roberto Ierusalimschy
bdf566a8a3
`name' in comments changed to 'name'
10 years ago
Roberto Ierusalimschy
c3c78030f7
avoid redeclaration of _CRT_SECURE_NO_WARNINGS + 'lua_numtointeger' ->
'lua_numbertointeger'
10 years ago
Roberto Ierusalimschy
ff9ca88aa6
added some casts to avoid warnings in some compilers
10 years ago
Roberto Ierusalimschy
463edee2fd
'lua_numtointeger' -> 'lua_numbertointeger'
10 years ago
Roberto Ierusalimschy
88ff582fd8
detail (using 'sizeof' instead of 'strlen' for length of a constant
string)
10 years ago
Roberto Ierusalimschy
6b12b82532
added 'l_' prefix for names that can be redefined externally
10 years ago
Roberto Ierusalimschy
d7a0179cd6
use 'opf' (float) variants only when explicitly allowed (LUA_USE_C99)
10 years ago
Roberto Ierusalimschy
6d613817d4
comments
10 years ago
Roberto Ierusalimschy
b8d412aa07
error in comment
10 years ago
Roberto Ierusalimschy
961760c9b6
message handler always adds a traceback to messages (even if they
are not strings), unless they have a __tostring method.
10 years ago
Roberto Ierusalimschy
57559547a3
in 'pack'/'unpack', endianness and alignment treated like options +
small changes in names and handling of internal options ('KOption')
10 years ago
Roberto Ierusalimschy
cfa84e1232
does not use 'long long' when LUA_ANSI is set
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
ea3155e380
'debug.sizeof' removed
10 years ago
Roberto Ierusalimschy
c172a4f7c2
'dumpint' and related functions replaced by 'string.pack'/'string.unpack'
10 years ago
Roberto Ierusalimschy
f8e0d33b25
added "_CRT_SECURE_NO_WARNINGS" for Windows (to avoid warnings about
several standard C functions) + small changes in '#include's
10 years ago
Roberto Ierusalimschy
745618d941
'charpatt' -> 'charpattern'
10 years ago
Roberto Ierusalimschy
89602bf747
'lua_strtonum' -> 'lua_stringtonum'
10 years ago
Roberto Ierusalimschy
56d4537879
'$c' in 'lua_pushfstring' prints non-printable characters with
their codes
10 years ago
Roberto Ierusalimschy
18014ef2fd
better handling of systems that do not support 'long long'
10 years ago
Roberto Ierusalimschy
ffe7401ceb
avoid warnings in macro 'luaM_reallocv' + comments
10 years ago
Roberto Ierusalimschy
65ec3379b1
added some casts for the cases when lua_Number != double
10 years ago
Roberto Ierusalimschy
85fc9ecd5f
detail ('G(L)' -> 'g')
10 years ago
Roberto Ierusalimschy
2a21f6c894
'lua_Kcontext' -> 'lua_KContext'
10 years ago
Roberto Ierusalimschy
3670db99b6
comments
10 years ago
Roberto Ierusalimschy
e14a02c24f
when thread yields, real "func" is in field 'extra', not in 'func'
10 years ago