Roberto Ierusalimschy
|
0b65cb74cd
|
new implementation for 'getobjname': first search for relevant
instruction (new function 'findsetreg') and then try to build
a meaningful name
|
2011-08-12 17:01:44 -03:00 |
|
Roberto Ierusalimschy
|
ea46b750dc
|
comment
|
2011-08-11 14:06:12 -03:00 |
|
Roberto Ierusalimschy
|
92afcf2823
|
no more 'luaH_setstr (used only once) + 'luaH_setint' receives value
to be set.
|
2011-08-09 17:58:29 -03:00 |
|
Roberto Ierusalimschy
|
b5bf7d9ef4
|
'string.format' checks whether values for integer formats are
actually integers
|
2011-08-09 17:58:29 -03:00 |
|
Roberto Ierusalimschy
|
6a5d89b39f
|
detail (using array instead of several variables to keep track of
enabled command-line options)
|
2011-08-04 15:16:16 -03:00 |
|
Roberto Ierusalimschy
|
ae14adc272
|
better error message when trying to open files
|
2011-08-02 15:00:01 -03:00 |
|
Roberto Ierusalimschy
|
ff98f17d27
|
detail: factoring in common code for opening files and checking for
errors
|
2011-07-28 15:41:15 -03:00 |
|
Roberto Ierusalimschy
|
59bcd137ae
|
reducing even more use of C stack by the parser: struct 'FuncState'
does not need field 'L' + number of labels/gotos in a chunk may be
limited to SHRT_MAX. (Also removed some non-needed 'unsigned's.)
|
2011-07-27 15:09:01 -03:00 |
|
Roberto Ierusalimschy
|
5ab6d36d99
|
no more field 'L' in 'FuncState'
|
2011-07-27 15:07:37 -03:00 |
|
Roberto Ierusalimschy
|
43c873895f
|
tonumber: base 10 is not special, no base is
|
2011-07-27 09:14:06 -03:00 |
|
Roberto Ierusalimschy
|
03a078493e
|
refuse things like 'inf' or 'Nan' as numerals
|
2011-07-27 09:13:08 -03:00 |
|
Roberto Ierusalimschy
|
bae57ea088
|
'M_IX86' -> '_M_IX86'
|
2011-07-25 14:20:47 -03:00 |
|
Roberto Ierusalimschy
|
2557107e91
|
removed unused variable 'found' (in 'findfield') + removed legacy
test for 'what' being "tail"
|
2011-07-25 14:18:49 -03:00 |
|
Roberto Ierusalimschy
|
32a12e2f3f
|
detail (cleaned whitespaces at end of lines)
|
2011-07-15 09:50:29 -03:00 |
|
Roberto Ierusalimschy
|
559bb554c9
|
no more 'zungetc' (better not to read next char)
|
2011-07-15 09:48:03 -03:00 |
|
Roberto Ierusalimschy
|
fd5e810e08
|
macro 'char2int' replaced by 'cast_uchar' (used by other files)
|
2011-07-15 09:35:32 -03:00 |
|
Roberto Ierusalimschy
|
067f761739
|
better code for numerical escapes
|
2011-07-15 09:30:41 -03:00 |
|
Roberto Ierusalimschy
|
7978a8d8b2
|
added '_M_IX86' in NaN trick
|
2011-07-08 17:07:11 -03:00 |
|
Roberto Ierusalimschy
|
32e09c2a16
|
detail
|
2011-07-08 17:01:38 -03:00 |
|
Roberto Ierusalimschy
|
df19931ddc
|
error on invalid escape sequences
|
2011-07-08 16:17:30 -03:00 |
|
Roberto Ierusalimschy
|
b5084fdafe
|
detail (comment)
|
2011-07-06 13:45:14 -03:00 |
|
Roberto Ierusalimschy
|
d8200d5f3c
|
'\*' -> '\z' + '\?' is not an official escape sequence
|
2011-07-05 16:13:45 -03:00 |
|
Roberto Ierusalimschy
|
79cbc3468c
|
removed and deprecated functions really removed from the code base
|
2011-07-05 09:49:35 -03:00 |
|
Roberto Ierusalimschy
|
9e89a55a4f
|
NILCONSTANT also depends no endianess (with NaN trick)
|
2011-07-04 17:29:02 -03:00 |
|
Roberto Ierusalimschy
|
b707e81c3d
|
comments about some compiler options that should be tested once in a while
|
2011-07-04 13:10:15 -03:00 |
|
Roberto Ierusalimschy
|
ee37ee50d6
|
'table.pack' also returns 'n' + 'deprecated' changed to 'removed'
|
2011-07-02 13:01:44 -03:00 |
|
Roberto Ierusalimschy
|
ad1a54b5c0
|
reordering of some defines (more logical grouping)
|
2011-07-02 13:00:15 -03:00 |
|
Roberto Ierusalimschy
|
88c29c0cd5
|
compilation warning about integer size x pointer size
|
2011-07-02 12:59:17 -03:00 |
|
Roberto Ierusalimschy
|
d93df22bf6
|
small simplifications (and assert was wrongly written)
|
2011-07-02 12:58:14 -03:00 |
|
Roberto Ierusalimschy
|
5017cc6ba2
|
simpler 'luai_apicheck' (and avoids compilation error...)
|
2011-07-02 12:57:25 -03:00 |
|
Roberto Ierusalimschy
|
2f125ebc33
|
'deprecated' x 'removed' (they are not the same thing)
|
2011-07-02 12:56:43 -03:00 |
|
Roberto Ierusalimschy
|
49a01c0991
|
'package.loaders' -> 'package.searchers'
|
2011-06-28 14:14:12 -03:00 |
|
Roberto Ierusalimschy
|
17526ed2fe
|
no more errors on accesses to 'string' and strings
|
2011-06-28 14:13:52 -03:00 |
|
Roberto Ierusalimschy
|
f180822fa6
|
back to internal table for 'ctype', no more locale manipulation
|
2011-06-28 12:42:04 -03:00 |
|
Roberto Ierusalimschy
|
594220c624
|
use standard "underscore + uppercases" for reserved keys in the registry
|
2011-06-27 16:42:31 -03:00 |
|
Roberto Ierusalimschy
|
3dd68624dc
|
comments
|
2011-06-27 15:27:18 -03:00 |
|
Roberto Ierusalimschy
|
f9eea453b7
|
avoid "magic constant" 32 (the difference from 'A' to 'a')
|
2011-06-27 15:22:46 -03:00 |
|
Roberto Ierusalimschy
|
374773748b
|
back to "one-label-per-block"
|
2011-06-27 15:18:59 -03:00 |
|
Roberto Ierusalimschy
|
29644366fc
|
useless assignments removed (macros already do the assignment)
|
2011-06-24 11:36:21 -03:00 |
|
Roberto Ierusalimschy
|
6eadedbfa1
|
resort to standard C ctype for non-ASCII systems + 'ltoupper' replaced
by 'ltolower'
|
2011-06-24 09:25:33 -03:00 |
|
Roberto Ierusalimschy
|
1978094b3a
|
resort to standard C ctype for non-ASCII systems
|
2011-06-24 09:25:33 -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
|
3d3355b4f3
|
label syntax changed to '::label::'
|
2011-06-23 11:54:48 -03:00 |
|
Roberto Ierusalimschy
|
801f43f09a
|
change in the representation of file handles
|
2011-06-21 10:43:48 -03:00 |
|
Roberto Ierusalimschy
|
719c01359f
|
label syntax changed to '::label::'
|
2011-06-20 13:52:48 -03:00 |
|
Roberto Ierusalimschy
|
43f13729a2
|
comment
|
2011-06-20 13:50:59 -03:00 |
|
Roberto Ierusalimschy
|
136f8e148d
|
added cast to void to calls to 'setlocale' (to easy redefining it as
a constant)
|
2011-06-20 13:36:03 -03:00 |
|
Roberto Ierusalimschy
|
f90a130b07
|
typo in message
|
2011-06-20 13:35:23 -03:00 |
|
Roberto Ierusalimschy
|
cb4950a6d8
|
parser must work with C locale, but external locale must be preserved
|
2011-06-18 14:08:58 -03:00 |
|
Roberto Ierusalimschy
|
fdede85419
|
label names must be unique inside a function
|
2011-06-16 13:36:39 -03:00 |
|
Roberto Ierusalimschy
|
beab626061
|
correct length for LUA_COPYRIGHT (without trailing '\0')
|
2011-06-16 11:30:58 -03:00 |
|
Roberto Ierusalimschy
|
817f8674af
|
avoid warning about -unsigned value
|
2011-06-16 11:14:31 -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
|
22e1c5ebad
|
avoid conversion from 'const char*' to 'void *' (warning about 'const')
|
2011-06-16 11:12:24 -03:00 |
|
Roberto Ierusalimschy
|
470dd56a89
|
'os.execute' (and similars) should return 'exit' and code in case
of success, too.
|
2011-06-16 11:11:04 -03:00 |
|
Roberto Ierusalimschy
|
20d30bcd33
|
declarations should be present only when implementations are
|
2011-06-16 11:10:12 -03:00 |
|
Roberto Ierusalimschy
|
44b6f496b5
|
just in case, avoid side effects in 'ctype' macros
|
2011-06-15 11:35:55 -03:00 |
|
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)
|
2011-06-13 11:13:06 -03:00 |
|
Roberto Ierusalimschy
|
f62565abea
|
avoid warnings with -Wstrict-overflow
|
2011-06-09 15:24:22 -03:00 |
|
Roberto Ierusalimschy
|
c9d1d9f9c6
|
better way to test overflows with string indices
|
2011-06-09 15:22:47 -03:00 |
|
Roberto Ierusalimschy
|
35391d9b1a
|
macro 'NNMARK' (mark for non-number values using the NaN trick)
|
2011-06-09 15:21:25 -03:00 |
|
Roberto Ierusalimschy
|
99b1b8e918
|
first version with 'NANTRICK' (packing all Lua values inside a 'double')
|
2011-06-07 16:02:33 -03:00 |
|
Roberto Ierusalimschy
|
3b44821334
|
stricter control (using tag variants) over closure kinds (Lua x C)
|
2011-06-02 16:31:40 -03:00 |
|
Roberto Ierusalimschy
|
0214dab989
|
yet another macro ('num_')
|
2011-05-31 16:15:01 -03:00 |
|
Roberto Ierusalimschy
|
821bd7025e
|
more uniform names for 'equalobj'-related functions
|
2011-05-31 15:27:56 -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
|
3f04a9f2c0
|
code is simpler without 'goto' here
|
2011-05-30 13:36:38 -03:00 |
|
Roberto Ierusalimschy
|
2a59a999d4
|
yet another macro abstracting TValue representation
|
2011-05-26 14:12:31 -03:00 |
|
Roberto Ierusalimschy
|
ee7d0c2649
|
new macro 'luai_writeline' to print newlines (and flush 'stdout')
|
2011-05-26 13:09:40 -03:00 |
|
Roberto Ierusalimschy
|
aa13c591f5
|
avoid use of 'ifdef/ifndef'; use 'defined' instead (simpler and
more powerful)
|
2011-05-25 11:12:28 -03:00 |
|
Roberto Ierusalimschy
|
6c8a32217a
|
changes by lhf (better control of chars x bytes)
|
2011-05-17 09:42:43 -03:00 |
|
Roberto Ierusalimschy
|
cb09f4fef4
|
details
|
2011-05-06 13:00:23 -03:00 |
|
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)
|
2011-05-05 16:43:14 -03:00 |
|
Roberto Ierusalimschy
|
74b0bb3a45
|
macro 'checkconsistency' moved to this file, as it is used only
here
|
2011-05-05 16:42:25 -03:00 |
|
Roberto Ierusalimschy
|
e4076fe6d9
|
break long assertion in two shorter ones
|
2011-05-05 13:18:53 -03:00 |
|
Roberto Ierusalimschy
|
81952e6884
|
avoid using expression as argument to unsafe macro 'l_isfalse'
|
2011-05-05 13:16:33 -03:00 |
|
Roberto Ierusalimschy
|
25b4e35ee8
|
new macros abstracting TValue representation (to easy change to
other representations)
|
2011-05-05 12:53:23 -03:00 |
|
Roberto Ierusalimschy
|
7e1facaa4e
|
detail in assertion
|
2011-05-04 14:04:06 -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
|
bc1c718cc0
|
removed TOKEN_LEN (useless)
|
2011-05-03 12:51:16 -03:00 |
|
Roberto Ierusalimschy
|
c9ce754e38
|
comment
|
2011-05-02 14:33:01 -03:00 |
|
Roberto Ierusalimschy
|
d34271fe42
|
MacOS 'strtod' handles hexa formats too
|
2011-04-29 10:56:28 -03:00 |
|
Roberto Ierusalimschy
|
d120ec29ca
|
bug in OP_SELF when method name goes to a register
|
2011-04-28 11:00:11 -03:00 |
|
Roberto Ierusalimschy
|
2aff901c93
|
Mac OS defines LUA_USE_AFORMAT and LUA_USE_LONGLONG by default
|
2011-04-20 15:25:54 -03:00 |
|
Roberto Ierusalimschy
|
bad231c481
|
'LUA_USELONGLONG' -> 'LUA_USE_LONGLONG'
|
2011-04-20 13:36:28 -03:00 |
|
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)
|
2011-04-19 15:31:30 -03:00 |
|
Roberto Ierusalimschy
|
2f128c5130
|
'luaL_setfuncs' does not need to accept a NULL list. (If there is
no list, there is no reason to call this function.)
|
2011-04-19 15:29:41 -03:00 |
|
Roberto Ierusalimschy
|
4758113043
|
change in opcode OP_LOADNIL: B is used as a counter instead of a
register. (Avoids an assignment to R(B), not present in any other
instruction.)
|
2011-04-19 13:22:13 -03:00 |
|
Roberto Ierusalimschy
|
a4e644add2
|
small bug (masked by wrong entry for OP_TEST in opcodes.c)
|
2011-04-18 16:49:13 -03:00 |
|
Roberto Ierusalimschy
|
05ca63642b
|
added macro for code checking
|
2011-04-18 16:48:53 -03:00 |
|
Roberto Ierusalimschy
|
f17e3624ef
|
local function name only visible to debug info after being initialized
|
2011-04-18 16:48:24 -03:00 |
|
Roberto Ierusalimschy
|
2e9b8476ca
|
detail ('luai_apicheck' should be used always through macro 'api_check')
|
2011-04-18 12:02:37 -03:00 |
|
Roberto Ierusalimschy
|
c31f4946e9
|
copyright updated to 2011
|
2011-04-18 11:15:48 -03:00 |
|
Roberto Ierusalimschy
|
c86586e866
|
small corrections in description of OP_TEST and OP_LOADKX
|
2011-04-12 14:27:35 -03:00 |
|
Roberto Ierusalimschy
|
19fbdf6cae
|
'luaL_findtable' -> 'luaL_getsubtable'
|
2011-04-08 16:17:36 -03:00 |
|
Roberto Ierusalimschy
|
427ee519db
|
new instruction OP_LOADKX (to replace OP_LOADK with extra argument)
|
2011-04-07 15:14:12 -03:00 |
|
Roberto Ierusalimschy
|
a958b711f5
|
cleaner scheme of bits for variant types (light C functions) and
collectable types
|
2011-04-07 13:11:57 -03:00 |
|
Roberto Ierusalimschy
|
1ffdd0bc7a
|
detail (should use macro 'ttisdeadkey')
|
2011-04-05 15:32:28 -03:00 |
|
Roberto Ierusalimschy
|
5286650894
|
new macro 'ttisequal'
|
2011-04-05 15:32:06 -03:00 |
|