Roberto Ierusalimschy
130c0e40e0
new constant 'MAX_SIZE', distinct from 'MAX_SIZET', for sizes visible
from Lua; these must fit in a lua_Integer
12 years ago
Roberto Ierusalimschy
fc083f1138
removed all tricks for conversions + 'luai_hashnum' moved to ltable.c
12 years ago
Roberto Ierusalimschy
d630daca1a
"legal" way to convert a float to an integer in C
12 years ago
Roberto Ierusalimschy
e2c8c756ee
removed 'IEEE tricks' (should not be needed in Lua with integers)
12 years ago
Roberto Ierusalimschy
a80a2b5e56
new cast macros for lua_Integer and lua_Unsigned
12 years ago
Roberto Ierusalimschy
b559aed2d3
'l_tg' was renamed to 'l_mathop' and this use was not corrected at
the time
12 years ago
Roberto Ierusalimschy
181a837cac
small improvement in the support of 'float' as lua_Number
12 years ago
Roberto Ierusalimschy
d58ce8106e
macro 'lua_number2unsigned' also needs proper definition if
lua_Number is float
12 years ago
Roberto Ierusalimschy
31f7d553e4
LUA_CORE condition removed from definition of some 'tricks' (as it
controlled only a few other defines) + MS_ASMTRICK renamed to
LUA_MSASMTRICK
12 years ago
Roberto Ierusalimschy
5adb5a4812
definition for 'MAX_LMEM'
13 years ago
Roberto Ierusalimschy
77cbd817d1
better(?) handling of '#define's for IEEE-related tricks + avoid using
IEEE trick for 64-bit integer types (lua_Integer on 64-bit machines)
13 years ago
Roberto Ierusalimschy
afc3fcf952
definition for 'LUA_MAXSHORTLEN' moved to 'lstring.c' (used only there)
13 years ago
Roberto Ierusalimschy
a4b96ce9a3
first implementation of long strings
13 years ago
Roberto Ierusalimschy
138be5b843
no more explicit support for 'luaall_c': unifying file can do
the work
13 years ago
Roberto Ierusalimschy
51650eac78
small change to avoid warnings of non-specified order of access
to volatile fields
13 years ago
Roberto Ierusalimschy
217e67cb22
new type 'l_noret' for function that do not return
13 years ago
Roberto Ierusalimschy
9caf5b4f79
lint (unused definition)
13 years ago
Roberto Ierusalimschy
d281d23f8d
detail (make 'lua_assert' a valid expression even when turned off)
13 years ago
Roberto Ierusalimschy
5017cc6ba2
simpler 'luai_apicheck' (and avoids compilation error...)
14 years ago
Roberto Ierusalimschy
3cf1729a02
new macro 'lua_longassert' that is equivalent to an assertion without
a stringfication of the condition, to avoid too long string literals
(limited by C90 to ~510 characters)
14 years ago
Roberto Ierusalimschy
98816d0ce5
small problems with 'luaone.c'
14 years ago
Roberto Ierusalimschy
f6bd8b1147
better control for GC running or stopped
14 years ago
Roberto Ierusalimschy
0b3f4e254e
more efficient hash for numbers in IEEE754 machines
14 years ago
Roberto Ierusalimschy
75d8470f0f
new macro 'cast_uchar'
14 years ago
Roberto Ierusalimschy
f722ba6890
code should not use "defined" types, but "typedef"s types when they
are available (i.e., after including lua.h) + small changes to make
conversions more portable across diferent types for lua_Number
(long double) and lua_Unsigned (long long unsigned)
14 years ago
Roberto Ierusalimschy
f1629217f1
code for conversion macros moved from luaconf to llimits + 'uint'
renamed to 'unsigned' in those macros
14 years ago
Roberto Ierusalimschy
bd619b9311
new macro MAXUPVAL (maximum number of upvalues per closure)
15 years ago
Roberto Ierusalimschy
ddf1f2a053
GC should not run when stopped, even in hard tests
15 years ago
Roberto Ierusalimschy
ad2b5decc8
'lua_assert' can be empty when assertions are off
15 years ago
Roberto Ierusalimschy
3eb1788bb4
new way to control GC speed (keeping a 'debt' counter)
15 years ago
Roberto Ierusalimschy
4db6f20770
ensure that 'luai_userstatethread' is always called (even if
'stack_init' throws a memory error)
15 years ago
Roberto Ierusalimschy
46f1429936
more options moved from luaconf.h into internal files
15 years ago
Roberto Ierusalimschy
de6fc75d63
several configuration options that do not change often moved out of
luaconf.h and into more internal files
15 years ago
Roberto Ierusalimschy
b51d76ce8d
when doing hard memory tests, perform a full GC at every possible step
15 years ago
Roberto Ierusalimschy
4a714cebd1
API checks now have explanatory messages
15 years ago
Roberto Ierusalimschy
f76f4cb79d
new way to control stack overflow, controling only total size of the stack
16 years ago
Roberto Ierusalimschy
eb8499c8e0
use of LUAI_UINT32 replaced by 'unsigned LUA_INT32' (one less
definition needed)
16 years ago
Roberto Ierusalimschy
4a67e48611
new macro 'condmovestack' instead of 'condhardstacktests'
16 years ago
Roberto Ierusalimschy
a7c9e45c64
avoid trailing white spaces
18 years ago
Roberto Ierusalimschy
0fd6466957
lua_assert is an internal matter, not to be configured
19 years ago
Roberto Ierusalimschy
c505f341d6
small changes in casts
19 years ago
Roberto Ierusalimschy
98296f6b45
some bugs related to stack reallocation
19 years ago
Roberto Ierusalimschy
d96f088a26
'lua_lock' and similars should be hard to use
20 years ago
Roberto Ierusalimschy
370d31a559
`luac´ -> `luai' (to avoid confusion with other luac stuff)
20 years ago
Roberto Ierusalimschy
f8df21bd20
`luaconf.h´ exports all its definitions always (so all of them
must have a lua/LUA prefix).
20 years ago
Roberto Ierusalimschy
5be517602e
no more generational collector (and no more `noinc' mode)
20 years ago
Roberto Ierusalimschy
c6254dceff
a different option for the GC
20 years ago
Roberto Ierusalimschy
2f82bf6fe9
better support for 64-bit machines
20 years ago
Roberto Ierusalimschy
226c57fec0
simpler configuration to turn on all asserts
20 years ago
Roberto Ierusalimschy
42b74ccf1d
libraries may want to use `lua_assert' too...
21 years ago