Roberto Ierusalimschy
|
bdf566a8a3
|
`name' in comments changed to 'name'
|
2014-10-25 09:50:46 -02:00 |
Roberto Ierusalimschy
|
ff9ca88aa6
|
added some casts to avoid warnings in some compilers
|
2014-10-24 09:42:29 -02:00 |
Roberto Ierusalimschy
|
f97c64d7bf
|
macros 'LUA_QL'/'LUA_QL' deprecated
|
2014-10-17 13:28:21 -03:00 |
Roberto Ierusalimschy
|
56d4537879
|
'$c' in 'lua_pushfstring' prints non-printable characters with
their codes
|
2014-10-10 19:23:04 -03:00 |
Roberto Ierusalimschy
|
c5cae9362c
|
added two casts to avoid warnings in VS
|
2014-10-04 19:57:10 -03:00 |
Roberto Ierusalimschy
|
34b6664dcb
|
better to use 'long' to represent UTF-8 code points
|
2014-10-01 08:52:33 -03:00 |
Roberto Ierusalimschy
|
f5c690b684
|
details in comments
|
2014-08-01 14:24:02 -03:00 |
Roberto Ierusalimschy
|
34ac039fb8
|
new macro 'cvt2str' to better control whether numbers are convertible
to strings
|
2014-07-30 11:00:14 -03:00 |
Roberto Ierusalimschy
|
b9dcf9974d
|
detail (typos in comments)
|
2014-06-30 16:48:08 -03:00 |
Roberto Ierusalimschy
|
45c430eac0
|
addition of '.0' to float representation done by the kernel
|
2014-05-12 18:44:17 -03:00 |
Roberto Ierusalimschy
|
27d9219cf3
|
no more integer exponentiation
|
2014-05-12 18:22:05 -03:00 |
Roberto Ierusalimschy
|
c549d4fe64
|
'lua_strtonum' (and 'luaO_str2num') now return string size, instead of
receiving it
|
2014-05-01 15:18:06 -03:00 |
Roberto Ierusalimschy
|
5388aa9fc0
|
'luaO_str2d' + 'luaO_str2int' replaced by 'luaO_str2num' (which converts
to float or integer according to the string syntax)
|
2014-04-30 13:48:44 -03:00 |
Roberto Ierusalimschy
|
ffa43df3cd
|
'setnvalue' -> 'setfltvalue' (for consitency with 'fltvalue')
|
2014-04-29 15:14:16 -03:00 |
Roberto Ierusalimschy
|
e98ba351ce
|
n^-m gives float result (instead of error)
|
2014-04-27 11:41:11 -03:00 |
Roberto Ierusalimschy
|
037a70dfea
|
cast_u2s/cast_s2u renamed l_castS2U/l_castU2S to be configurable from
outside (mostly for testing)
|
2014-04-15 13:32:49 -03:00 |
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
|
2014-04-15 11:29:30 -03:00 |
Roberto Ierusalimschy
|
d99ffa920d
|
new type 'LUAI_UACINT' (result of an 'usual argument conversion' of
a lua_Integer)
|
2014-04-11 16:53:45 -03:00 |
Roberto Ierusalimschy
|
a8aede68c7
|
new definition for 'luai_nummod' (using 'fmod')
|
2014-04-09 14:05:11 -03:00 |
Roberto Ierusalimschy
|
da4811238a
|
details (typos in comments)
|
2014-03-21 10:52:33 -03:00 |
Roberto Ierusalimschy
|
5ff1c18a71
|
back with 'L' for macros 'luai_num*', but now with a new macro
'luai_numinvalidop' to protect constant folding
|
2014-03-06 13:15:18 -03:00 |
Roberto Ierusalimschy
|
c6c41e85b2
|
more uniformity for defining system-dependent features
|
2014-02-26 12:27:56 -03:00 |
Roberto Ierusalimschy
|
4ea60463f5
|
UTF-8 encoding exported as format '%U' in 'lua_pushfstring'
|
2014-02-06 13:59:24 -02:00 |
Roberto Ierusalimschy
|
86dd8bf3f5
|
no more 'L' in macros "luai_num*" (several places that use those macros
cannot throw errors anyway...)
|
2014-01-27 11:34:32 -02:00 |
Roberto Ierusalimschy
|
1ea2d20f74
|
first implementation of '<<', '>>', and '~' (bitwise not)
|
2013-12-30 18:47:58 -02:00 |
Roberto Ierusalimschy
|
c0edab0f6d
|
first implementation of bitwise operators '&' (band), '|' (bor),
and '~' (bxor)
|
2013-12-18 12:12:03 -02:00 |
Roberto Ierusalimschy
|
a8f8c7fd80
|
integer exponentiation with negative exponent is invalid
|
2013-12-16 12:30:22 -02:00 |
Roberto Ierusalimschy
|
2f8c51a552
|
use unsigneds for unary minus, too
|
2013-07-10 14:15:12 -03:00 |
Roberto Ierusalimschy
|
e39da66c8c
|
macro 'lua_strx2number' does not need to be global
|
2013-06-25 15:58:32 -03:00 |
Roberto Ierusalimschy
|
6fb0b11350
|
string contatenation handles conversion of integers to strings +
floats always format as floats (with decimal dot or exponent)
|
2013-06-04 16:36:42 -03:00 |
Roberto Ierusalimschy
|
ee865b9fe7
|
new implementation for 'lua_strx2number' to correct small
problems with numbers like 0x10000...000p-100
|
2013-05-27 14:42:38 -03:00 |
Roberto Ierusalimschy
|
c75cca0559
|
detail (case '%d' of 'luaO_pushvfstring' should use integers)
|
2013-05-26 11:43:35 -03:00 |
Roberto Ierusalimschy
|
36e8771076
|
'luaO_str2int' more generic: accepts white spaces around the numeral
and handles signal
|
2013-05-14 12:59:04 -03:00 |
Roberto Ierusalimschy
|
67532d5a10
|
constant folding and API arithmetic with integers
|
2013-05-02 09:37:24 -03:00 |
Roberto Ierusalimschy
|
00744a2729
|
'luaO_arith' -> 'luaO_numarith'
|
2013-04-29 13:57:48 -03:00 |
Roberto Ierusalimschy
|
9c43d6a24e
|
new format "%I" in 'lua_pushfstring' for lua_Integer
|
2013-04-25 10:53:13 -03:00 |
Roberto Ierusalimschy
|
1294b09d8e
|
first implementation of literal integers (no constant folding yet)
|
2013-04-16 15:46:28 -03:00 |
Roberto Ierusalimschy
|
b559aed2d3
|
'l_tg' was renamed to 'l_mathop' and this use was not corrected at
the time
|
2013-02-20 11:08:56 -03:00 |
Roberto Ierusalimschy
|
181a837cac
|
small improvement in the support of 'float' as lua_Number
|
2013-01-29 14:00:40 -02:00 |
Roberto Ierusalimschy
|
a3e1c40d6d
|
remove of unecessary luaD_checkstack. (In some cases, C should
ensure stack space; in others, Lua can use the extra slots for
temporary values.)
|
2012-08-16 14:34:28 -03:00 |
Roberto Ierusalimschy
|
7377fbdebc
|
function prototype did not match one in .h
|
2011-11-30 17:30:16 -02:00 |
Roberto Ierusalimschy
|
0bd99b327b
|
avoid "unreachable" 'break'
|
2011-11-30 10:44:26 -02:00 |
Roberto Ierusalimschy
|
03a078493e
|
refuse things like 'inf' or 'Nan' as numerals
|
2011-07-27 09:13:08 -03:00 |
Roberto Ierusalimschy
|
5acc5b0c1e
|
using 'tolower' instead of 'toupper' (slightly simpler to implement)
|
2011-06-24 09:25:02 -03:00 |
Roberto Ierusalimschy
|
59547c6cda
|
macro 'ltoupper' instead of 'lisupper' (more usefull for Lua)
|
2011-06-23 13:01:06 -03:00 |
Roberto Ierusalimschy
|
cf0562e1e7
|
detail (missing cast to unsigned char when converting char to int)
|
2011-06-16 11:13:22 -03:00 |
Roberto Ierusalimschy
|
9b7dddad7d
|
no need for two different implementations for equality (one raw and
one with metamethods)
|
2011-05-31 15:24:36 -03:00 |
Roberto Ierusalimschy
|
ad2531a0ee
|
more complete (and hopefuly more correct) handling of 'sizeof(char)'
|
2011-05-03 13:01:57 -03:00 |
Roberto Ierusalimschy
|
5286650894
|
new macro 'ttisequal'
|
2011-04-05 15:32:06 -03:00 |
Roberto Ierusalimschy
|
e7a9c45a48
|
trying to avoid assumption that sizeof(char)==1
|
2011-02-07 17:15:24 -02:00 |
Roberto Ierusalimschy
|
af119c8b55
|
official support for floating hexa numerals
|
2010-12-10 17:03:46 -02:00 |
Roberto Ierusalimschy
|
ccc4fc9cf0
|
detection of erroneous numeric strings with \0 (such as "1\0")
|
2010-12-06 19:08:36 -02:00 |
Roberto Ierusalimschy
|
c6ef3e2672
|
bug: by-one error when creating short source names (luaO_chunkid)
|
2010-10-29 13:54:55 -02:00 |
Roberto Ierusalimschy
|
4834de8427
|
comment typo
|
2010-10-29 09:13:14 -02:00 |
Roberto Ierusalimschy
|
94043a3a1a
|
more robust implementation for 'luaO_str2d'
|
2010-10-28 13:39:03 -02:00 |
Roberto Ierusalimschy
|
53f9499f7f
|
"light C function" is a better name than "C-function pointer"
|
2010-04-18 10:22:48 -03:00 |
Roberto Ierusalimschy
|
cf22133b69
|
no need to avoid calling ctype functions as now they are implemented
by us (no inefficiencies due to accessing locale information)
|
2010-04-15 16:44:43 -03:00 |
Roberto Ierusalimschy
|
7dfa4cd655
|
first implementation of light C functions
|
2010-04-14 12:13:48 -03:00 |
Roberto Ierusalimschy
|
d394d5536a
|
new macro 'eqstr'
|
2010-04-05 13:26:37 -03:00 |
Roberto Ierusalimschy
|
d00d2eaf51
|
small changes in 'luaO_pushvfstring'
|
2010-04-02 12:30:27 -03:00 |
Roberto Ierusalimschy
|
3bae8e047c
|
typo (thanks to Gavin)
|
2010-02-05 17:09:09 -02:00 |
Roberto Ierusalimschy
|
3c4d970a7b
|
comment typos
|
2009-11-26 09:39:20 -02:00 |
Roberto Ierusalimschy
|
062e809e54
|
new macros 'LUAI_DDEC'/'LUAI_DDEF' to better control declarations and
definitions of non-static variables
|
2009-11-19 17:06:52 -02:00 |
Roberto Ierusalimschy
|
49a67c6d3f
|
new macro 'NILCONSTANT' to initialize nil constants
|
2009-11-06 15:07:12 -02:00 |
Roberto Ierusalimschy
|
6a024df440
|
new function 'luaO_arith' to perform basic arithmetic operations
|
2009-06-17 14:48:34 -03:00 |
Roberto Ierusalimschy
|
57f8414de1
|
small bug in 'luaV_concat' (L->top was left incorrect in some cases)
|
2009-05-27 14:11:27 -03:00 |
Roberto Ierusalimschy
|
6905ae900b
|
Lua now uses "homemade" lctype (instead of ctype.h from ANSI C)
|
2009-02-19 14:33:51 -03:00 |
Roberto Ierusalimschy
|
a76fa25199
|
'ceillog2' now is exported (other modules may need it)
|
2008-01-30 16:05:23 -02:00 |
Roberto Ierusalimschy
|
fabdaa37b6
|
'lua_pushfstring' raises an error if called with invalid format
|
2007-12-19 15:24:38 -02:00 |
Roberto Ierusalimschy
|
ad60b3ead7
|
avoid the use of "exotic" libc functions
|
2007-11-09 16:54:25 -02:00 |
Roberto Ierusalimschy
|
94d40f3980
|
luaO_log2 can be private to ltable.c
|
2007-04-10 09:18:17 -03:00 |
Roberto Ierusalimschy
|
4d7cfff6df
|
comments
|
2006-11-22 09:02:03 -02:00 |
Roberto Ierusalimschy
|
3ca9af51a4
|
emergency garbage collector (core forces a GC when allocation fails)
|
2006-07-11 12:53:29 -03:00 |
Roberto Ierusalimschy
|
298ae7e230
|
complete support for hexadecimal constants
|
2006-02-10 15:43:52 -02:00 |
Roberto Ierusalimschy
|
dd1221582b
|
details
|
2006-01-10 10:50:00 -02:00 |
Roberto Ierusalimschy
|
c505f341d6
|
small changes in casts
|
2005-12-22 14:19:56 -02:00 |
Roberto Ierusalimschy
|
8e48ebb638
|
no more L in numer-operator macros (some functions that use those macros
have no access to L)
|
2005-10-24 15:37:52 -02:00 |
Roberto Ierusalimschy
|
95f3eefa5b
|
small optimization
|
2005-08-01 01:22:23 -03:00 |
Roberto Ierusalimschy
|
1a343814d8
|
details
|
2005-07-31 14:12:32 -03:00 |
Roberto Ierusalimschy
|
c2f065f405
|
detail
|
2005-07-11 15:48:02 -03:00 |
Roberto Ierusalimschy
|
90de38bf1f
|
warnings in VS .Net
|
2005-05-31 11:25:18 -03:00 |
Roberto Ierusalimschy
|
f21e9c172f
|
details
|
2005-05-20 12:53:42 -03:00 |
Roberto Ierusalimschy
|
c2bb9abcec
|
better quotes for strings in error messages
|
2005-05-16 18:19:00 -03:00 |
Roberto Ierusalimschy
|
04c41444e2
|
wrong comment corrected
|
2005-03-28 09:53:40 -03:00 |
Roberto Ierusalimschy
|
370d31a559
|
`luac´ -> `luai' (to avoid confusion with other luac stuff)
|
2005-03-09 13:28:07 -03:00 |
Roberto Ierusalimschy
|
f8df21bd20
|
`luaconf.h´ exports all its definitions always (so all of them
must have a lua/LUA prefix).
|
2005-03-08 17:10:05 -03:00 |
Roberto Ierusalimschy
|
b5b230d95c
|
fewer #include's in luaconf.h
|
2005-03-08 15:09:16 -03:00 |
Roberto Ierusalimschy
|
8ddfe3df29
|
macros for all arithmetic operations over lua_Numbers
|
2005-01-10 16:17:39 -02:00 |
Roberto Ierusalimschy
|
1d99a7360b
|
details
|
2004-11-24 17:16:03 -02:00 |
Roberto Ierusalimschy
|
737ec947d3
|
better implementation for `floating-point bytes'
|
2004-11-01 12:06:50 -03:00 |
Roberto Ierusalimschy
|
bd38017ddf
|
small optimization for table size in machines with double allignment
|
2004-10-06 15:34:16 -03:00 |
Roberto Ierusalimschy
|
76d8b8db06
|
`lua_pushfstring' now supports `%p' option too
|
2004-07-09 13:01:38 -03:00 |
Roberto Ierusalimschy
|
1c459b881f
|
accept `\r' as newline when looking for line end
|
2004-05-03 09:30:41 -03:00 |
Roberto Ierusalimschy
|
b4cd38ba6c
|
new scheme for configuration through `luaconf.h'
|
2004-04-30 17:13:38 -03:00 |
Roberto Ierusalimschy
|
47fc57a252
|
`TObject' renamed to `TValue' + other name changes and better assertions
for incremental garbage collection
|
2003-12-10 10:13:36 -02:00 |
Roberto Ierusalimschy
|
b93f67f2ce
|
detail
|
2003-06-10 09:36:26 -03:00 |
Roberto Ierusalimschy
|
01b303c87e
|
simpler log2 implementation
|
2003-04-28 10:30:14 -03:00 |
Roberto Ierusalimschy
|
0d88545b82
|
warnings from several compilers (mainly typecasts when lua_Number is float)
|
2003-04-03 10:35:34 -03:00 |
Roberto Ierusalimschy
|
60c83ded30
|
small optimization for sizes of array constructors
|
2003-02-18 13:02:56 -03:00 |
Roberto Ierusalimschy
|
635b7c707d
|
details
|
2003-01-27 11:00:43 -02:00 |