Commit Graph

  • e0e406ead3 extra argument to instruction 'checkstack' (in 'testC') Roberto Ierusalimschy 2011-11-09 17:08:07 -02:00
  • 30cea671a7 configurable 'directory separator' in 'package.searchpath' Roberto Ierusalimschy 2011-11-09 13:18:04 -02:00
  • a716ae1f50 avoids including 'stdio.h' everywhere (because of definitions for luai_writestring/luai_writeline) Roberto Ierusalimschy 2011-11-09 12:47:14 -02:00
  • ea382b0be1 small bug: error message in 'io.lines' is not the error number Roberto Ierusalimschy 2011-11-09 12:10:43 -02:00
  • 6d8d282e0f avoid calling "extra value" as if it were a function option Roberto Ierusalimschy 2011-11-06 11:59:12 -02:00
  • 00c8a17a2d by default, do not use Windows' goodies in Windows CE build Roberto Ierusalimschy 2011-11-05 13:29:05 -02:00
  • 166ce15512 cannot apply macro 'getstr' over NULL Roberto Ierusalimschy 2011-10-31 15:48:51 -02:00
  • 87cf2bf711 extra comments about what fields are optional debug information Roberto Ierusalimschy 2011-10-31 15:48:22 -02:00
  • fd8a849621 detail (avoid applying macro 'getstr' with a function-call argument) Roberto Ierusalimschy 2011-10-31 15:46:04 -02:00
  • 5a568a3b01 detail (comment) Roberto Ierusalimschy 2011-10-25 10:01:20 -02:00
  • 475e6c5352 'lua_setglobal/lua_getglobal' implemented as functions to avoid problems with stack indices (e.g., lua_getglobal(L, lua_tostring(L, -1)) ) Roberto Ierusalimschy 2011-10-24 14:53:05 -02:00
  • af00a0772c new functions lua_rawsetp/lua_rawgetp Roberto Ierusalimschy 2011-10-24 12:54:05 -02:00
  • 6819c2a98a silly bug in 5.2 beta: assignment conflict code did not test to check whether variable was a table element Roberto Ierusalimschy 2011-10-24 12:51:44 -02:00
  • 1dd8af67b6 BUG: parser may collect a prototype while building it. Roberto Ierusalimschy 2011-10-21 17:34:23 -02:00
  • 1350a2bcb5 more macros to try to make NaN trick work with other sizes of IEEE float numbers. (It has not been tested with such different sizes...) Roberto Ierusalimschy 2011-10-17 12:46:13 -02:00
  • 217e67cb22 new type 'l_noret' for function that do not return Roberto Ierusalimschy 2011-10-07 17:45:19 -03:00
  • 9bbfe9f3fd avoid the word 'TRICKLE' in macro name (as it has nothing to do with its meaning) Roberto Ierusalimschy 2011-10-07 16:53:05 -03:00
  • 788a0ecd27 'luaC_separateudata' renamed to 'separatetobefnz' and called only from 'lgc.c' Roberto Ierusalimschy 2011-10-03 14:54:25 -03:00
  • 6d86b937e4 'luaC_separateudata' called from 'luaC_freeallobjects' + removed extra 'luaF_close' (already being called by 'close_state') Roberto Ierusalimschy 2011-10-03 14:54:25 -03:00
  • bc90cf4b83 retraverse all gray lists together to avoid traversing some weak tables twice (as they may change lists when traversed) Roberto Ierusalimschy 2011-10-03 13:22:05 -03:00
  • d79190e27f missing 'LUA_CORE' definition Roberto Ierusalimschy 2011-10-03 13:19:23 -03:00
  • 9caf5b4f79 lint (unused definition) Roberto Ierusalimschy 2011-09-30 09:46:06 -03:00
  • 50cddefeeb lint (wrong identation) Roberto Ierusalimschy 2011-09-30 09:45:45 -03:00
  • e24f1ee9ff lint (unreachable code) Roberto Ierusalimschy 2011-09-30 09:44:45 -03:00
  • f3b0eb3ecf lint (unused macros) Roberto Ierusalimschy 2011-09-30 09:44:19 -03:00
  • 162ce8256e lint (unused struct field) Roberto Ierusalimschy 2011-09-30 09:43:54 -03:00
  • ad90447eb6 detail: new macros for non-valid values Roberto Ierusalimschy 2011-09-26 17:17:27 -03:00
  • 87912786af dead objects are not collectable. Roberto Ierusalimschy 2011-09-24 18:12:01 -03:00
  • 5645a84368 detail about 'trick' function (nil turn it off) Roberto Ierusalimschy 2011-09-24 18:11:29 -03:00
  • 95ed6c1127 better(?) scheme for cleaning weak tables; all ressurected objects are removed from weak values before finalization Roberto Ierusalimschy 2011-09-24 18:00:40 -03:00
  • 12ab78aca6 detail in extra trace code: total bytes is given by 'gettotalbytes', not by 'totalbytes' counter. Roberto Ierusalimschy 2011-09-20 16:25:23 -03:00
  • 45c346645c avoid clearing ephemeron tables that have nothing to be cleaned (no white elements) Roberto Ierusalimschy 2011-09-19 14:03:38 -03:00
  • 68ce878292 cannot compute 'mainposition' before checking whether key is nil Roberto Ierusalimschy 2011-09-15 14:09:02 -03:00
  • 500336efd0 small bug in if-goto optimization: block must be closed ('leaveblock') *before* the jump out ('escapelist') Roberto Ierusalimschy 2011-09-14 14:40:26 -03:00
  • 5ea8f108e1 using 'long' versions of 'fseek'/'ftell' when available Roberto Ierusalimschy 2011-09-13 18:09:04 -03:00
  • 2275030b86 details (and missing 'break's) Roberto Ierusalimschy 2011-09-13 15:05:59 -03:00
  • 05de314701 upvalue names always can be NULL (if debug info was removed), so always check for that case Roberto Ierusalimschy 2011-09-13 14:40:20 -03:00
  • d281d23f8d detail (make 'lua_assert' a valid expression even when turned off) Roberto Ierusalimschy 2011-09-13 14:39:23 -03:00
  • ec431ce5db comment Roberto Ierusalimschy 2011-09-12 17:33:03 -03:00
  • c8f47c2934 optimization for |if cond then goto| Roberto Ierusalimschy 2011-08-30 13:38:58 -03:00
  • ca458f1f52 'luaK_goiffalse' exported Roberto Ierusalimschy 2011-08-30 13:26:41 -03:00
  • 121dc8af66 cleaner code for 'if' construct Roberto Ierusalimschy 2011-08-25 10:45:24 -03:00
  • a8675966ec detail: centralize all tests for Windows on variable 'LUA_WIN' Roberto Ierusalimschy 2011-08-23 14:25:42 -03:00
  • 3dc5475e23 'nCcalls' should be local to each thread, as each thread may have its own C stack (with LuaThreads or something similar) Roberto Ierusalimschy 2011-08-23 14:24:34 -03:00
  • 8a008a2057 bug: __newindex metamethod may not work if metatable is its own metatable. Roberto Ierusalimschy 2011-08-17 17:38:51 -03:00
  • 89b59eee73 bug: __newindex metamethod may not work if metatable is its own metatable + luaV_settable does not create entry when there is a metamethod (and therefore entry is useless) Roberto Ierusalimschy 2011-08-17 17:26:47 -03:00
  • 166dd0261a new option '-E' to avoid environment variables Roberto Ierusalimschy 2011-08-17 17:19:52 -03:00
  • 51471ba748 comments about use of 'luaH_set' Roberto Ierusalimschy 2011-08-15 16:41:58 -03:00
  • 0b65cb74cd new implementation for 'getobjname': first search for relevant instruction (new function 'findsetreg') and then try to build a meaningful name Roberto Ierusalimschy 2011-08-12 17:01:44 -03:00
  • ea46b750dc comment Roberto Ierusalimschy 2011-08-11 14:06:12 -03:00
  • 92afcf2823 no more 'luaH_setstr (used only once) + 'luaH_setint' receives value to be set. Roberto Ierusalimschy 2011-08-09 17:58:29 -03:00
  • b5bf7d9ef4 'string.format' checks whether values for integer formats are actually integers Roberto Ierusalimschy 2011-08-09 17:58:29 -03:00
  • 6a5d89b39f detail (using array instead of several variables to keep track of enabled command-line options) Roberto Ierusalimschy 2011-08-04 15:16:16 -03:00
  • ae14adc272 better error message when trying to open files Roberto Ierusalimschy 2011-08-02 15:00:01 -03:00
  • ff98f17d27 detail: factoring in common code for opening files and checking for errors Roberto Ierusalimschy 2011-07-28 15:41:15 -03:00
  • 59bcd137ae reducing even more use of C stack by the parser: struct 'FuncState' does not need field 'L' + number of labels/gotos in a chunk may be limited to SHRT_MAX. (Also removed some non-needed 'unsigned's.) Roberto Ierusalimschy 2011-07-27 15:09:01 -03:00
  • 5ab6d36d99 no more field 'L' in 'FuncState' Roberto Ierusalimschy 2011-07-27 15:07:37 -03:00
  • 43c873895f tonumber: base 10 is not special, no base is Roberto Ierusalimschy 2011-07-27 09:14:06 -03:00
  • 03a078493e refuse things like 'inf' or 'Nan' as numerals Roberto Ierusalimschy 2011-07-27 09:13:08 -03:00
  • bae57ea088 'M_IX86' -> '_M_IX86' Roberto Ierusalimschy 2011-07-25 14:20:47 -03:00
  • 2557107e91 removed unused variable 'found' (in 'findfield') + removed legacy test for 'what' being "tail" Roberto Ierusalimschy 2011-07-25 14:18:49 -03:00
  • 32a12e2f3f detail (cleaned whitespaces at end of lines) Roberto Ierusalimschy 2011-07-15 09:50:29 -03:00
  • 559bb554c9 no more 'zungetc' (better not to read next char) Roberto Ierusalimschy 2011-07-15 09:48:03 -03:00
  • fd5e810e08 macro 'char2int' replaced by 'cast_uchar' (used by other files) Roberto Ierusalimschy 2011-07-15 09:35:32 -03:00
  • 067f761739 better code for numerical escapes Roberto Ierusalimschy 2011-07-15 09:30:41 -03:00
  • 7978a8d8b2 added '_M_IX86' in NaN trick Roberto Ierusalimschy 2011-07-08 17:07:11 -03:00
  • 32e09c2a16 detail Roberto Ierusalimschy 2011-07-08 17:01:38 -03:00
  • df19931ddc error on invalid escape sequences Roberto Ierusalimschy 2011-07-08 16:17:30 -03:00
  • b5084fdafe detail (comment) Roberto Ierusalimschy 2011-07-06 13:45:14 -03:00
  • d8200d5f3c '\*' -> '\z' + '\?' is not an official escape sequence Roberto Ierusalimschy 2011-07-05 16:13:45 -03:00
  • 79cbc3468c removed and deprecated functions really removed from the code base Roberto Ierusalimschy 2011-07-05 09:49:35 -03:00
  • 9e89a55a4f NILCONSTANT also depends no endianess (with NaN trick) Roberto Ierusalimschy 2011-07-04 17:29:02 -03:00
  • b707e81c3d comments about some compiler options that should be tested once in a while Roberto Ierusalimschy 2011-07-04 13:10:15 -03:00
  • ee37ee50d6 'table.pack' also returns 'n' + 'deprecated' changed to 'removed' Roberto Ierusalimschy 2011-07-02 13:01:44 -03:00
  • ad1a54b5c0 reordering of some defines (more logical grouping) Roberto Ierusalimschy 2011-07-02 13:00:15 -03:00
  • 88c29c0cd5 compilation warning about integer size x pointer size Roberto Ierusalimschy 2011-07-02 12:59:17 -03:00
  • d93df22bf6 small simplifications (and assert was wrongly written) Roberto Ierusalimschy 2011-07-02 12:58:14 -03:00
  • 5017cc6ba2 simpler 'luai_apicheck' (and avoids compilation error...) Roberto Ierusalimschy 2011-07-02 12:57:25 -03:00
  • 2f125ebc33 'deprecated' x 'removed' (they are not the same thing) Roberto Ierusalimschy 2011-07-02 12:56:43 -03:00
  • 49a01c0991 'package.loaders' -> 'package.searchers' Roberto Ierusalimschy 2011-06-28 14:14:12 -03:00
  • 17526ed2fe no more errors on accesses to 'string' and strings Roberto Ierusalimschy 2011-06-28 14:13:52 -03:00
  • f180822fa6 back to internal table for 'ctype', no more locale manipulation Roberto Ierusalimschy 2011-06-28 12:42:04 -03:00
  • 594220c624 use standard "underscore + uppercases" for reserved keys in the registry Roberto Ierusalimschy 2011-06-27 16:42:31 -03:00
  • 3dd68624dc comments Roberto Ierusalimschy 2011-06-27 15:27:18 -03:00
  • f9eea453b7 avoid "magic constant" 32 (the difference from 'A' to 'a') Roberto Ierusalimschy 2011-06-27 15:22:46 -03:00
  • 374773748b back to "one-label-per-block" Roberto Ierusalimschy 2011-06-27 15:18:59 -03:00
  • 29644366fc useless assignments removed (macros already do the assignment) Roberto Ierusalimschy 2011-06-24 11:36:21 -03:00
  • 6eadedbfa1 resort to standard C ctype for non-ASCII systems + 'ltoupper' replaced by 'ltolower' Roberto Ierusalimschy 2011-06-24 09:25:33 -03:00
  • 1978094b3a resort to standard C ctype for non-ASCII systems Roberto Ierusalimschy 2011-06-24 09:25:33 -03:00
  • 5acc5b0c1e using 'tolower' instead of 'toupper' (slightly simpler to implement) Roberto Ierusalimschy 2011-06-24 09:25:02 -03:00
  • 59547c6cda macro 'ltoupper' instead of 'lisupper' (more usefull for Lua) Roberto Ierusalimschy 2011-06-23 13:01:06 -03:00
  • 3d3355b4f3 label syntax changed to '::label::' Roberto Ierusalimschy 2011-06-23 11:54:48 -03:00
  • 801f43f09a change in the representation of file handles Roberto Ierusalimschy 2011-06-21 10:43:48 -03:00
  • 719c01359f label syntax changed to '::label::' Roberto Ierusalimschy 2011-06-20 13:52:48 -03:00
  • 43f13729a2 comment Roberto Ierusalimschy 2011-06-20 13:50:59 -03:00
  • 136f8e148d added cast to void to calls to 'setlocale' (to easy redefining it as a constant) Roberto Ierusalimschy 2011-06-20 13:36:03 -03:00
  • f90a130b07 typo in message Roberto Ierusalimschy 2011-06-20 13:35:23 -03:00
  • cb4950a6d8 parser must work with C locale, but external locale must be preserved Roberto Ierusalimschy 2011-06-18 14:08:58 -03:00
  • fdede85419 label names must be unique inside a function Roberto Ierusalimschy 2011-06-16 13:36:39 -03:00
  • beab626061 correct length for LUA_COPYRIGHT (without trailing '\0') Roberto Ierusalimschy 2011-06-16 11:30:58 -03:00