Commit Graph

  • 700b003fb5 when reading large files, double buffer size at each iteration Roberto Ierusalimschy 2010-11-08 15:27:22 -02:00
  • f722ba6890 code should not use "defined" types, but "typedef"s types when they are available (i.e., after including lua.h) + small changes to make conversions more portable across diferent types for lua_Number (long double) and lua_Unsigned (long long unsigned) Roberto Ierusalimschy 2010-11-08 14:33:20 -02:00
  • c7d4da8746 correction to allow lua_Unsigned larger than usigned int Roberto Ierusalimschy 2010-11-08 14:31:22 -02:00
  • f1629217f1 code for conversion macros moved from luaconf to llimits + 'uint' renamed to 'unsigned' in those macros Roberto Ierusalimschy 2010-11-03 13:16:17 -02:00
  • fdd5f2f7a3 comment typos Roberto Ierusalimschy 2010-10-29 15:52:46 -02:00
  • c6ef3e2672 bug: by-one error when creating short source names (luaO_chunkid) Roberto Ierusalimschy 2010-10-29 13:54:55 -02:00
  • ba8dca00ac detail (ununsed parameter) Roberto Ierusalimschy 2010-10-29 12:35:09 -02:00
  • 9be89a1864 'luaL_checkversion' also checks convertions (number to integer types) Roberto Ierusalimschy 2010-10-29 10:52:21 -02:00
  • b9f371a3c2 added another option for ieeeendian Roberto Ierusalimschy 2010-10-29 09:13:21 -02:00
  • 4834de8427 comment typo Roberto Ierusalimschy 2010-10-29 09:13:14 -02:00
  • 94043a3a1a more robust implementation for 'luaO_str2d' Roberto Ierusalimschy 2010-10-28 13:39:03 -02:00
  • e642cc4206 correct handling of negative numbers in non-10 bases by 'tonumber' (e.g., tonumber(-34, 8)) Roberto Ierusalimschy 2010-10-28 13:36:30 -02:00
  • da57477c3d added more platforms for ieeeendianess + small comments Roberto Ierusalimschy 2010-10-28 13:18:25 -02:00
  • f39034889d stricter control over number of bits in each operation Roberto Ierusalimschy 2010-10-28 13:17:29 -02:00
  • 6b053a63cb added check for architectures with known endianess (only i386 now) Roberto Ierusalimschy 2010-10-27 15:16:37 -02:00
  • 572e5e6b28 new names for bit functions (mimicking assembler) Roberto Ierusalimschy 2010-10-27 14:50:32 -02:00
  • 6098e06e09 better organization for coercion functions between lua_Number and integer types + IEEE trick to be used in most platforms, by default Roberto Ierusalimschy 2010-10-26 17:32:19 -02:00
  • c6b64ffe65 new type lua_Unsigned and corresponding projection/injection functions Roberto Ierusalimschy 2010-10-25 18:31:11 -02:00
  • 4590a89b32 corrected warnings from different compilers (mostly casts and small details) Roberto Ierusalimschy 2010-10-25 17:01:37 -02:00
  • 1475cb59bf version from lhf Roberto Ierusalimschy 2010-10-25 12:33:38 -02:00
  • 9e8e60dd5f bitlib renamed to 'bit32' + new function for arithmetic shift Roberto Ierusalimschy 2010-10-25 12:32:36 -02:00
  • d72ec210c7 POS_A replaced by POS_Ax (which is more "precise") Roberto Ierusalimschy 2010-10-25 10:24:55 -02:00
  • c77baf752c comment Roberto Ierusalimschy 2010-10-25 10:24:36 -02:00
  • a122688091 better error message for 'lua -e -i' Roberto Ierusalimschy 2010-10-18 14:06:33 -02:00
  • f3026c36c2 details in opcode list Roberto Ierusalimschy 2010-10-13 13:45:54 -03:00
  • cd0ebd0a80 'proto->source' may be NULL (if dump strips debug information) Roberto Ierusalimschy 2010-10-11 17:24:42 -03:00
  • 8bc33a088c 'os.exit' acceps booleans as status (for EXIT_SUCESS and EXIT_FAILURE) Roberto Ierusalimschy 2010-10-05 09:18:03 -03:00
  • c3eb89544f 'luaL_loadlib' accepts Utf8 BOM in the beginning of files Roberto Ierusalimschy 2010-10-01 15:53:00 -03:00
  • ffff9a49da 'nresults' in CallInfo now refers to number of results that the current function returns (and not what it expects from a call) Roberto Ierusalimschy 2010-09-30 14:21:31 -03:00
  • b22356e5c5 hexadecimal constants may be floating values too Roberto Ierusalimschy 2010-09-13 18:49:58 -03:00
  • a289a62717 'loadin' should not check whether upvalue is called '_ENV', because its name may be unknown when there is no debug information. Roberto Ierusalimschy 2010-09-07 16:38:36 -03:00
  • e3eabcf913 'lua_[gs]etupvalue' may work even without debug information (that is, without upvalue names) Roberto Ierusalimschy 2010-09-07 16:35:04 -03:00
  • 0df2238063 name "_ENV" configurable through 'luaconf.h' Roberto Ierusalimschy 2010-09-07 16:21:39 -03:00
  • 6828f6d427 new parameter 'majorinc' to control frequency of major collections in generational mode Roberto Ierusalimschy 2010-09-03 11:14:01 -03:00
  • daa5fe3e31 'loadin' should accept any value for the environment (not only tables) + it should check whether chunk has upvalue named '_ENV' Roberto Ierusalimschy 2010-08-23 15:03:11 -03:00
  • 8d9ea59d28 'pushclosure' -> 'codeclosure' (as there is another 'pushclosure' in 'lvm.c) + small detail Roberto Ierusalimschy 2010-08-23 14:32:34 -03:00
  • 5e7dbd0b8b api checks to ensure that thread is OK when using lua_call/lua_pcall Roberto Ierusalimschy 2010-08-04 15:40:28 -03:00
  • cd6c276e41 use index 0 for header of list of free references Roberto Ierusalimschy 2010-08-03 17:21:16 -03:00
  • fd4b4a2a68 detail: registry._PRELOAD must be a table, no need to check Roberto Ierusalimschy 2010-08-02 14:14:48 -03:00
  • d447945685 'module'/'luaL_register' and associates are deprecated Roberto Ierusalimschy 2010-07-28 12:51:59 -03:00
  • 78f9635111 several new comments Roberto Ierusalimschy 2010-07-26 12:53:23 -03:00
  • 8b7cf8c62d 'lua_[gs]etenv' -> 'lua_[gs]etuservalue' Roberto Ierusalimschy 2010-07-25 12:18:19 -03:00
  • 73b0a3451d environment variables consulted by Lua may be version-specific Roberto Ierusalimschy 2010-07-25 12:03:37 -03:00
  • 85c1461422 new macros LUA_VERSION_{MAJOR/MINOR/RELEASE} Roberto Ierusalimschy 2010-07-25 12:02:41 -03:00
  • 5ba556d27a using curly brackets to mark blocks of '#if/#else/#endif's Roberto Ierusalimschy 2010-07-18 11:34:45 -03:00
  • 81dd13f4c6 new way to distinguish between indexing tables in registers and tables in upvalues (+ fixed small bug when checking conflicts in multiple assignments) Roberto Ierusalimschy 2010-07-07 13:27:29 -03:00
  • 6a02bbe1e2 better organization for fields in struct 'expdesc' Roberto Ierusalimschy 2010-07-02 17:42:40 -03:00
  • 7631c29b2f comand-line option '-l' creates global with given name after requiring module Roberto Ierusalimschy 2010-07-02 14:36:32 -03:00
  • a9dc7c8828 functions lua_tonumber/lua_tointeger replaced by lua_tonumberx/lua_tointegerx that have an extra out parameter with conversion status Roberto Ierusalimschy 2010-07-02 14:35:06 -03:00
  • 7192afafee new module policy: C modules do not create globals and do not register themselves with 'require' (let 'require' do its work); new auxiliary functions luaL_newlib/luaL_newlibtable/luaL_setfuncs/luaL_requiref. Old luaL_register will be deprecated. Roberto Ierusalimschy 2010-07-02 08:38:13 -03:00
  • a139e2e003 old (and complex) luaL_findtable now used only in compatibility code inside lauxlib.c Roberto Ierusalimschy 2010-06-30 14:40:27 -03:00
  • a71c5f6f53 typo in comments Roberto Ierusalimschy 2010-06-30 11:11:17 -03:00
  • d9ea6eca7c macro 'key2tal' replaced by 'gkey' (as both were equal) Roberto Ierusalimschy 2010-06-25 09:18:10 -03:00
  • ca3865cf1b 'getlocal' gets information about parameters of Lua functions Roberto Ierusalimschy 2010-06-21 13:30:12 -03:00
  • bef5980744 no more support for old Mac OS systems Roberto Ierusalimschy 2010-06-18 14:23:02 -03:00
  • 409741e900 'what' may be NULL in 'kname' Roberto Ierusalimschy 2010-06-16 10:44:36 -03:00
  • b98de30b8f 'ipair' is back Roberto Ierusalimschy 2010-06-13 16:41:34 -03:00
  • 9f48712c15 use ANSI versions of DLL functions in Windows Roberto Ierusalimschy 2010-06-13 16:36:17 -03:00
  • bd262d591f 'coroutine' library separated from 'baselib' Roberto Ierusalimschy 2010-06-10 18:30:26 -03:00
  • 0d116c3ada unused '#include' removed Roberto Ierusalimschy 2010-06-10 18:27:09 -03:00
  • 79f11fb2bb back with #-comments for binary files Roberto Ierusalimschy 2010-06-09 14:53:59 -03:00
  • fabe4ec487 better barrier for prototypes Roberto Ierusalimschy 2010-06-07 13:55:34 -03:00
  • 575074fd85 Lua closures are cached for reuse Roberto Ierusalimschy 2010-06-04 10:25:10 -03:00
  • 545f43065f 'luaF_newLclosure' gets prototype of new closure as argument Roberto Ierusalimschy 2010-06-04 10:06:15 -03:00
  • 3819c30e55 better names for barrier macros Roberto Ierusalimschy 2010-06-04 10:05:29 -03:00
  • e94fac8956 bug: generational collection was not running collector! (must write a test for this...) Roberto Ierusalimschy 2010-06-02 15:36:58 -03:00
  • 2c1a5d678d factoring out common code in 'module' and 'luaL_openlib' Roberto Ierusalimschy 2010-05-31 13:34:19 -03:00
  • bd619b9311 new macro MAXUPVAL (maximum number of upvalues per closure) Roberto Ierusalimschy 2010-05-31 13:08:55 -03:00
  • aca84ee1a0 correct definition for 'lua_cpcall' (tested) Roberto Ierusalimschy 2010-05-28 11:27:07 -03:00
  • 5038e3c58c corrected compatibility macro 'lua_cpcall' (untested) Roberto Ierusalimschy 2010-05-27 09:06:42 -03:00
  • 5a7dee0c5d added class '%g' in patterns (for graphical characters) Roberto Ierusalimschy 2010-05-24 16:34:57 -03:00
  • ddf1f2a053 GC should not run when stopped, even in hard tests Roberto Ierusalimschy 2010-05-24 16:29:46 -03:00
  • e34d3c06b0 it is better to call open functions with lua_call to not mess the caller stack Roberto Ierusalimschy 2010-05-20 09:57:59 -03:00
  • e8a2c36909 more comments Roberto Ierusalimschy 2010-05-18 14:32:19 -03:00
  • 3c39a0e8cb bug: loadfile of binary files read first character twice Roberto Ierusalimschy 2010-05-18 14:21:24 -03:00
  • 3d45a8eb1c really stop collection during finalizers Roberto Ierusalimschy 2010-05-17 17:39:31 -03:00
  • 3d80aeab5a lua_pushstring may reallocate the stack, making 'o' a dangling pointer Roberto Ierusalimschy 2010-05-17 17:10:17 -03:00
  • 3811e23b32 detail (comment) Roberto Ierusalimschy 2010-05-17 15:30:27 -03:00
  • 12c764ed1e semicolons now represent the empty statement Roberto Ierusalimschy 2010-05-15 10:32:02 -03:00
  • e99e9a9473 patches for last two bugs (string.format and io.read) Roberto Ierusalimschy 2010-05-14 12:34:57 -03:00
  • f35ac38e1d updated depenency lists + eliminated duplication of definitions for MYCFLAGS, MYLDFLAGS, and MYLIBS. Roberto Ierusalimschy 2010-05-14 12:08:10 -03:00
  • 058279d548 comments Roberto Ierusalimschy 2010-05-14 12:03:43 -03:00
  • 69ba1ac441 new "instruction" 'absindex' Roberto Ierusalimschy 2010-05-14 10:15:54 -03:00
  • 4a925c1552 in 'absindex', do not need to call gettop (can inline it) Roberto Ierusalimschy 2010-05-14 10:15:26 -03:00
  • cf531912f2 one more macro (mvdispatch) to easy experiments with alternative dispatch methods Roberto Ierusalimschy 2010-05-13 16:53:05 -03:00
  • 0d00729e31 detail (breaking a long line) Roberto Ierusalimschy 2010-05-13 09:03:26 -03:00
  • b6e9fcbd70 use of macro ('vmcase') to format all cases in main switch of 'luaV_execute' (to facilitate experiences with direct threading) Roberto Ierusalimschy 2010-05-12 17:40:35 -03:00
  • 8554baeacf small changes in 'luaV_execute' to make cases more regularly formatted Roberto Ierusalimschy 2010-05-12 17:31:33 -03:00
  • f5b7f077ec added comments to '#else' and '#endif' in long conditionals Roberto Ierusalimschy 2010-05-12 11:17:36 -03:00
  • e924a7f9ea new API function 'lua_absindex' Roberto Ierusalimschy 2010-05-12 11:09:20 -03:00
  • 4fd76b8148 avoid "strong" cast Roberto Ierusalimschy 2010-05-11 17:49:26 -03:00
  • de0f51a02c wrong type being assigned (not detected because of obj2gco macro) Roberto Ierusalimschy 2010-05-11 17:48:36 -03:00
  • 0567221848 udata in 'tobefnz' list be have old bit on (it will be cleared when udata is moved to 'allgc' list) Roberto Ierusalimschy 2010-05-10 15:24:36 -03:00
  • 1c1a98e872 corrected some places where an old object could end up in front of a new one + minimal documentation about this problem Roberto Ierusalimschy 2010-05-10 15:23:45 -03:00
  • c006f085d9 new macro 'resetoldbit' Roberto Ierusalimschy 2010-05-10 13:46:49 -03:00
  • a48e330f37 macros 'lua_number2int' and 'lua_number2uint' for Visual Studio corrected and tested Roberto Ierusalimschy 2010-05-10 13:38:58 -03:00
  • dcc070683c avoid reserving LUA_RIDX_LAST slots in any table used by reference system. Store free list in a field indexed by a unique name, instead of using a numerical index. Roberto Ierusalimschy 2010-05-10 12:25:02 -03:00
  • 2d81cfa4e1 corrected definition of 'lua_register' (there is no LUA_ENVIRONINDEX anymore) Roberto Ierusalimschy 2010-05-10 10:50:20 -03:00
  • 0bccf03d7e slightly better definition for 'changenvalue' Roberto Ierusalimschy 2010-05-07 15:44:46 -03:00
  • ad2b5decc8 'lua_assert' can be empty when assertions are off Roberto Ierusalimschy 2010-05-07 15:44:12 -03:00