Roberto Ierusalimschy
|
3a15c7ce43
|
size for array part of a table ('sizearray') changed from 'int' to
'unsigned int', which allows twice as many elements in the array part
|
10 years ago |
Roberto Ierusalimschy
|
f5c690b684
|
details in comments
|
10 years ago |
Roberto Ierusalimschy
|
07c7fdb9df
|
simpler definition for 'setobj' (trust the compiler for the assignment)
|
10 years ago |
Roberto Ierusalimschy
|
ca41b43f53
|
type 'TString' refers directly to the structure inside the union
(union used only for size purposes)
|
10 years ago |
Roberto Ierusalimschy
|
c94f11d783
|
'IntPoint' -> 'point2int' + ensure that casted value fits in
destination type
|
11 years ago |
Roberto Ierusalimschy
|
14929f5764
|
use appropriate macros to convert GCObject to specific types
|
11 years ago |
Roberto Ierusalimschy
|
c98f195eb9
|
function 'luaV_numtointeger' changed to a global macro
'lua_numtointeger' (tricky, small, and useful in several places)
|
11 years ago |
Roberto Ierusalimschy
|
037a70dfea
|
cast_u2s/cast_s2u renamed l_castS2U/l_castU2S to be configurable from
outside (mostly for testing)
|
11 years ago |
Roberto Ierusalimschy
|
8f961da3db
|
macros cast_integer/cast_unsigned replaced by cast_u2s/cast_s2u, that
should be used only between lua_Integer and lua_Unsigned
|
11 years ago |
Roberto Ierusalimschy
|
675530c4d8
|
maximum size of array part of a table now is restricted not only by
the size of an 'int', but also by the size of a 'lua_Integer'
|
11 years ago |
Roberto Ierusalimschy
|
607be77ec8
|
some details to avoid warnings
|
11 years ago |
Roberto Ierusalimschy
|
86dd8bf3f5
|
no more 'L' in macros "luai_num*" (several places that use those macros
cannot throw errors anyway...)
|
11 years ago |
Roberto Ierusalimschy
|
1150873447
|
'luaC_newobj' does not handle special cases; only special case
now is threads, which do not use 'luaC_newobj' anymore.
|
11 years ago |
Roberto Ierusalimschy
|
26629d0af1
|
details (a few casts moved from macro invocation to macro definition)
|
11 years ago |
Roberto Ierusalimschy
|
9a871dd3db
|
tables and userdata all go to local list, too
|
11 years ago |
Roberto Ierusalimschy
|
90972ff136
|
LOCALBLACK changed to LOCALMARK and used also to control whether object
is in 'localgc' list + luaC_newobj by default puts object in 'localgc'
list
|
11 years ago |
Roberto Ierusalimschy
|
caceeab750
|
'next' field for tables changed from pointer to integer (for better
alignment on 64-bit machines)
|
11 years ago |
Roberto Ierusalimschy
|
453450d687
|
new macro 'l_floor' (allows 'floorf' even when other math operations
do not have an 'f' variant)
|
12 years ago |
Roberto Ierusalimschy
|
188192ce9a
|
'luai_hashnum' "inlined" into 'hashfloat'
|
12 years ago |
Roberto Ierusalimschy
|
d630daca1a
|
"legal" way to convert a float to an integer in C
|
12 years ago |
Roberto Ierusalimschy
|
88bf2f83c0
|
new function 'tointeger' + 'luaV_arith' replaced by 'luaT_trybinTM'
|
12 years ago |
Roberto Ierusalimschy
|
d4e6b75098
|
"integer" keys in tables are now lua_Integer, not 'int'.
|
12 years ago |
Roberto Ierusalimschy
|
07f861385e
|
first steps in the support of integers: basic representation + table indexing + basic API ops (tointeger/pushinteger) + equality + a few extra stuff
|
12 years ago |
Roberto Ierusalimschy
|
8287a0db55
|
detail
|
12 years ago |
Roberto Ierusalimschy
|
054c20cd5b
|
spaces -> tabs in #defines
|
13 years ago |
Roberto Ierusalimschy
|
678c1255c9
|
random seed used in the hash of all strings to avoid intentional
collisions
|
13 years ago |
Roberto Ierusalimschy
|
a4b96ce9a3
|
first implementation of long strings
|
13 years ago |
Roberto Ierusalimschy
|
9f1a8dbdd3
|
'eqstr' -> 'luaS_eqstr'
|
13 years ago |
Roberto Ierusalimschy
|
e21b26a964
|
avoid 'return' "to avoid warnings"
|
13 years ago |
Roberto Ierusalimschy
|
217b65e6d9
|
avoid some warnings about converting 32-bit shifts into 64-bit results
|
13 years ago |
Roberto Ierusalimschy
|
9caf5b4f79
|
lint (unused definition)
|
13 years ago |
Roberto Ierusalimschy
|
87912786af
|
dead objects are not collectable.
|
13 years ago |
Roberto Ierusalimschy
|
68ce878292
|
cannot compute 'mainposition' before checking whether key is nil
|
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
|
92afcf2823
|
no more 'luaH_setstr (used only once) + 'luaH_setint' receives value
to be set.
|
13 years ago |
Roberto Ierusalimschy
|
817f8674af
|
avoid warning about -unsigned value
|
14 years ago |
Roberto Ierusalimschy
|
f62565abea
|
avoid warnings with -Wstrict-overflow
|
14 years ago |
Roberto Ierusalimschy
|
3b44821334
|
stricter control (using tag variants) over closure kinds (Lua x C)
|
14 years ago |
Roberto Ierusalimschy
|
821bd7025e
|
more uniform names for 'equalobj'-related functions
|
14 years ago |
Roberto Ierusalimschy
|
9b7dddad7d
|
no need for two different implementations for equality (one raw and
one with metamethods)
|
14 years ago |
Roberto Ierusalimschy
|
c9ce754e38
|
comment
|
14 years ago |
Roberto Ierusalimschy
|
1ffdd0bc7a
|
detail (should use macro 'ttisdeadkey')
|
14 years ago |
Roberto Ierusalimschy
|
23b9ceb0a4
|
allows larger array parts in tables (no need to restrict it to 2^26)
|
14 years ago |
Roberto Ierusalimschy
|
d9ea6eca7c
|
macro 'key2tal' replaced by 'gkey' (as both were equal)
|
15 years ago |
Roberto Ierusalimschy
|
3819c30e55
|
better names for barrier macros
|
15 years ago |
Roberto Ierusalimschy
|
53f9499f7f
|
"light C function" is a better name than "C-function pointer"
|
15 years ago |
Roberto Ierusalimschy
|
7dfa4cd655
|
first implementation of light C functions
|
15 years ago |
Roberto Ierusalimschy
|
d394d5536a
|
new macro 'eqstr'
|
15 years ago |
Roberto Ierusalimschy
|
0bbdddc86b
|
allocator function receives the tag of object being allocated in 'osize'
when 'ptr' is NULL.
|
15 years ago |
Roberto Ierusalimschy
|
3c4d970a7b
|
comment typos
|
15 years ago |