Roberto Ierusalimschy
|
83d2dbb15d
|
Lua will abort anyway, so 'panic' does not need to.
|
2009-03-31 14:25:08 -03:00 |
|
Roberto Ierusalimschy
|
4e43741943
|
in 'lua_call', avoid preparing a continuation when thread cannot yield.
|
2009-03-30 15:39:20 -03:00 |
|
Roberto Ierusalimschy
|
a274596ecc
|
avoid making 'lastfree' an invalid pointer
|
2009-03-30 15:38:24 -03:00 |
|
Roberto Ierusalimschy
|
7e9bc41fe7
|
'loadlib(lib, "*")' loads 'lib' with global names exported to all
|
2009-03-26 19:25:05 -03:00 |
|
Roberto Ierusalimschy
|
b1e1c15ced
|
small bug: EOZ is a valid character to be tested
|
2009-03-26 15:53:52 -03:00 |
|
Roberto Ierusalimschy
|
3dbf305408
|
no more support for old-style varargs
|
2009-03-26 09:57:01 -03:00 |
|
Roberto Ierusalimschy
|
6d0ae11c57
|
'context' added to suspendable calls
|
2009-03-23 11:26:12 -03:00 |
|
Roberto Ierusalimschy
|
3ca739b418
|
'math.random' uses lua_Number to manage its arguments (there is no
reason to lose range).
|
2009-03-17 14:55:39 -03:00 |
|
Roberto Ierusalimschy
|
9e613b8583
|
missing argument to 'assert' raises "assertion failed" error
|
2009-03-16 13:30:50 -03:00 |
|
Roberto Ierusalimschy
|
9428ec42d0
|
new optional argument to 'load', to control allowed modes (binary or
textual chunks)
|
2009-03-13 12:50:03 -03:00 |
|
Roberto Ierusalimschy
|
6ffcf21367
|
ctype 'lalpha' includes '_' (as '_' behaves as a letter from the
point of view of Lua)
|
2009-03-11 10:27:32 -03:00 |
|
Roberto Ierusalimschy
|
6427c61e7c
|
added macro 'lisxdigit' (just in case :)
|
2009-03-10 14:42:33 -03:00 |
|
Roberto Ierusalimschy
|
ba484b9eb1
|
yielding across lua_call (first version)
|
2009-03-10 14:14:37 -03:00 |
|
Roberto Ierusalimschy
|
f9d015523e
|
better notes about some opcodes (comments only)
|
2009-03-09 12:27:56 -03:00 |
|
Roberto Ierusalimschy
|
1817dfc301
|
initial separation, in CallInfo, of what is relevant only to Lua
functions or only to C functions
|
2009-03-04 10:32:29 -03:00 |
|
Roberto Ierusalimschy
|
7837e34e56
|
new states have a reasonable panic function +
testC may run code on different threads +
rename of some testC operations ('rawcall'->'call', 'call'->'pcall')
|
2009-03-03 15:52:36 -03:00 |
|
Roberto Ierusalimschy
|
910310d3ba
|
if thread has no error handling, try main thread handler before panicking
|
2009-03-03 15:51:24 -03:00 |
|
Roberto Ierusalimschy
|
facfcd497f
|
detail
|
2009-03-02 13:34:23 -03:00 |
|
Roberto Ierusalimschy
|
b403317325
|
error functions search global space for a name for a function when
no other name is available
|
2009-02-27 15:18:19 -03:00 |
|
Roberto Ierusalimschy
|
9bf05e7364
|
code section 'Traceback' moved to the beginning of the file
|
2009-02-27 15:17:13 -03:00 |
|
Roberto Ierusalimschy
|
e39e758a73
|
closing a "popen" file returns the process exit status
|
2009-02-20 10:50:27 -03:00 |
|
Roberto Ierusalimschy
|
5438d77221
|
global array of ctypes renamed to 'luai_ctype_' (extern names must
use a "lua" prefix...)
|
2009-02-20 10:11:15 -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
|
ada82930fd
|
"homemade" version of ctype.h
|
2009-02-19 14:18:25 -03:00 |
|
Roberto Ierusalimschy
|
f36e319658
|
'fputs' changed to 'luai_writestring' + use of 'lua_checkversion'
|
2009-02-19 14:15:35 -03:00 |
|
Roberto Ierusalimschy
|
0cea28a785
|
better error messages for 'lua_checkversion'
|
2009-02-19 14:15:13 -03:00 |
|
Roberto Ierusalimschy
|
d2ebdc045b
|
new macro 'lua_checkversion' to check whether core and application are
compatible
|
2009-02-18 14:20:56 -03:00 |
|
Roberto Ierusalimschy
|
81ede6bfce
|
using light userdata to represent "remote" states
|
2009-02-18 11:52:51 -03:00 |
|
Roberto Ierusalimschy
|
2b579b4b83
|
panic mode does not reset stack (so that panic function can gather
debug information from it)
|
2009-02-18 11:52:03 -03:00 |
|
Roberto Ierusalimschy
|
a1d0e1a11a
|
'log10' is deprecated now
|
2009-02-18 10:17:10 -03:00 |
|
Roberto Ierusalimschy
|
8975739839
|
better precision for log(x, 10)
|
2009-02-18 10:06:05 -03:00 |
|
Roberto Ierusalimschy
|
d07abcc6c7
|
finalizers always called protected
|
2009-02-17 16:47:58 -03:00 |
|
Roberto Ierusalimschy
|
189378142a
|
buffer creation ensures buffer space plus MINSTACK in the stack
|
2009-02-17 11:31:16 -03:00 |
|
Roberto Ierusalimschy
|
82749b765e
|
'db_errorfb' changed to 'db_traceback' for consistency
|
2009-02-17 10:21:28 -03:00 |
|
Roberto Ierusalimschy
|
2b590aea40
|
no more '__len' metamethod for strings
|
2009-02-16 17:09:28 -03:00 |
|
Roberto Ierusalimschy
|
547e47649f
|
'luaL_typeerror' spelled right
|
2009-02-13 17:39:34 -02:00 |
|
Roberto Ierusalimschy
|
41dd32e18e
|
comment (should not use 'go trhough' when simply using multiple labels)
|
2009-02-11 16:25:20 -02:00 |
|
Roberto Ierusalimschy
|
5d3cc5def8
|
'writestring' changed into a configurable macro
|
2009-02-07 10:23:15 -02:00 |
|
Roberto Ierusalimschy
|
53db607963
|
avoid using 'fputs' in 'print' to avoid problems with embedded zeros
|
2009-02-06 16:38:47 -02:00 |
|
Roberto Ierusalimschy
|
cbf0c7a103
|
check for invalid use of '%' in replacement string in 'string.gsub'
|
2009-02-03 17:39:19 -02:00 |
|
Roberto Ierusalimschy
|
4c399c5dfb
|
detail (MAXSRC changed to LUA_IDSIZE)
|
2008-12-26 09:55:57 -02:00 |
|
Roberto Ierusalimschy
|
b472098493
|
concat TM can yield
|
2008-11-06 10:43:51 -02:00 |
|
Roberto Ierusalimschy
|
84b3daebbd
|
generic for coded as two dedicated instructions to simplify resumption
|
2008-10-30 13:39:30 -02:00 |
|
Roberto Ierusalimschy
|
f6978173e0
|
yields accross metamethods and for iterators (except for __concat)
|
2008-10-28 14:53:16 -02:00 |
|
Roberto Ierusalimschy
|
e02483dbc0
|
whole build depends on 'makefile' itself + better format for warning
options
|
2008-10-28 14:52:00 -02:00 |
|
Roberto Ierusalimschy
|
9e58e0df8f
|
some cleaning
|
2008-10-28 10:55:00 -02:00 |
|
Roberto Ierusalimschy
|
690efef3de
|
detail (added 'UNUSED' to unused argument)
|
2008-10-28 10:54:25 -02:00 |
|
Roberto Ierusalimschy
|
b9e92c8b0d
|
updating header dependencies
|
2008-10-03 13:40:56 -03:00 |
|
Roberto Ierusalimschy
|
4376c9bc5f
|
more specific test to avoid calling luaF_close when function returns
|
2008-09-09 10:53:02 -03:00 |
|
Roberto Ierusalimschy
|
f94cd2201c
|
better control of call status through CallInfo
|
2008-08-26 10:27:42 -03:00 |
|
Roberto Ierusalimschy
|
fdbb243ff9
|
first steps towards yielding through longjump
|
2008-08-13 14:02:42 -03:00 |
|
Roberto Ierusalimschy
|
c1565c16ed
|
small bug: lua_resume returning LUA_YIELD is not an error
|
2008-08-13 14:02:12 -03:00 |
|
Roberto Ierusalimschy
|
394646891c
|
new field 'status' in CallInfo structure
|
2008-08-13 14:01:33 -03:00 |
|
Roberto Ierusalimschy
|
d69aa51088
|
added missing parentheses around function names
|
2008-08-13 11:08:49 -03:00 |
|
Roberto Ierusalimschy
|
afe849c9b4
|
change in error message
|
2008-08-06 10:38:32 -03:00 |
|
Roberto Ierusalimschy
|
ccd678ea3e
|
'module' may change the environment of a C function +
internal macro 'svalue' is wrong
|
2008-08-06 10:32:45 -03:00 |
|
Roberto Ierusalimschy
|
bb92ef23cb
|
bug: string at the end of TString must consider the entire TString
entity, not only its 'tsv' part
|
2008-08-05 16:26:23 -03:00 |
|
Roberto Ierusalimschy
|
bb48f456d9
|
bug: 'module' now checks that is caller is a Lua function
|
2008-08-05 16:25:42 -03:00 |
|
Roberto Ierusalimschy
|
df802dc74b
|
larger alignment requirement helps to uncover some kinds of bugs
|
2008-08-05 16:24:46 -03:00 |
|
Roberto Ierusalimschy
|
e23da9edee
|
GC step does not unblock collector (when it is blocked by "stop")
|
2008-08-01 14:01:16 -03:00 |
|
Roberto Ierusalimschy
|
4db2cddeee
|
LUA_COMPAT -> LUA_COMPAT_API (more specific)
|
2008-07-18 16:58:10 -03:00 |
|
Roberto Ierusalimschy
|
f9dec5fc84
|
do not use compatibility macros in Lua
|
2008-07-11 14:51:01 -03:00 |
|
Roberto Ierusalimschy
|
6b8725b0ee
|
new macro LUA_COMPAT to control some compatibility macros
|
2008-07-11 14:50:31 -03:00 |
|
Roberto Ierusalimschy
|
6955666290
|
'string.byte' gets confused with some out-of-range negative indices +
user-requested GC step may loop forever
|
2008-07-11 14:27:41 -03:00 |
|
Roberto Ierusalimschy
|
5298392c5a
|
bug: GC step could loop forever under very particular circumstances
|
2008-07-04 15:27:11 -03:00 |
|
Roberto Ierusalimschy
|
1ceec74370
|
useless test removed (pointed by lint)
|
2008-07-03 11:25:05 -03:00 |
|
Roberto Ierusalimschy
|
2a84c29bc3
|
comment about exported function not used by Lua
|
2008-07-03 11:24:36 -03:00 |
|
Roberto Ierusalimschy
|
4d8a1103d3
|
useless #define removed (pointed by lint)
|
2008-07-03 11:24:11 -03:00 |
|
Roberto Ierusalimschy
|
202de59254
|
useless #include removed (pointed by lint)
|
2008-07-03 11:23:35 -03:00 |
|
Roberto Ierusalimschy
|
f858a155c2
|
identation error (pointed by lint)
|
2008-07-03 11:21:41 -03:00 |
|
Roberto Ierusalimschy
|
9e7de9473c
|
message from -v option goes to stdout, as it is not an error message
|
2008-06-26 16:47:51 -03:00 |
|
Roberto Ierusalimschy
|
0c8f5fc2fd
|
simplification in the handling of finalizers: no more 'tmudata' list +
no more GCSsweeptmu collector's state
|
2008-06-26 16:42:45 -03:00 |
|
Roberto Ierusalimschy
|
1527d8f00d
|
GC called after errors now are called after showing error message (to
avoid problems when there are other errors during GC itself)
|
2008-06-26 16:40:12 -03:00 |
|
Roberto Ierusalimschy
|
8efaf8af81
|
added a comment about warnings for __attribute__(visibility) in some
elf targets
|
2008-06-25 12:27:12 -03:00 |
|
Roberto Ierusalimschy
|
c3525610fe
|
bug: when closing the state, 'luaC_separateudata' might mark
userdata in the wrong phase of collection, therefore avoiding
their traversal
|
2008-06-23 19:07:44 -03:00 |
|
Roberto Ierusalimschy
|
7ba62e2985
|
code reorganization (only changed comments and order of functions)
|
2008-06-23 13:51:28 -03:00 |
|
Roberto Ierusalimschy
|
8fd28611d5
|
outdated comment
|
2008-06-23 13:51:08 -03:00 |
|
Roberto Ierusalimschy
|
93869acb2c
|
"test trick" seems more useful with pointers instead of integers
|
2008-06-23 13:50:34 -03:00 |
|
Roberto Ierusalimschy
|
480a1da34a
|
when error is 'bad self' original message probably makes no sense, so
it is better not to show it.
|
2008-06-13 15:45:35 -03:00 |
|
Roberto Ierusalimschy
|
59e2973335
|
removed static variable lua_state (not used)
|
2008-06-13 14:07:10 -03:00 |
|
Roberto Ierusalimschy
|
5d09be4832
|
by default, 'os.exit' closes current state
|
2008-06-13 13:59:00 -03:00 |
|
Roberto Ierusalimschy
|
860e285f31
|
'luaL_gsub' moved into 'testC' (all auxlib should be tested through 'testC')
|
2008-06-13 11:15:59 -03:00 |
|
Roberto Ierusalimschy
|
eb8ac6e2a0
|
'luaL_testudata' does not leave garbage on the stack in case of failure
|
2008-06-12 11:37:27 -03:00 |
|
Roberto Ierusalimschy
|
b1203e036d
|
'posrelat' avoids problems with -(-2^31)
|
2008-06-12 11:21:18 -03:00 |
|
Roberto Ierusalimschy
|
92a0d4c67f
|
extra options in 'testC' for newmetatable and testudata
|
2008-06-12 11:20:49 -03:00 |
|
Roberto Ierusalimschy
|
5fa55df2ca
|
updated years in some comments/strings
|
2008-05-09 13:51:44 -03:00 |
|
Roberto Ierusalimschy
|
a3af42de8e
|
patch for "blow stack" bug
|
2008-05-08 13:55:08 -03:00 |
|
Roberto Ierusalimschy
|
198be23f36
|
added structure for local-variable information to allow extra
checkings if needed
|
2008-05-08 12:44:51 -03:00 |
|
Roberto Ierusalimschy
|
24359ae294
|
'string.find' cannot find things after subject's end
|
2008-04-14 12:54:59 -03:00 |
|
Roberto Ierusalimschy
|
6c84722afa
|
make default GC behavior a little more agressive
(to avoid falling behind memory consumption)
|
2008-04-07 15:58:42 -03:00 |
|
Roberto Ierusalimschy
|
facb0519a0
|
two bugs: invalid boolean values in constant table + too deep recursion
when reading nested functions
|
2008-04-07 15:44:23 -03:00 |
|
Roberto Ierusalimschy
|
ffdca3522e
|
'table.sort' detects invalid order function before calling it
for nil elements
|
2008-04-07 15:43:00 -03:00 |
|
Roberto Ierusalimschy
|
4d7469b610
|
avoid constant folding for -0 (to avoid it colapsing to 0)
|
2008-04-07 15:41:47 -03:00 |
|
Roberto Ierusalimschy
|
2b84e36b93
|
patches for some bugs
|
2008-04-04 22:31:59 -03:00 |
|
Roberto Ierusalimschy
|
85bda9eef5
|
bugs: precheck must use check (instead of assert) and ensures that
code size is at least 1
|
2008-04-02 16:14:16 -03:00 |
|
Roberto Ierusalimschy
|
a4d3080fe3
|
SETLIST extra argument now is an "instruction" (OP_EXTRAARG)
|
2008-04-02 14:38:54 -03:00 |
|
Roberto Ierusalimschy
|
5627d51e05
|
corrected error message ("too many constants" -> "too many functions")
|
2008-04-02 14:19:22 -03:00 |
|
Roberto Ierusalimschy
|
e64b0cada8
|
several bugs related to precompiled code
|
2008-04-01 16:17:48 -03:00 |
|
Roberto Ierusalimschy
|
7316d61a66
|
'coroutine.running' should work for the main thread too
|
2008-02-25 11:33:57 -03:00 |
|
Roberto Ierusalimschy
|
e2b366c760
|
userdata with finalizers are kept in a separated list
|
2008-02-19 15:55:09 -03:00 |
|