Roberto Ierusalimschy
282d67d8fc
bitlib has been deprecated
11 years ago
Roberto Ierusalimschy
5ff1c18a71
back with 'L' for macros 'luai_num*', but now with a new macro
'luai_numinvalidop' to protect constant folding
11 years ago
Roberto Ierusalimschy
c6c41e85b2
more uniformity for defining system-dependent features
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
73c5515e00
details (comments)
11 years ago
Roberto Ierusalimschy
124598917f
"./?/init.lua" added to default path
11 years ago
Roberto Ierusalimschy
b5f5fcd782
use different constants (instead of different values for the same constant)
to define number sizes (LUA_INT_INT/LUA_INT_LONG/LUA_INT_LONGLONG and
LUA_REAL_FLOAT/LUA_REAL_DOUBLE/LUA_REAL_LONGDOUBLE) + use __int64 and
I64 instead of long long (and ll) for Windows
11 years ago
Roberto Ierusalimschy
2b4975dca7
LUA_SMALL_* changed to LUA_*SIZE + added support for long double + better
support for ANSI systems
12 years ago
Roberto Ierusalimschy
45f3797a5b
'long' may have more than 32 bits in some machines; use 'int' for
small lua_Integer unless necessary to use 'long'
12 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
0beeb4f6fa
configuration of number sizes goes "mainstream"
12 years ago
Roberto Ierusalimschy
3563b3f519
first version of control for number sizes (still in 'local' section)
12 years ago
Roberto Ierusalimschy
d46ed54646
no more IEEE tricks
12 years ago
Roberto Ierusalimschy
8fff05f6d0
integer division operates only on integers
12 years ago
Roberto Ierusalimschy
a2f5c28a80
new operation '//' (integer division)
12 years ago
Roberto Ierusalimschy
944709c77b
more definitions to support integer formatting
12 years ago
Roberto Ierusalimschy
75250a237c
typos in comments
12 years ago
Roberto Ierusalimschy
181a837cac
small improvement in the support of 'float' as lua_Number
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
4ac55997ec
typo
12 years ago
Roberto Ierusalimschy
c2361e0b61
definition for 'LUAI_MAXSHORTLEN' moved to luaconf.h (too important)
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
138be5b843
no more explicit support for 'luaall_c': unifying file can do
the work
13 years ago
Roberto Ierusalimschy
0f388193b3
'lUA' -> 'LUA'
13 years ago
Roberto Ierusalimschy
7948b8568e
when available, use '*_r' versions of 'gmtime' and 'localtime'
13 years ago
Roberto Ierusalimschy
3a997eefb5
MS_ASMTRICK is only valid on MS compilers (not any Windows compiler)
13 years ago
Roberto Ierusalimschy
a716ae1f50
avoids including 'stdio.h' everywhere (because of definitions for
luai_writestring/luai_writeline)
13 years ago
Roberto Ierusalimschy
00c8a17a2d
by default, do not use Windows' goodies in Windows CE build
13 years ago
Roberto Ierusalimschy
9bbfe9f3fd
avoid the word 'TRICKLE' in macro name (as it has nothing to do
with its meaning)
13 years ago
Roberto Ierusalimschy
a8675966ec
detail: centralize all tests for Windows on variable 'LUA_WIN'
13 years ago
Roberto Ierusalimschy
bae57ea088
'M_IX86' -> '_M_IX86'
13 years ago
Roberto Ierusalimschy
7978a8d8b2
added '_M_IX86' in NaN trick
14 years ago
Roberto Ierusalimschy
49a01c0991
'package.loaders' -> 'package.searchers'
14 years ago
Roberto Ierusalimschy
fd80e63468
configuration for NaN trick big-endian + macro 'luai_checknum' to
ensure numbers comming from C are not "improper" (some kinds of
signaling NaNs)
14 years ago
Roberto Ierusalimschy
ee7d0c2649
new macro 'luai_writeline' to print newlines (and flush 'stdout')
14 years ago
Roberto Ierusalimschy
d34271fe42
MacOS 'strtod' handles hexa formats too
14 years ago
Roberto Ierusalimschy
2aff901c93
Mac OS defines LUA_USE_AFORMAT and LUA_USE_LONGLONG by default
14 years ago
Roberto Ierusalimschy
bad231c481
'LUA_USELONGLONG' -> 'LUA_USE_LONGLONG'
14 years ago
Roberto Ierusalimschy
a2b1c279f1
'LUA_USELONGLONG' on by default on Linux + LUA_USE_HEXAFLOAT renamed
to LUA_USE_STRTODHEX (as Lua 5.2 always *uses* hexa floats)
14 years ago
Roberto Ierusalimschy
af119c8b55
official support for floating hexa numerals
14 years ago
Roberto Ierusalimschy
81646af13b
'loadstring' deprecated; use 'load' instead
14 years ago
Roberto Ierusalimschy
8c21f463ed
'debug' library is loaded by default
14 years ago
Roberto Ierusalimschy
e885b91326
'luaL_typeerror' deprecated
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
fdd5f2f7a3
comment typos
14 years ago
Roberto Ierusalimschy
b9f371a3c2
added another option for ieeeendian
14 years ago
Roberto Ierusalimschy
da57477c3d
added more platforms for ieeeendianess + small comments
14 years ago
Roberto Ierusalimschy
6b053a63cb
added check for architectures with known endianess (only i386 now)
14 years ago
Roberto Ierusalimschy
6098e06e09
better organization for coercion functions between lua_Number and
integer types + IEEE trick to be used in most platforms, by default
14 years ago
Roberto Ierusalimschy
0df2238063
name "_ENV" configurable through 'luaconf.h'
14 years ago