Commit Graph

  • 817f8674af avoid warning about -unsigned value Roberto Ierusalimschy 2011-06-16 11:14:31 -03:00
  • cf0562e1e7 detail (missing cast to unsigned char when converting char to int) Roberto Ierusalimschy 2011-06-16 11:13:22 -03:00
  • 22e1c5ebad avoid conversion from 'const char*' to 'void *' (warning about 'const') Roberto Ierusalimschy 2011-06-16 11:12:24 -03:00
  • 470dd56a89 'os.execute' (and similars) should return 'exit' and code in case of success, too. Roberto Ierusalimschy 2011-06-16 11:11:04 -03:00
  • 20d30bcd33 declarations should be present only when implementations are Roberto Ierusalimschy 2011-06-16 11:10:12 -03:00
  • 44b6f496b5 just in case, avoid side effects in 'ctype' macros Roberto Ierusalimschy 2011-06-15 11:35:55 -03:00
  • fd80e63468 configuration for NaN trick big-endian + macro 'luai_checknum' to ensure numbers comming from C are not "improper" (some kinds of signaling NaNs) Roberto Ierusalimschy 2011-06-13 11:13:06 -03:00
  • f62565abea avoid warnings with -Wstrict-overflow Roberto Ierusalimschy 2011-06-09 15:24:22 -03:00
  • c9d1d9f9c6 better way to test overflows with string indices Roberto Ierusalimschy 2011-06-09 15:22:47 -03:00
  • 35391d9b1a macro 'NNMARK' (mark for non-number values using the NaN trick) Roberto Ierusalimschy 2011-06-09 15:21:25 -03:00
  • 99b1b8e918 first version with 'NANTRICK' (packing all Lua values inside a 'double') Roberto Ierusalimschy 2011-06-07 16:02:33 -03:00
  • 3b44821334 stricter control (using tag variants) over closure kinds (Lua x C) Roberto Ierusalimschy 2011-06-02 16:31:40 -03:00
  • 0214dab989 yet another macro ('num_') Roberto Ierusalimschy 2011-05-31 16:15:01 -03:00
  • 821bd7025e more uniform names for 'equalobj'-related functions Roberto Ierusalimschy 2011-05-31 15:27:56 -03:00
  • 9b7dddad7d no need for two different implementations for equality (one raw and one with metamethods) Roberto Ierusalimschy 2011-05-31 15:24:36 -03:00
  • 3f04a9f2c0 code is simpler without 'goto' here Roberto Ierusalimschy 2011-05-30 13:36:38 -03:00
  • 2a59a999d4 yet another macro abstracting TValue representation Roberto Ierusalimschy 2011-05-26 14:12:31 -03:00
  • ee7d0c2649 new macro 'luai_writeline' to print newlines (and flush 'stdout') Roberto Ierusalimschy 2011-05-26 13:09:40 -03:00
  • aa13c591f5 avoid use of 'ifdef/ifndef'; use 'defined' instead (simpler and more powerful) Roberto Ierusalimschy 2011-05-25 11:12:28 -03:00
  • 6c8a32217a changes by lhf (better control of chars x bytes) Roberto Ierusalimschy 2011-05-17 09:42:43 -03:00
  • cb09f4fef4 details Roberto Ierusalimschy 2011-05-06 13:00:23 -03:00
  • 3cf1729a02 new macro 'lua_longassert' that is equivalent to an assertion without a stringfication of the condition, to avoid too long string literals (limited by C90 to ~510 characters) Roberto Ierusalimschy 2011-05-05 16:43:14 -03:00
  • 74b0bb3a45 macro 'checkconsistency' moved to this file, as it is used only here Roberto Ierusalimschy 2011-05-05 16:42:25 -03:00
  • e4076fe6d9 break long assertion in two shorter ones Roberto Ierusalimschy 2011-05-05 13:18:53 -03:00
  • 81952e6884 avoid using expression as argument to unsafe macro 'l_isfalse' Roberto Ierusalimschy 2011-05-05 13:16:33 -03:00
  • 25b4e35ee8 new macros abstracting TValue representation (to easy change to other representations) Roberto Ierusalimschy 2011-05-05 12:53:23 -03:00
  • 7e1facaa4e detail in assertion Roberto Ierusalimschy 2011-05-04 14:04:06 -03:00
  • ad2531a0ee more complete (and hopefuly more correct) handling of 'sizeof(char)' Roberto Ierusalimschy 2011-05-03 13:01:57 -03:00
  • bc1c718cc0 removed TOKEN_LEN (useless) Roberto Ierusalimschy 2011-05-03 12:51:16 -03:00
  • c9ce754e38 comment Roberto Ierusalimschy 2011-05-02 14:33:01 -03:00
  • d34271fe42 MacOS 'strtod' handles hexa formats too Roberto Ierusalimschy 2011-04-29 10:56:28 -03:00
  • d120ec29ca bug in OP_SELF when method name goes to a register Roberto Ierusalimschy 2011-04-28 11:00:11 -03:00
  • 2aff901c93 Mac OS defines LUA_USE_AFORMAT and LUA_USE_LONGLONG by default Roberto Ierusalimschy 2011-04-20 15:25:54 -03:00
  • bad231c481 'LUA_USELONGLONG' -> 'LUA_USE_LONGLONG' Roberto Ierusalimschy 2011-04-20 13:36:28 -03:00
  • a2b1c279f1 'LUA_USELONGLONG' on by default on Linux + LUA_USE_HEXAFLOAT renamed to LUA_USE_STRTODHEX (as Lua 5.2 always *uses* hexa floats) Roberto Ierusalimschy 2011-04-19 15:31:30 -03:00
  • 2f128c5130 'luaL_setfuncs' does not need to accept a NULL list. (If there is no list, there is no reason to call this function.) Roberto Ierusalimschy 2011-04-19 15:29:41 -03:00
  • 4758113043 change in opcode OP_LOADNIL: B is used as a counter instead of a register. (Avoids an assignment to R(B), not present in any other instruction.) Roberto Ierusalimschy 2011-04-19 13:22:13 -03:00
  • a4e644add2 small bug (masked by wrong entry for OP_TEST in opcodes.c) Roberto Ierusalimschy 2011-04-18 16:49:13 -03:00
  • 05ca63642b added macro for code checking Roberto Ierusalimschy 2011-04-18 16:48:53 -03:00
  • f17e3624ef local function name only visible to debug info after being initialized Roberto Ierusalimschy 2011-04-18 16:48:24 -03:00
  • 2e9b8476ca detail ('luai_apicheck' should be used always through macro 'api_check') Roberto Ierusalimschy 2011-04-18 12:02:37 -03:00
  • c31f4946e9 copyright updated to 2011 Roberto Ierusalimschy 2011-04-18 11:15:48 -03:00
  • c86586e866 small corrections in description of OP_TEST and OP_LOADKX Roberto Ierusalimschy 2011-04-12 14:27:35 -03:00
  • 19fbdf6cae 'luaL_findtable' -> 'luaL_getsubtable' Roberto Ierusalimschy 2011-04-08 16:17:36 -03:00
  • 427ee519db new instruction OP_LOADKX (to replace OP_LOADK with extra argument) Roberto Ierusalimschy 2011-04-07 15:14:12 -03:00
  • a958b711f5 cleaner scheme of bits for variant types (light C functions) and collectable types Roberto Ierusalimschy 2011-04-07 13:11:57 -03:00
  • 1ffdd0bc7a detail (should use macro 'ttisdeadkey') Roberto Ierusalimschy 2011-04-05 15:32:28 -03:00
  • 5286650894 new macro 'ttisequal' Roberto Ierusalimschy 2011-04-05 15:32:06 -03:00
  • 0fb1644c60 2nd operand for unary tag methods does not need to be 'nil' Roberto Ierusalimschy 2011-04-05 11:26:23 -03:00
  • 119d5e46d5 lua_arith gets no fake operand for unary minus Roberto Ierusalimschy 2011-04-05 11:26:23 -03:00
  • 83abbac946 all names used internally by macros end with '_' Roberto Ierusalimschy 2011-04-05 11:24:07 -03:00
  • a25416a8d5 use of 'luaL_tolstring' for option '%s' in 'string.format' Roberto Ierusalimschy 2011-03-18 16:02:33 -03:00
  • 682cce3813 macro 'mark' renamed 'EOFMARK' ('mark' is too easy to confict, e.g. in alllua.c) Roberto Ierusalimschy 2011-03-14 12:39:42 -03:00
  • d806710ab5 returns for file-related functions and process-related functions unified in 'auxlib' Roberto Ierusalimschy 2011-03-03 13:34:46 -03:00
  • e049abb69a loaders receive an extra argument returned by the searcher (typically the file name) Roberto Ierusalimschy 2011-03-01 14:01:53 -03:00
  • 98816d0ce5 small problems with 'luaone.c' Roberto Ierusalimschy 2011-02-28 14:32:10 -03:00
  • 7482e8f914 no need of lookahead in Zio Roberto Ierusalimschy 2011-02-23 10:13:10 -03:00
  • 03b769053a correct interpretation of return value from pclose Roberto Ierusalimschy 2011-02-21 16:12:54 -03:00
  • 3c710f056b small bug: may call reader function again after it returned end of input Roberto Ierusalimschy 2011-02-17 15:34:16 -02:00
  • c0a865fa54 error for repeated label + jumps allowed to labels followed by 'no-op' statements Roberto Ierusalimschy 2011-02-14 14:36:34 -02:00
  • 0009ac1f3a 'break' does not need to be last statement in a block + 'explist1' -> 'explist' + moving a few functions around Roberto Ierusalimschy 2011-02-14 12:59:28 -02:00
  • 7b968bb514 p-close returns "correct" status plus type of termination Roberto Ierusalimschy 2011-02-10 13:35:50 -02:00
  • bf8b08295a 'break' coded as 'goto' + small bug when closing multiple gotos to the same label Roberto Ierusalimschy 2011-02-10 12:50:41 -02:00
  • 3f5b56c48b simpler code for repeat-until Roberto Ierusalimschy 2011-02-09 15:03:18 -02:00
  • e7192dfdbb corrected 'follow' for checking whether label is last statement in a block Roberto Ierusalimschy 2011-02-09 14:51:28 -02:00
  • 0539f48661 small changes in goto-related error messages Roberto Ierusalimschy 2011-02-09 12:45:19 -02:00
  • e7a9c45a48 trying to avoid assumption that sizeof(char)==1 Roberto Ierusalimschy 2011-02-07 17:15:24 -02:00
  • fd6c1f4898 ensures that all local variables are declared inside some block, opening a new block at 'open_func' Roberto Ierusalimschy 2011-02-07 17:00:30 -02:00
  • f079749287 some reorganization of dynamic data structures used by the parser Roberto Ierusalimschy 2011-02-07 15:14:50 -02:00
  • f8d677f94c no more 'OP_CLOSE' instructions (use jumps to close upvalues) Roberto Ierusalimschy 2011-02-07 10:28:27 -02:00
  • 094a7d0290 detail in 'print_usage' Roberto Ierusalimschy 2011-02-07 10:27:13 -02:00
  • 7cc0e63d8a first implementation of 'goto' Roberto Ierusalimschy 2011-02-04 15:34:43 -02:00
  • a4a8914c20 new reserved word 'goto' Roberto Ierusalimschy 2011-02-02 12:55:17 -02:00
  • 06c7efb4a9 avoid extra increment to 'savedpc' when jumping Roberto Ierusalimschy 2011-02-01 16:32:55 -02:00
  • dd547c55c8 new scheme to close upvalues in 'break'; jump instructions may do the close, avoiding the need for a OP_CLOSE instruction Roberto Ierusalimschy 2011-02-01 16:03:10 -02:00
  • f6bd8b1147 better control for GC running or stopped Roberto Ierusalimschy 2011-02-01 14:52:38 -02:00
  • a7faa557fa bug: problem with optimizations of short-circuit logic Roberto Ierusalimschy 2011-01-31 12:52:32 -02:00
  • 026a7e92be bug in some short-circuit optimizations Roberto Ierusalimschy 2011-01-31 12:28:41 -02:00
  • c4ea0c3b29 detail (cleaning trailing spaces) Roberto Ierusalimschy 2011-01-26 14:30:02 -02:00
  • 7106c491dd 'sep' argument to 'string.rep' + 'string.rep' preallocates entire buffer before creating resulting string Roberto Ierusalimschy 2011-01-12 18:36:01 -02:00
  • a10d495b18 'luaL_findtable' returns boolean about whether it created a new table (to easy initializing table) Roberto Ierusalimschy 2011-01-10 13:51:42 -02:00
  • c2e3cc4c89 using 'luaL_findtable' to manage hook table Roberto Ierusalimschy 2011-01-10 13:51:19 -02:00
  • 67feed49f1 optional argument 'sep' to 'searchpath' Roberto Ierusalimschy 2011-01-07 16:54:49 -02:00
  • b63b0928cf prototype for 'luaO_ceillog2' was different from definition Roberto Ierusalimschy 2011-01-07 13:46:27 -02:00
  • 511679313f new function 'rawlen' Roberto Ierusalimschy 2011-01-07 10:41:48 -02:00
  • 868ff40339 full collection does not restart collector + avoid changing GC state if an error happens in a step Roberto Ierusalimschy 2010-12-29 16:00:23 -02:00
  • aa6faa6331 own implementation of 'tunumber', so that it works correctly with numbers outside the 'int' range Roberto Ierusalimschy 2010-12-27 16:00:38 -02:00
  • 0b3f4e254e more efficient hash for numbers in IEEE754 machines Roberto Ierusalimschy 2010-12-23 13:38:28 -02:00
  • 551b076f1c change in the relationship between totalbytes and GCdebt - luaM_realloc_ is too critical to update two counters Roberto Ierusalimschy 2010-12-20 17:40:07 -02:00
  • 737f119187 better control for GC running or stopped Roberto Ierusalimschy 2010-12-20 16:17:46 -02:00
  • 8980c630bf error when indexing strings with invalid keys Roberto Ierusalimschy 2010-12-20 15:25:36 -02:00
  • 8d579c5bc5 'debug.setmetatable' returns object (like 'setmetatable') Roberto Ierusalimschy 2010-12-20 15:24:15 -02:00
  • d51743b0c7 removed 'newproxy' Roberto Ierusalimschy 2010-12-17 13:14:58 -02:00
  • 1a92c2b354 allows number of bits used by the library to be changed from outside Roberto Ierusalimschy 2010-12-17 11:26:38 -02:00
  • fe0d54d37e table library respects '#' metamethods Roberto Ierusalimschy 2010-12-17 10:15:34 -02:00
  • c9af0768fc GC does not mark dead registers inside activation record Roberto Ierusalimschy 2010-12-17 10:05:37 -02:00
  • 7e0caa7d61 new closures are always created on "next" register (so that GC knows stack limit) Roberto Ierusalimschy 2010-12-17 10:03:41 -02:00
  • a40768e5ea new macro 'luaC_condGC' to allow extra code to be run in case of GC steps Roberto Ierusalimschy 2010-12-17 10:02:29 -02:00
  • 4a83fe569c comment Roberto Ierusalimschy 2010-12-15 17:13:29 -02:00
  • b83b6ba015 'loadin' -> 'load' Roberto Ierusalimschy 2010-12-13 14:38:00 -02:00