Roberto Ierusalimschy
|
a541ada194
|
"-"-trick in C packages now accept name-v13...
|
2010-01-11 14:10:47 -02:00 |
|
Roberto Ierusalimschy
|
55d3138397
|
removed old prototype for 'luaI_openlib' (which does not exist anymore)
|
2010-01-11 14:00:45 -02:00 |
|
Roberto Ierusalimschy
|
e74e56f2b1
|
better may to force recompilation when makefile changes
|
2010-01-08 18:05:36 -02:00 |
|
Roberto Ierusalimschy
|
1ebf109c53
|
'setobj' must assing fields one by one, to allow trick of using
pad space in table keys
|
2010-01-08 18:00:20 -02:00 |
|
Roberto Ierusalimschy
|
f75be1cb28
|
removed parentheses around some function names in their definitions
|
2010-01-08 13:16:56 -02:00 |
|
Roberto Ierusalimschy
|
16d2ad88fe
|
some changes in compatibility macros: added LUA_COMPAT_ALL + compatibility
macros from lua.h and lauxlib.h moved to luaconf.h
|
2010-01-06 13:15:04 -02:00 |
|
Roberto Ierusalimschy
|
f3a6815000
|
compatibility code removed or moved to luaconf.h
|
2010-01-06 13:14:15 -02:00 |
|
Roberto Ierusalimschy
|
19f8c87375
|
compatibility code moved to luaconf.h
|
2010-01-06 13:08:00 -02:00 |
|
Roberto Ierusalimschy
|
5bcfe0c700
|
new debug info 'isvararg' and 'nparams'
|
2010-01-06 12:42:35 -02:00 |
|
Roberto Ierusalimschy
|
8cd395564c
|
no need to use two different defines (LUA_DL_DLOPEN and LUA_USE_DLOPEN)
|
2010-01-06 12:35:17 -02:00 |
|
Roberto Ierusalimschy
|
389c890ed3
|
again changing macro to function to save a few bytes
|
2010-01-06 09:48:02 -02:00 |
|
Roberto Ierusalimschy
|
e3866afa97
|
macro 'luaY_checklimit' changed into a function (and renamed 'checklimit').
It makes no sense to trade space for time in the parser.
|
2010-01-05 16:46:58 -02:00 |
|
Roberto Ierusalimschy
|
25189b420d
|
field 'nups' in struct 'lua_Debug' changed from 'int' to 'unsigned
char' to save some space (even C functions cannot have more than
maxchar upvalues).
|
2010-01-05 16:33:26 -02:00 |
|
Roberto Ierusalimschy
|
cec25167d1
|
new api_check that 'pcallk' cannot be called inside hooks
|
2010-01-04 16:17:51 -02:00 |
|
Roberto Ierusalimschy
|
1fd4c482a0
|
reorganization of switch in function 'match' (details)
|
2010-01-04 14:37:19 -02:00 |
|
Roberto Ierusalimschy
|
35e729fa6d
|
comments + small details
|
2010-01-04 14:36:39 -02:00 |
|
Roberto Ierusalimschy
|
0dc09cb42e
|
'unpack' moved to table library (and therefore "renamed" to
'table.unpack'.
|
2009-12-28 14:30:31 -02:00 |
|
Roberto Ierusalimschy
|
cc1cbd19a0
|
'lua_cpcall' is deprecated + other small changes in 'pmain' (comments
and reordering to check arguments before running any Lua code)
|
2009-12-22 14:47:12 -02:00 |
|
Roberto Ierusalimschy
|
cb3f95d516
|
'lua_cpcall' is deprecated
|
2009-12-22 14:47:00 -02:00 |
|
Roberto Ierusalimschy
|
f84b575cfa
|
no more pseudoindex LUA_GLOBALSINDEX; global table now accessible
through registry
|
2009-12-22 13:32:50 -02:00 |
|
Roberto Ierusalimschy
|
3cb343efd6
|
code for error message for 'setn' removed
|
2009-12-18 14:53:12 -02:00 |
|
Roberto Ierusalimschy
|
ec0fc1a13b
|
missing parentheses around 'lua_version' + moving typdef's before
the extra include
|
2009-12-18 13:32:36 -02:00 |
|
Roberto Ierusalimschy
|
c3a6f3fa1c
|
'lua_objlen' replaced by 'lua_rawlen', 'lua_len', and 'luaL_len'
|
2009-12-17 14:20:01 -02:00 |
|
Roberto Ierusalimschy
|
0bbdddc86b
|
allocator function receives the tag of object being allocated in 'osize'
when 'ptr' is NULL.
|
2009-12-17 13:46:44 -02:00 |
|
Roberto Ierusalimschy
|
b3b8dfaaea
|
yet more options moved from luaconf.h into internal files
|
2009-12-17 11:08:51 -02:00 |
|
Roberto Ierusalimschy
|
adc6a4865b
|
macro name change: LUA_INIT->LUA_INIT_VAR
|
2009-12-17 11:07:41 -02:00 |
|
Roberto Ierusalimschy
|
2108754e46
|
macro name change: LUA_PATH->LUA_PATH_VAR, LUA_CPATH->LUA_CPATH_VAR,
LUA_PATHSEP->LUA_PATH_SEP, LUA_EXECDIR->LUA_EXEC_DIR
|
2009-12-17 11:06:47 -02:00 |
|
Roberto Ierusalimschy
|
46f1429936
|
more options moved from luaconf.h into internal files
|
2009-12-17 10:50:20 -02:00 |
|
Roberto Ierusalimschy
|
e0f9d1c8f5
|
removed export of function only for coco
|
2009-12-17 10:28:57 -02:00 |
|
Roberto Ierusalimschy
|
de6fc75d63
|
several configuration options that do not change often moved out of
luaconf.h and into more internal files
|
2009-12-17 10:26:09 -02:00 |
|
Roberto Ierusalimschy
|
2af0d3b459
|
allocator function receives the tag of object being allocated in 'osize'
when 'ptr' is NULL.
|
2009-12-16 14:42:58 -02:00 |
|
Roberto Ierusalimschy
|
9fbe0690fb
|
base-level C use global table as its environment
|
2009-12-15 09:25:36 -02:00 |
|
Roberto Ierusalimschy
|
a25b8ff69c
|
detail ('lua_tolstring' instead of lua_objlen)
|
2009-12-15 09:25:16 -02:00 |
|
Roberto Ierusalimschy
|
15b823ce4f
|
cleaner way to add extra space in a lua state.
|
2009-12-14 13:27:30 -02:00 |
|
Roberto Ierusalimschy
|
8da245bfd2
|
better to keep GC state numbers sequential, to optimize switch in
'singlestep'
|
2009-12-11 19:31:14 -02:00 |
|
Roberto Ierusalimschy
|
a2a2abcba4
|
new function 'luaC_runtilstate' to advance GC until a "valid" state
|
2009-12-11 17:14:59 -02:00 |
|
Roberto Ierusalimschy
|
2e51792596
|
avoid using deprecated macros lua_[gs]etglobal
|
2009-12-11 11:40:44 -02:00 |
|
Roberto Ierusalimschy
|
3a9ae612a4
|
macro 'ngcotouv' is the same as 'gco2uv', so it was removed
|
2009-12-11 11:39:34 -02:00 |
|
Roberto Ierusalimschy
|
9db693a57c
|
detail (comment)
|
2009-12-10 17:00:33 -02:00 |
|
Roberto Ierusalimschy
|
1375435e4a
|
several new features in testC to allow better testing of lua_resume
at the C API level
|
2009-12-10 16:21:28 -02:00 |
|
Roberto Ierusalimschy
|
2bb19ccf08
|
reordering of some functions + cleaner way to code lua_resume/resume +
small bug in lua_resume (in case of calling errors lua_resume should
remove only new arguments from the stack and push error message).
|
2009-12-10 16:20:07 -02:00 |
|
Roberto Ierusalimschy
|
64d5df7772
|
detail (lua_resume should empty coroutine stack even if they do not
fit into caller stack)
|
2009-12-10 16:17:37 -02:00 |
|
Roberto Ierusalimschy
|
2643da67c6
|
error messages from 'lua_resume' must be generated in protected mode,
to avoid raising memory errors
|
2009-12-08 16:59:24 -02:00 |
|
Roberto Ierusalimschy
|
ed117bb42a
|
lua_checkstack does not raise memory errors (instead it signals them)
|
2009-12-08 14:15:43 -02:00 |
|
Roberto Ierusalimschy
|
a4472490bc
|
new 'table.pack' function
|
2009-12-07 13:50:27 -02:00 |
|
Roberto Ierusalimschy
|
86312e1a7d
|
lua_objlen calls __len metamethod on tables (if present)
|
2009-12-07 13:49:47 -02:00 |
|
Roberto Ierusalimschy
|
df1dc3f1f5
|
strings in C scripts may be delimited by quotes + new functionality to
set C scripts as C hooks
|
2009-12-01 14:49:48 -02:00 |
|
Roberto Ierusalimschy
|
513d0258d9
|
details
|
2009-12-01 14:31:04 -02:00 |
|
Roberto Ierusalimschy
|
cfa8bc3ca4
|
continuations may be upvalues too
|
2009-11-27 13:39:31 -02:00 |
|
Roberto Ierusalimschy
|
a654e82f5c
|
coroutines may have C bodies
|
2009-11-27 13:38:51 -02:00 |
|
Roberto Ierusalimschy
|
3e41afcec5
|
extra api checks for number of returns of C functions and for lua_yield
|
2009-11-27 13:37:59 -02:00 |
|
Roberto Ierusalimschy
|
3acf5ec5a1
|
update of file dependencies (gcc -MM)
|
2009-11-27 12:39:31 -02:00 |
|
Roberto Ierusalimschy
|
93695db903
|
'table.maxn' deprecated
|
2009-11-26 15:35:13 -02:00 |
|
Roberto Ierusalimschy
|
9107dd115c
|
no more compatibility code for 'string.gfind'
|
2009-11-26 14:49:28 -02:00 |
|
Roberto Ierusalimschy
|
dc4c459546
|
a few new warnings
|
2009-11-26 14:36:55 -02:00 |
|
Roberto Ierusalimschy
|
19a6c38745
|
detail in 'currentpc' (only needs to work for Lua functions)
|
2009-11-26 13:34:15 -02:00 |
|
Roberto Ierusalimschy
|
3c4d970a7b
|
comment typos
|
2009-11-26 09:39:20 -02:00 |
|
Roberto Ierusalimschy
|
b0f2b288a6
|
new scheme for debug info about tail calls: no more 'fake' stack entries,
but stack entry knows whether it was tail called
|
2009-11-25 13:27:51 -02:00 |
|
Roberto Ierusalimschy
|
2b25489b47
|
'notail' -> 'noextrachars' ('notail' may confuse with tail calls)
|
2009-11-24 16:05:12 -02:00 |
|
Roberto Ierusalimschy
|
a6f465f558
|
new mark LUAMOD_API for all luaopen_* functions
|
2009-11-24 10:05:44 -02:00 |
|
Roberto Ierusalimschy
|
9a41506b8f
|
'os.exit' should close state only when second argument is true
|
2009-11-23 16:20:38 -02:00 |
|
Roberto Ierusalimschy
|
9a6d9ea57a
|
GC may get stuck during a parser and avoids proper resizing of the
string table, making its lists grow too much and degrading performance.
|
2009-11-23 12:59:30 -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
|
b4c1824824
|
'luaV_arith' must be marked 'LUAI_FUNC' (as all non-static functions)
|
2009-11-19 17:04:58 -02:00 |
|
Roberto Ierusalimschy
|
2e5ef6a9fb
|
new macro 'isdummy'
|
2009-11-19 15:54:07 -02:00 |
|
Roberto Ierusalimschy
|
1dea393058
|
small corrections for 'luaall.c'
|
2009-11-19 14:26:52 -02:00 |
|
Roberto Ierusalimschy
|
45dec34597
|
comments
|
2009-11-19 14:26:29 -02:00 |
|
Roberto Ierusalimschy
|
b40a38a8ac
|
remove declaration of removed function
|
2009-11-19 14:24:41 -02:00 |
|
Roberto Ierusalimschy
|
ac899a6307
|
'debug.joinupvalue' -> 'debug.upvaluejoin'
|
2009-11-18 13:50:18 -02:00 |
|
Roberto Ierusalimschy
|
ce444bff33
|
(huge) simplification of GC management
|
2009-11-18 11:13:47 -02:00 |
|
Roberto Ierusalimschy
|
2d5931ebc8
|
ensure that reader function cannot yield during parsing
|
2009-11-17 14:46:44 -02:00 |
|
Roberto Ierusalimschy
|
35fa276099
|
parser/scanner keep GC running
|
2009-11-17 14:33:38 -02:00 |
|
Roberto Ierusalimschy
|
b51d76ce8d
|
when doing hard memory tests, perform a full GC at every possible step
|
2009-11-17 09:56:03 -02:00 |
|
Roberto Ierusalimschy
|
95020afb63
|
'module' returns the new module (to be used with lexical environments)
|
2009-11-16 13:51:19 -02:00 |
|
Roberto Ierusalimschy
|
c5050b1c41
|
functions 'getfenv' and 'setfenv' are deprecated
|
2009-11-16 13:51:03 -02:00 |
|
Roberto Ierusalimschy
|
b9063a08f5
|
new function 'loadin'
|
2009-11-13 15:01:40 -02:00 |
|
Roberto Ierusalimschy
|
7fe405739c
|
renaming: 'lua_upvaladdr' -> 'lua_upvalueid',
'lua_upvaljoin' -> 'lua_upvaluejoin'
|
2009-11-09 17:10:48 -02:00 |
|
Roberto Ierusalimschy
|
1ce819333d
|
new option 'isrunning' for 'lua_gc' (and 'collectgarbage')
|
2009-11-09 16:55:17 -02:00 |
|
Roberto Ierusalimschy
|
88eb901f81
|
registry and global table may be changed through the API without a
write barrier, so GC should visit them in the atomic phase.
|
2009-11-09 16:29:21 -02:00 |
|
Roberto Ierusalimschy
|
2583bac3d3
|
several small changes to simplify changing TValue if needed
|
2009-11-06 15:09:27 -02:00 |
|
Roberto Ierusalimschy
|
63a3b1a1eb
|
macro 'checkvalref' redefined as function (to avoid too long macros)
|
2009-11-06 15:08:43 -02:00 |
|
Roberto Ierusalimschy
|
fbf866a1a5
|
macro 'gkey' returns a "real" TValue*
|
2009-11-06 15:07:48 -02:00 |
|
Roberto Ierusalimschy
|
49a67c6d3f
|
new macro 'NILCONSTANT' to initialize nil constants
|
2009-11-06 15:07:12 -02:00 |
|
Roberto Ierusalimschy
|
a921d81033
|
avoid using 'ttype' when there is an explicit test + macro 'checkdeadkey'
to avoid repetitions
|
2009-11-06 15:06:19 -02:00 |
|
Roberto Ierusalimschy
|
155dd01163
|
avoid using 'ttype' when there is an explicit test
|
2009-11-06 15:05:34 -02:00 |
|
Roberto Ierusalimschy
|
599789a907
|
better to enclose macros in 'if' bodies with brackets
|
2009-11-06 15:03:37 -02:00 |
|
Roberto Ierusalimschy
|
9756f56354
|
better control over accesses to TValue fields
|
2009-11-05 15:43:54 -02:00 |
|
Roberto Ierusalimschy
|
b7d5f18d71
|
api functions to manipulate upvalues do not need to check their
arguments (the caller must check them before calling)
|
2009-11-05 15:26:00 -02:00 |
|
Roberto Ierusalimschy
|
5598b2bc55
|
new functions to identify and join upvalues
|
2009-11-05 14:48:31 -02:00 |
|
Roberto Ierusalimschy
|
77077b39d5
|
comment explaining OP_VARARG was wrong (and corresponding code was not
very clear)
|
2009-10-28 10:20:07 -02:00 |
|
Roberto Ierusalimschy
|
5bc91c6405
|
no more one environment per thread: all threads share a single global
environment
|
2009-10-23 17:12:19 -02:00 |
|
Roberto Ierusalimschy
|
f5073de0a7
|
'ipairs' goes until length of array instead of stopping at the first nil
|
2009-10-23 10:50:25 -02:00 |
|
Roberto Ierusalimschy
|
f6ed285cf2
|
new hash for doubles based on frexp, to avoid low-level tricks
|
2009-10-23 10:31:12 -02:00 |
|
Roberto Ierusalimschy
|
1448e736f0
|
better documentation for constructor syntax
|
2009-10-14 13:43:11 -03:00 |
|
Roberto Ierusalimschy
|
6e415e9387
|
local function definition does not need to correct debug information
|
2009-10-13 16:35:42 -03:00 |
|
Roberto Ierusalimschy
|
b114c99a60
|
two small bugs: 'debug.getinfo' did not consider negative indices as out
of range + 'debug.[gs]etlocal' crash on tail calls
|
2009-10-13 16:07:40 -03:00 |
|
Roberto Ierusalimschy
|
916587508c
|
parser keeps list of active local variables in a single dynamic array,
therefore saving C stack space
|
2009-10-11 17:02:19 -03:00 |
|
Roberto Ierusalimschy
|
a5382b763c
|
new function lua_copy
|
2009-10-05 13:44:33 -03:00 |
|
Roberto Ierusalimschy
|
ba21aa8b2b
|
'cpcall' must ensure correct environment for called function
|
2009-09-30 17:49:47 -03:00 |
|
Roberto Ierusalimschy
|
d119cf3035
|
a few more instructions to testC (func2udata and getfield)
|
2009-09-30 17:49:25 -03:00 |
|