Commit Graph

  • ae0a5e2142 new option '*L' for io.read + options for io.lines Roberto Ierusalimschy 2010-03-03 15:48:57 -03:00
  • 347f0c33d1 avoid 'continue' unless necessary Roberto Ierusalimschy 2010-02-27 18:16:24 -03:00
  • 622e448710 removed useless test (argv[i] cannot be NULL when i<argc) Roberto Ierusalimschy 2010-02-27 18:15:36 -03:00
  • 0fe2576a39 new instructions to optimize indexing on upvalues Roberto Ierusalimschy 2010-02-26 17:40:29 -03:00
  • d08d237a49 detail: in loadfile read function, no need to return NULL on EOF; size ==0 is enough to signal EOF. Roberto Ierusalimschy 2010-02-18 17:37:57 -02:00
  • 64a7ec987c avoid using 'ungetc' in loadfile Roberto Ierusalimschy 2010-02-18 17:32:41 -02:00
  • 4274738e81 new macro 'luai_writestringerror' Roberto Ierusalimschy 2010-02-18 17:18:41 -02:00
  • 0d7d559dcc no need to flush either stderr or \n-terminated outputs Roberto Ierusalimschy 2010-02-11 15:12:27 -02:00
  • af512ad6da use of 'conventional' names for shift and rotate operations + right/left versions for them Roberto Ierusalimschy 2010-02-11 13:55:29 -02:00
  • d27108ccd5 removed support for '#fist-line comment' on binary files (as binary files do not have lines...) Roberto Ierusalimschy 2010-02-11 13:52:50 -02:00
  • a838b3b496 better usage messages, showing entire offending argument Roberto Ierusalimschy 2010-02-09 09:58:57 -02:00
  • 4c54cd3a10 when yielding, original 'func' value must be kept and restored so that 'poscall' puts results in the right slot. Roberto Ierusalimschy 2010-02-09 09:56:29 -02:00
  • c8ff7de7f0 field 'oldtop' renamed to 'extra', as it can be used for other purposes Roberto Ierusalimschy 2010-02-09 09:55:37 -02:00
  • 3bae8e047c typo (thanks to Gavin) Roberto Ierusalimschy 2010-02-05 17:09:09 -02:00
  • 4f5f2fe367 new function 'luaL_cpcall' Roberto Ierusalimschy 2010-01-21 14:49:21 -02:00
  • 01586d539e typo in comment Roberto Ierusalimschy 2010-01-21 14:31:24 -02:00
  • c8ab34ab7a better messages for invalid options Roberto Ierusalimschy 2010-01-21 14:31:06 -02:00
  • 36ab1ee10c __unm metamethod gets nil as its 2nd parameter Roberto Ierusalimschy 2010-01-15 14:23:58 -02:00
  • 193ce46970 table.pack was locking last result, avoiding its collection Roberto Ierusalimschy 2010-01-13 17:59:10 -02:00
  • b678f246a4 HINSTANCE -> HMODULE (they are the same thing, but the MS documentation uses the latter) + LoadLibrary -> LoadLibraryEx with optional arguments, to allow the option LOAD_WITH_ALTERED_SEARCH_PATH Roberto Ierusalimschy 2010-01-13 14:30:27 -02:00
  • f270e7f044 warnings that are not compatible with C++ separated from other warning options Roberto Ierusalimschy 2010-01-13 14:19:54 -02:00
  • 070d3743a7 "no value" added to array luaT_typenames + occurrences of "userdata" in that array unified in a single address Roberto Ierusalimschy 2010-01-13 14:18:25 -02:00
  • 0c7de97d47 correct error message when yielding from outside a coroutine Roberto Ierusalimschy 2010-01-13 14:17:32 -02:00
  • 900b7d4514 on 64-bit machines, an address may not fit into a 'long', so it is better to convert from pointer to void to pointer to function directly, even if ANSI C does not like it. Roberto Ierusalimschy 2010-01-13 14:09:05 -02:00
  • 91f0b20a0e missing standard defines Roberto Ierusalimschy 2010-01-12 17:40:02 -02:00
  • e4b4623abc 'searchpath' changes dots into directory separators Roberto Ierusalimschy 2010-01-11 15:55:25 -02:00
  • cef96b73e1 added casts from int to enumerations to follow C++ rules Roberto Ierusalimschy 2010-01-11 15:38:30 -02:00
  • 427e01eb63 removed useless initialization Roberto Ierusalimschy 2010-01-11 15:37:59 -02:00
  • d320c908d0 conversion from pointer to void to pointer to function seems more "correct" if done through an integral type (because conversions between pointers and numbers are allowed, only "implementation defined"). Roberto Ierusalimschy 2010-01-11 15:34:59 -02:00
  • 8bfc696676 missing 'external' in variable declaration Roberto Ierusalimschy 2010-01-11 15:33:09 -02:00
  • 97a35e70af pathes corrected to 5.2 Roberto Ierusalimschy 2010-01-11 15:15:30 -02:00
  • 03b556b963 corrected copyright notice to 2010 Roberto Ierusalimschy 2010-01-11 15:15:11 -02:00
  • 572b94bbcb include of 'windows.h' moved to where it is needed Roberto Ierusalimschy 2010-01-11 15:11:24 -02:00
  • 692209fa8d Dynamic C functions should be created with the global table as their initial environments Roberto Ierusalimschy 2010-01-11 15:06:31 -02:00
  • 953d499ea2 changed macro lua_number2int for Windows (added brackets; some recent compilers complain about the old format) + added missing definition for 'lua_number2int' in Windows case. Roberto Ierusalimschy 2010-01-11 14:35:20 -02:00
  • a541ada194 "-"-trick in C packages now accept name-v13... Roberto Ierusalimschy 2010-01-11 14:10:47 -02:00
  • 55d3138397 removed old prototype for 'luaI_openlib' (which does not exist anymore) Roberto Ierusalimschy 2010-01-11 14:00:45 -02:00
  • e74e56f2b1 better may to force recompilation when makefile changes Roberto Ierusalimschy 2010-01-08 18:05:36 -02:00
  • 1ebf109c53 'setobj' must assing fields one by one, to allow trick of using pad space in table keys Roberto Ierusalimschy 2010-01-08 18:00:20 -02:00
  • f75be1cb28 removed parentheses around some function names in their definitions Roberto Ierusalimschy 2010-01-08 13:16:56 -02:00
  • 16d2ad88fe some changes in compatibility macros: added LUA_COMPAT_ALL + compatibility macros from lua.h and lauxlib.h moved to luaconf.h Roberto Ierusalimschy 2010-01-06 13:15:04 -02:00
  • f3a6815000 compatibility code removed or moved to luaconf.h Roberto Ierusalimschy 2010-01-06 13:14:15 -02:00
  • 19f8c87375 compatibility code moved to luaconf.h Roberto Ierusalimschy 2010-01-06 13:08:00 -02:00
  • 5bcfe0c700 new debug info 'isvararg' and 'nparams' Roberto Ierusalimschy 2010-01-06 12:42:35 -02:00
  • 8cd395564c no need to use two different defines (LUA_DL_DLOPEN and LUA_USE_DLOPEN) Roberto Ierusalimschy 2010-01-06 12:35:17 -02:00
  • 389c890ed3 again changing macro to function to save a few bytes Roberto Ierusalimschy 2010-01-06 09:48:02 -02:00
  • e3866afa97 macro 'luaY_checklimit' changed into a function (and renamed 'checklimit'). It makes no sense to trade space for time in the parser. Roberto Ierusalimschy 2010-01-05 16:46:58 -02:00
  • 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). Roberto Ierusalimschy 2010-01-05 16:33:26 -02:00
  • cec25167d1 new api_check that 'pcallk' cannot be called inside hooks Roberto Ierusalimschy 2010-01-04 16:17:51 -02:00
  • 1fd4c482a0 reorganization of switch in function 'match' (details) Roberto Ierusalimschy 2010-01-04 14:37:19 -02:00
  • 35e729fa6d comments + small details Roberto Ierusalimschy 2010-01-04 14:36:39 -02:00
  • 0dc09cb42e 'unpack' moved to table library (and therefore "renamed" to 'table.unpack'. Roberto Ierusalimschy 2009-12-28 14:30:31 -02:00
  • cc1cbd19a0 'lua_cpcall' is deprecated + other small changes in 'pmain' (comments and reordering to check arguments before running any Lua code) Roberto Ierusalimschy 2009-12-22 14:47:12 -02:00
  • cb3f95d516 'lua_cpcall' is deprecated Roberto Ierusalimschy 2009-12-22 14:47:00 -02:00
  • f84b575cfa no more pseudoindex LUA_GLOBALSINDEX; global table now accessible through registry Roberto Ierusalimschy 2009-12-22 13:32:50 -02:00
  • 3cb343efd6 code for error message for 'setn' removed Roberto Ierusalimschy 2009-12-18 14:53:12 -02:00
  • ec0fc1a13b missing parentheses around 'lua_version' + moving typdef's before the extra include Roberto Ierusalimschy 2009-12-18 13:32:36 -02:00
  • c3a6f3fa1c 'lua_objlen' replaced by 'lua_rawlen', 'lua_len', and 'luaL_len' Roberto Ierusalimschy 2009-12-17 14:20:01 -02:00
  • 0bbdddc86b allocator function receives the tag of object being allocated in 'osize' when 'ptr' is NULL. Roberto Ierusalimschy 2009-12-17 13:46:44 -02:00
  • b3b8dfaaea yet more options moved from luaconf.h into internal files Roberto Ierusalimschy 2009-12-17 11:08:51 -02:00
  • adc6a4865b macro name change: LUA_INIT->LUA_INIT_VAR Roberto Ierusalimschy 2009-12-17 11:07:41 -02:00
  • 2108754e46 macro name change: LUA_PATH->LUA_PATH_VAR, LUA_CPATH->LUA_CPATH_VAR, LUA_PATHSEP->LUA_PATH_SEP, LUA_EXECDIR->LUA_EXEC_DIR Roberto Ierusalimschy 2009-12-17 11:06:47 -02:00
  • 46f1429936 more options moved from luaconf.h into internal files Roberto Ierusalimschy 2009-12-17 10:50:20 -02:00
  • e0f9d1c8f5 removed export of function only for coco Roberto Ierusalimschy 2009-12-17 10:28:57 -02:00
  • de6fc75d63 several configuration options that do not change often moved out of luaconf.h and into more internal files Roberto Ierusalimschy 2009-12-17 10:26:09 -02:00
  • 2af0d3b459 allocator function receives the tag of object being allocated in 'osize' when 'ptr' is NULL. Roberto Ierusalimschy 2009-12-16 14:42:58 -02:00
  • 9fbe0690fb base-level C use global table as its environment Roberto Ierusalimschy 2009-12-15 09:25:36 -02:00
  • a25b8ff69c detail ('lua_tolstring' instead of lua_objlen) Roberto Ierusalimschy 2009-12-15 09:25:16 -02:00
  • 15b823ce4f cleaner way to add extra space in a lua state. Roberto Ierusalimschy 2009-12-14 13:27:30 -02:00
  • 8da245bfd2 better to keep GC state numbers sequential, to optimize switch in 'singlestep' Roberto Ierusalimschy 2009-12-11 19:31:14 -02:00
  • a2a2abcba4 new function 'luaC_runtilstate' to advance GC until a "valid" state Roberto Ierusalimschy 2009-12-11 17:14:59 -02:00
  • 2e51792596 avoid using deprecated macros lua_[gs]etglobal Roberto Ierusalimschy 2009-12-11 11:40:44 -02:00
  • 3a9ae612a4 macro 'ngcotouv' is the same as 'gco2uv', so it was removed Roberto Ierusalimschy 2009-12-11 11:39:34 -02:00
  • 9db693a57c detail (comment) Roberto Ierusalimschy 2009-12-10 17:00:33 -02:00
  • 1375435e4a several new features in testC to allow better testing of lua_resume at the C API level Roberto Ierusalimschy 2009-12-10 16:21:28 -02:00
  • 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). Roberto Ierusalimschy 2009-12-10 16:20:07 -02:00
  • 64d5df7772 detail (lua_resume should empty coroutine stack even if they do not fit into caller stack) Roberto Ierusalimschy 2009-12-10 16:17:37 -02:00
  • 2643da67c6 error messages from 'lua_resume' must be generated in protected mode, to avoid raising memory errors Roberto Ierusalimschy 2009-12-08 16:59:24 -02:00
  • ed117bb42a lua_checkstack does not raise memory errors (instead it signals them) Roberto Ierusalimschy 2009-12-08 14:15:43 -02:00
  • a4472490bc new 'table.pack' function Roberto Ierusalimschy 2009-12-07 13:50:27 -02:00
  • 86312e1a7d lua_objlen calls __len metamethod on tables (if present) Roberto Ierusalimschy 2009-12-07 13:49:47 -02:00
  • df1dc3f1f5 strings in C scripts may be delimited by quotes + new functionality to set C scripts as C hooks Roberto Ierusalimschy 2009-12-01 14:49:48 -02:00
  • 513d0258d9 details Roberto Ierusalimschy 2009-12-01 14:31:04 -02:00
  • cfa8bc3ca4 continuations may be upvalues too Roberto Ierusalimschy 2009-11-27 13:39:31 -02:00
  • a654e82f5c coroutines may have C bodies Roberto Ierusalimschy 2009-11-27 13:38:51 -02:00
  • 3e41afcec5 extra api checks for number of returns of C functions and for lua_yield Roberto Ierusalimschy 2009-11-27 13:37:59 -02:00
  • 3acf5ec5a1 update of file dependencies (gcc -MM) Roberto Ierusalimschy 2009-11-27 12:39:31 -02:00
  • 93695db903 'table.maxn' deprecated Roberto Ierusalimschy 2009-11-26 15:35:13 -02:00
  • 9107dd115c no more compatibility code for 'string.gfind' Roberto Ierusalimschy 2009-11-26 14:49:28 -02:00
  • dc4c459546 a few new warnings Roberto Ierusalimschy 2009-11-26 14:36:55 -02:00
  • 19a6c38745 detail in 'currentpc' (only needs to work for Lua functions) Roberto Ierusalimschy 2009-11-26 13:34:15 -02:00
  • 3c4d970a7b comment typos Roberto Ierusalimschy 2009-11-26 09:39:20 -02:00
  • b0f2b288a6 new scheme for debug info about tail calls: no more 'fake' stack entries, but stack entry knows whether it was tail called Roberto Ierusalimschy 2009-11-25 13:27:51 -02:00
  • 2b25489b47 'notail' -> 'noextrachars' ('notail' may confuse with tail calls) Roberto Ierusalimschy 2009-11-24 16:05:12 -02:00
  • a6f465f558 new mark LUAMOD_API for all luaopen_* functions Roberto Ierusalimschy 2009-11-24 10:05:44 -02:00
  • 9a41506b8f 'os.exit' should close state only when second argument is true Roberto Ierusalimschy 2009-11-23 16:20:38 -02:00
  • 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. Roberto Ierusalimschy 2009-11-23 12:59:30 -02:00
  • 062e809e54 new macros 'LUAI_DDEC'/'LUAI_DDEF' to better control declarations and definitions of non-static variables Roberto Ierusalimschy 2009-11-19 17:06:52 -02:00
  • b4c1824824 'luaV_arith' must be marked 'LUAI_FUNC' (as all non-static functions) Roberto Ierusalimschy 2009-11-19 17:04:58 -02:00
  • 2e5ef6a9fb new macro 'isdummy' Roberto Ierusalimschy 2009-11-19 15:54:07 -02:00