Roberto Ierusalimschy
|
a71c0ab861
|
detail (removed useless '#include')
|
10 years ago |
Roberto Ierusalimschy
|
04ba6ea83b
|
new semantics for equality int-float
|
10 years ago |
Roberto Ierusalimschy
|
a1935b9cba
|
error message ("too complex" -> "too many registers") + MAXREGS
changed to 255 (no reason not to use maximum allowed)
|
10 years ago |
Roberto Ierusalimschy
|
513c639bf9
|
patch for last bug corrected to be against last released version
(and not against last version in RCS...)
|
10 years ago |
Roberto Ierusalimschy
|
69b5f7a410
|
some details in 'luaO_int2fb' + more consistent use of the locale
decimal point
|
10 years ago |
Roberto Ierusalimschy
|
ae76c39712
|
Bug: suspended '__le' metamethod can give wrong result
|
10 years ago |
Roberto Ierusalimschy
|
0d4a1f71db
|
re-organization of initial configuration options
|
10 years ago |
Roberto Ierusalimschy
|
67bf789462
|
avoid using API functions inside the core
|
10 years ago |
Roberto Ierusalimschy
|
48d0674c2e
|
more consistent use of locale radix character across Lua
|
10 years ago |
Roberto Ierusalimschy
|
6ffe006f5c
|
detail (removed unused macro VARBITS)
|
10 years ago |
Roberto Ierusalimschy
|
4998e852ec
|
new function 'log2' to test 'luaO_ceillog2' (if needed)
|
10 years ago |
Roberto Ierusalimschy
|
65ac789565
|
detail (comment)
|
10 years ago |
Roberto Ierusalimschy
|
cfc84c856d
|
'LUA_REAL_*' -> 'LUA_FLOAT_*' (everywhere else we are using 'float')
|
10 years ago |
Roberto Ierusalimschy
|
63720a4290
|
janitor work (comments, variable names, some other details)
|
10 years ago |
Roberto Ierusalimschy
|
484bf14a6b
|
calls to 'luaC_checkGC' in luaD_precall moved near to 'luaD_checkstack'
(which is what can need memory)
|
10 years ago |
Roberto Ierusalimschy
|
abb2f5511d
|
detail ('b + base' -> 'base + b' to follow all other similar uses)
|
10 years ago |
Roberto Ierusalimschy
|
fcc6e1220e
|
avoid expression with side effect (in debug mode) inside 'sizeof'
|
10 years ago |
Roberto Ierusalimschy
|
3a91274547
|
details (avoid 'lint' warnings)
|
10 years ago |
Roberto Ierusalimschy
|
f2a813ae10
|
details (avoid some 'lint' warnings)
|
10 years ago |
Roberto Ierusalimschy
|
e723c75c02
|
details (avoid 'lint' warnings)
|
10 years ago |
Roberto Ierusalimschy
|
b436ed58a3
|
'clearapihash' -> 'luaS_clearcache' and moved to 'lstring.c' (which
keeps all code related to this cache)
|
10 years ago |
Roberto Ierusalimschy
|
2b37f2150e
|
comments
|
10 years ago |
Roberto Ierusalimschy
|
331632e8d8
|
code detail ('if' -> '?:')
|
10 years ago |
Roberto Ierusalimschy
|
7d930ec694
|
use 'log2' when available
|
10 years ago |
Roberto Ierusalimschy
|
0cf3b6495a
|
'ci_func' don't need to be exported
|
10 years ago |
Roberto Ierusalimschy
|
b66fedadae
|
'lua_pushliteral' implemented with 'lua_pushstring' (to take
advantage of the cache)
|
10 years ago |
Roberto Ierusalimschy
|
fd6e680e21
|
detail
|
10 years ago |
Roberto Ierusalimschy
|
57c0db219b
|
line history keep lines without added 'return'
|
10 years ago |
Roberto Ierusalimschy
|
4ba0cb4580
|
always use macros to operate on lua_Numbers
|
10 years ago |
Roberto Ierusalimschy
|
a30c66f0fc
|
macro 'luai_apicheck'/'api_check' back with a 'lua_State' parameter
(some people use it)
|
10 years ago |
Roberto Ierusalimschy
|
bb4baa73ea
|
allocation function is not exactly API (and cannot raise errors
like other API functions); better not use 'api_check' for cheking it.
|
10 years ago |
Roberto Ierusalimschy
|
d7d44b038d
|
detail (use 'lua_pushliteral' to push an empty string)
|
10 years ago |
Roberto Ierusalimschy
|
297512b34c
|
avoid using 'lua_pushliteral' in a non-zero-terminated string
|
10 years ago |
Roberto Ierusalimschy
|
2ae2e6408e
|
avoid testing for NULL when marking objects that cannot be NULL
|
10 years ago |
Roberto Ierusalimschy
|
a80cada914
|
new cache for interning strings
|
10 years ago |
Roberto Ierusalimschy
|
a00013c8d0
|
'point2int' -> 'point2uint' (to reflect its actual result type)
|
10 years ago |
Roberto Ierusalimschy
|
b9a1f27250
|
do not attempt emergency collection while building state (it is
useless, and state can be inconsistent)
|
10 years ago |
Roberto Ierusalimschy
|
29aed28802
|
detail (use 'luaS_newliteral' when possible)
|
10 years ago |
Roberto Ierusalimschy
|
951b562cf8
|
configuration for numerical types through only one #define for
each type
|
10 years ago |
Roberto Ierusalimschy
|
6408bc0b7f
|
new macros 'chgfltvalue'/'chgivalue' (numerical for loop does
not need to set the type of its internal variable at each iteration)
|
10 years ago |
Roberto Ierusalimschy
|
91efb4b895
|
LUA_COMPAT_5_1 needs some options deprecated from 5.2 to 5.3
|
10 years ago |
Roberto Ierusalimschy
|
27c5b1b237
|
added patches to two bugs
|
10 years ago |
Roberto Ierusalimschy
|
d51bdc166d
|
bug: 'string.format("%f")' can cause a buffer overflow (with long doubles)
bug: 'debug.getlocal' on a coroutine suspended in a hook can crash
the interpreter
|
10 years ago |
Roberto Ierusalimschy
|
81245b1ad5
|
'numisinteger' (for table keys) replaced by 'luaV_tointeger' (old
'tointeger_aux'), which can do the same job.
|
10 years ago |
Roberto Ierusalimschy
|
397ce11996
|
make 'hashfloat' configurable
|
10 years ago |
Roberto Ierusalimschy
|
97f2aa5a44
|
bug: when manipulating other threads, there is no garanties about
their stack space
|
10 years ago |
Roberto Ierusalimschy
|
419e2cb01d
|
detail (file does not need 'string.h')
|
10 years ago |
Roberto Ierusalimschy
|
374f6c4612
|
detail ('fopen' needs 'stdio.h')
|
10 years ago |
Roberto Ierusalimschy
|
4bdf9962bf
|
bug: suspended function can have its 'func' field not pointing to
its function, crashing debug functions
|
10 years ago |
Roberto Ierusalimschy
|
e0306e386f
|
some changes in 'hashfloat' to avoid undefined (in ISO C) numerical
conversions
|
10 years ago |