Roberto Ierusalimschy
|
041cb96992
|
small bug: `write' must return three values in case of errors
|
2002-12-04 13:17:36 -02:00 |
|
Roberto Ierusalimschy
|
c75c3cfd19
|
avoid names `str...' (may conflict with string.h)
|
2002-12-02 10:06:10 -02:00 |
|
Roberto Ierusalimschy
|
24471525d7
|
details
|
2002-12-02 10:06:10 -02:00 |
|
Roberto Ierusalimschy
|
1f55dbc699
|
details
|
2002-11-26 10:53:29 -02:00 |
|
Roberto Ierusalimschy
|
c194a46bc5
|
detail
|
2002-11-26 06:59:48 -02:00 |
|
Roberto Ierusalimschy
|
8954bdc706
|
new `coroutine.status' function
|
2002-11-26 06:45:36 -02:00 |
|
Roberto Ierusalimschy
|
5a228bb1d8
|
new function `lua_version'
|
2002-11-25 15:50:14 -02:00 |
|
Roberto Ierusalimschy
|
5f698f8b6f
|
simpler interface to hooks + use of `int' to count hooks
|
2002-11-25 15:47:13 -02:00 |
|
Roberto Ierusalimschy
|
9b1c586b2f
|
renaming stringdump' -> string.dump'
|
2002-11-25 15:33:33 -02:00 |
|
Roberto Ierusalimschy
|
d9340154ac
|
`__tostring' for files + small bug (could do invalid read inside
a userdata when it was not a file)
|
2002-11-25 13:05:39 -02:00 |
|
Roberto Ierusalimschy
|
e47baca75a
|
warnings from Visual C++
|
2002-11-25 10:38:47 -02:00 |
|
Roberto Ierusalimschy
|
b8a680c114
|
resets hook count even in case of errors
|
2002-11-25 09:20:29 -02:00 |
|
Roberto Ierusalimschy
|
709b27b456
|
ULONG_MAX>>10 may not fit into an int
|
2002-11-25 09:16:48 -02:00 |
|
Roberto Ierusalimschy
|
dbc5451bea
|
comments
|
2002-11-22 16:01:46 -02:00 |
|
Roberto Ierusalimschy
|
2d2d45976c
|
separated control over C recursion level
|
2002-11-22 15:16:52 -02:00 |
|
Roberto Ierusalimschy
|
0050d983fc
|
make more clear "primitive" recursive definitions
|
2002-11-22 14:42:53 -02:00 |
|
Roberto Ierusalimschy
|
04b143ddf9
|
avoid C stack overflow during parsing
|
2002-11-22 14:35:20 -02:00 |
|
Roberto Ierusalimschy
|
007f229568
|
detail
|
2002-11-22 11:59:04 -02:00 |
|
Roberto Ierusalimschy
|
84488c5670
|
small bug: previous call may change `base'
|
2002-11-21 15:19:42 -02:00 |
|
Roberto Ierusalimschy
|
5142e630bf
|
new macro `condhardstacktests' to control hard stack tests
|
2002-11-21 15:19:11 -02:00 |
|
Roberto Ierusalimschy
|
010bbd9d9c
|
simpler definition for incr_top
|
2002-11-21 14:46:16 -02:00 |
|
Roberto Ierusalimschy
|
be00cd2a6b
|
easier way to keep `base' correct
|
2002-11-21 13:46:44 -02:00 |
|
Roberto Ierusalimschy
|
2e4e888de0
|
Lua functions must have a frame or a saved pc.
|
2002-11-21 13:46:20 -02:00 |
|
Roberto Ierusalimschy
|
ddc144e4d2
|
keep L->ci->base in L->base for faster access
|
2002-11-21 13:16:04 -02:00 |
|
Roberto Ierusalimschy
|
b48c6e7680
|
no problem keeping some dead meat while doing collection
|
2002-11-21 12:18:01 -02:00 |
|
Roberto Ierusalimschy
|
aff97fffc4
|
C functions cannot increase its top without filling the stack
|
2002-11-21 12:17:15 -02:00 |
|
Roberto Ierusalimschy
|
1648674653
|
must check GC every time it can create new objects
|
2002-11-21 12:16:52 -02:00 |
|
Roberto Ierusalimschy
|
d404f0c276
|
global_State must be deallocated (and so allocated) with NULL also
(otherwise it trys to decrement inside itself after its own free)
|
2002-11-21 12:14:42 -02:00 |
|
Roberto Ierusalimschy
|
48e42261ac
|
details
|
2002-11-19 15:42:32 -02:00 |
|
Roberto Ierusalimschy
|
be762f38bd
|
better organization of "malloc responsabilities"
|
2002-11-19 12:12:13 -02:00 |
|
Roberto Ierusalimschy
|
c8a79057f7
|
option -l does a require', instead of dofile'
|
2002-11-19 11:49:43 -02:00 |
|
Roberto Ierusalimschy
|
642af82e81
|
small bugs (state could keep its CI_HASFRAME attribute after returning)
|
2002-11-19 06:50:56 -02:00 |
|
Roberto Ierusalimschy
|
636c629e56
|
new assertions
|
2002-11-18 16:45:38 -02:00 |
|
Roberto Ierusalimschy
|
96ba5d0bc2
|
include file name in error messages
|
2002-11-18 14:53:19 -02:00 |
|
Roberto Ierusalimschy
|
f0185f7628
|
support for tests of yield inside hooks + better support for tests
with valgrind and other memory checkers
|
2002-11-18 13:24:27 -02:00 |
|
Roberto Ierusalimschy
|
9bab2cf55d
|
support for yield inside hooks
|
2002-11-18 13:24:11 -02:00 |
|
Roberto Ierusalimschy
|
c4ae00a3d1
|
details
|
2002-11-18 13:23:43 -02:00 |
|
Roberto Ierusalimschy
|
f4d3bc52f4
|
towards 5.0 beta
|
2002-11-18 12:39:34 -02:00 |
|
Roberto Ierusalimschy
|
18765d900e
|
messages
|
2002-11-18 09:20:01 -02:00 |
|
Roberto Ierusalimschy
|
43013b39cc
|
new representation for hooks (to allow asynchronous calls to sethook)
|
2002-11-18 09:01:55 -02:00 |
|
Roberto Ierusalimschy
|
94912d99fc
|
details
|
2002-11-14 14:59:16 -02:00 |
|
Roberto Ierusalimschy
|
b40c9f7a3c
|
better code to signal write barriers
|
2002-11-14 14:16:21 -02:00 |
|
Roberto Ierusalimschy
|
41fd639cab
|
documentation for write barriers
|
2002-11-14 14:15:53 -02:00 |
|
Roberto Ierusalimschy
|
a845a46cc8
|
C function may leave garbage on the stack (besides return values)
|
2002-11-14 13:42:05 -02:00 |
|
Roberto Ierusalimschy
|
097edd3884
|
better names for auxiliar functions
|
2002-11-14 13:41:38 -02:00 |
|
Roberto Ierusalimschy
|
5c5d9b2703
|
back to `__mode' metafield to specify weakness
|
2002-11-14 10:01:35 -02:00 |
|
Roberto Ierusalimschy
|
43d1a6af12
|
detail
|
2002-11-14 09:51:23 -02:00 |
|
Roberto Ierusalimschy
|
3010eb0536
|
all objects with several children (tables, closures, stacks, prototypes)
go to `gray' queue
|
2002-11-13 09:49:19 -02:00 |
|
Roberto Ierusalimschy
|
2f91f95d94
|
better control over GCObjects
|
2002-11-13 09:32:26 -02:00 |
|
Roberto Ierusalimschy
|
42dd080a2e
|
details
|
2002-11-12 12:34:18 -02:00 |
|
Roberto Ierusalimschy
|
9957f7d598
|
better way to open libraries
|
2002-11-11 11:28:06 -02:00 |
|
Roberto Ierusalimschy
|
ac27b7a842
|
avoid traversing extra elements when cleaning weak tables
|
2002-11-11 09:52:43 -02:00 |
|
Roberto Ierusalimschy
|
81e142fc14
|
detail (`key' is always on stack)
|
2002-11-07 14:03:33 -02:00 |
|
Roberto Ierusalimschy
|
63633c5b5f
|
better name for `lua_movethread'
|
2002-11-07 13:39:23 -02:00 |
|
Roberto Ierusalimschy
|
dff9be4224
|
new macros to distinguish different types of object moves (for future GC
evolution).
|
2002-11-07 13:37:10 -02:00 |
|
Roberto Ierusalimschy
|
118347d8c3
|
new API for coroutines
|
2002-11-06 17:08:00 -02:00 |
|
Roberto Ierusalimschy
|
6820da5096
|
detail
|
2002-11-04 10:31:44 -02:00 |
|
Roberto Ierusalimschy
|
c3eb4675b9
|
new module, ldump.c
|
2002-10-25 18:38:17 -03:00 |
|
Roberto Ierusalimschy
|
7e0f880bc5
|
C++ demands cast from void to specific types
|
2002-10-25 18:36:54 -03:00 |
|
Roberto Ierusalimschy
|
118e9cd843
|
new facility for dumping chunks
|
2002-10-25 18:31:28 -03:00 |
|
Roberto Ierusalimschy
|
de00d0d0ad
|
module for dumping chunks
|
2002-10-25 18:31:28 -03:00 |
|
Roberto Ierusalimschy
|
1713b64065
|
Writer type must be public (so, in lua.h)
|
2002-10-25 18:30:49 -03:00 |
|
Roberto Ierusalimschy
|
671dc6eec2
|
new version (from lhf)
|
2002-10-25 18:30:41 -03:00 |
|
Roberto Ierusalimschy
|
e356a43dc0
|
C needs "union" (unlike C++)
|
2002-10-25 18:30:00 -03:00 |
|
Roberto Ierusalimschy
|
f36038e42a
|
assertion must be always valid (not only in debug mode)
|
2002-10-25 18:29:20 -03:00 |
|
Roberto Ierusalimschy
|
96e15b8501
|
threads now are real Lua objects, subject to garbage collection
|
2002-10-25 17:05:28 -03:00 |
|
Roberto Ierusalimschy
|
0fd91b1b08
|
optional limits for table.concat
|
2002-10-23 16:08:23 -03:00 |
|
Roberto Ierusalimschy
|
a2b353e044
|
details
|
2002-10-23 16:08:13 -03:00 |
|
Roberto Ierusalimschy
|
92a2ef9dca
|
field `__globals' protect global tables
|
2002-10-22 16:41:08 -03:00 |
|
Roberto Ierusalimschy
|
4fb9110a6e
|
tests for compatibility functions lua_dostring/lua_dofile
|
2002-10-22 15:07:55 -03:00 |
|
Roberto Ierusalimschy
|
11886dc7b0
|
print error on stderr when _ALERT is not defined
|
2002-10-22 15:07:55 -03:00 |
|
Roberto Ierusalimschy
|
81bc5711a8
|
only one instance of registry and default metatable per global state
|
2002-10-22 14:58:14 -03:00 |
|
Roberto Ierusalimschy
|
6a77a6b73f
|
avoid too much precision when printing numbers
|
2002-10-22 14:21:25 -03:00 |
|
Roberto Ierusalimschy
|
84e0b1bc97
|
small changes in type configuration facilities
|
2002-10-22 14:18:28 -03:00 |
|
Roberto Ierusalimschy
|
6823a2f57f
|
better tokens for error messages
|
2002-10-22 13:45:52 -03:00 |
|
Roberto Ierusalimschy
|
313b2fe902
|
detail
|
2002-10-21 17:43:38 -03:00 |
|
Roberto Ierusalimschy
|
425e5813b0
|
free prototype in (more or less) the same order it is created by
`undump'
|
2002-10-21 17:41:46 -03:00 |
|
Roberto Ierusalimschy
|
6505503b49
|
do not pretend that file is closed when close fails
|
2002-10-21 17:41:24 -03:00 |
|
Roberto Ierusalimschy
|
ec748fcb0a
|
correct handling of opened files in presence of memory allocation
errors
|
2002-10-16 17:41:35 -03:00 |
|
Roberto Ierusalimschy
|
c196348717
|
in case of memory allocation errors, sizecode and sizelineinfo can
be different
|
2002-10-16 17:40:58 -03:00 |
|
Roberto Ierusalimschy
|
669129a6d8
|
io.lines() iterate over the standard input file
|
2002-10-11 17:40:32 -03:00 |
|
Roberto Ierusalimschy
|
46b063ef59
|
`undump' also uses private buffer
|
2002-10-09 10:42:01 -03:00 |
|
Roberto Ierusalimschy
|
e1d5153a33
|
details
|
2002-10-09 10:00:08 -03:00 |
|
Roberto Ierusalimschy
|
b3d0682fb9
|
use of different buffers for scanner and concatenation
|
2002-10-08 15:46:08 -03:00 |
|
Roberto Ierusalimschy
|
02afc892d5
|
new ANSI C does not assure that realloc(p,0) == free(p)
|
2002-10-08 15:45:07 -03:00 |
|
Roberto Ierusalimschy
|
fa2f1ec7ba
|
to avoid `strerror', define itself to something else;
nil has a special, fixed reference
|
2002-10-04 11:31:40 -03:00 |
|
Roberto Ierusalimschy
|
829befcc41
|
small optimization for object comparison
|
2002-10-04 11:31:03 -03:00 |
|
Roberto Ierusalimschy
|
d477e4ffd6
|
detail
|
2002-10-04 11:30:31 -03:00 |
|
Roberto Ierusalimschy
|
ce09af1e25
|
easier to define api_check' using assert'
|
2002-09-20 14:01:24 -03:00 |
|
Roberto Ierusalimschy
|
98d0b79613
|
EXIT_SUCCESS may be different from 0
|
2002-09-20 10:32:56 -03:00 |
|
Roberto Ierusalimschy
|
e8f35fc4ff
|
unification of __index & __gettable (and __newindex & __settable)
|
2002-09-19 17:12:47 -03:00 |
|
Roberto Ierusalimschy
|
6fb0fd5063
|
avoid `reclearing' weak tables
|
2002-09-19 16:54:22 -03:00 |
|
Roberto Ierusalimschy
|
565e6d74e1
|
state's buffer is used only for chars
|
2002-09-19 10:03:53 -03:00 |
|
Roberto Ierusalimschy
|
f6bc7884be
|
new generators for reading a file line by line
|
2002-09-17 17:35:54 -03:00 |
|
Roberto Ierusalimschy
|
32a5d96dfc
|
`setmetatable' cannot change protected objects
|
2002-09-16 16:49:45 -03:00 |
|
Roberto Ierusalimschy
|
8dae071f42
|
details
|
2002-09-16 16:18:01 -03:00 |
|
Roberto Ierusalimschy
|
afe1305b1a
|
avoid luaS_resize (which may need extra memory) during `main' activities
|
2002-09-05 16:57:40 -03:00 |
|
Roberto Ierusalimschy
|
728fa167d2
|
cannot raise memory error when realloc to smaller block
|
2002-09-05 16:57:08 -03:00 |
|
Roberto Ierusalimschy
|
1bdde38bd2
|
no more newlines at the end of error messages
|
2002-09-05 16:45:42 -03:00 |
|
Roberto Ierusalimschy
|
b2bc3b44b6
|
no more reserved word "global"
|
2002-09-03 08:57:38 -03:00 |
|