Commit Graph

  • 49b88b1c39 patch for wrong code generation for some particular boolean expressions Roberto Ierusalimschy 2009-06-15 11:12:59 -03:00
  • 3db5f60547 BUG: "(((1 or false) and true) or false)" gives wrong result Roberto Ierusalimschy 2009-06-15 10:52:08 -03:00
  • 2258ec6bc9 'getline' renamed to 'getfuncline' (to avoid problems with POSIX) Roberto Ierusalimschy 2009-06-10 13:57:53 -03:00
  • 2598138ece new function 'luaK_codek' (detail) Roberto Ierusalimschy 2009-06-10 13:52:03 -03:00
  • 4a67e48611 new macro 'condmovestack' instead of 'condhardstacktests' Roberto Ierusalimschy 2009-06-08 16:35:59 -03:00
  • 5cdec7d124 added "\n" at the end of 'package.config' (so that the string is a sequence of complete lines) Roberto Ierusalimschy 2009-06-04 16:34:24 -03:00
  • 9423e22aa3 no more L->base + ci->base only for Lua functions (C functions may use 'func') Roberto Ierusalimschy 2009-06-01 16:09:26 -03:00
  • 57f8414de1 small bug in 'luaV_concat' (L->top was left incorrect in some cases) Roberto Ierusalimschy 2009-05-27 14:11:27 -03:00
  • 139d562861 type of 'luai_ctype_' array changed to unsigned (safer for bitwise operations) Roberto Ierusalimschy 2009-05-27 13:51:15 -03:00
  • eea6d10866 details (use ci->base instead of L->base when possible) Roberto Ierusalimschy 2009-05-22 12:19:54 -03:00
  • 019ebcb85f errors in finalizers are propagated with code LUA_ERRGCMM (ERRor in __gc MetaMethod) Roberto Ierusalimschy 2009-05-21 17:06:11 -03:00
  • 889284ebd0 hexadecimal escape sequences in strings + better error messages for bad decimal escape sequences Roberto Ierusalimschy 2009-05-18 14:28:04 -03:00
  • 6956331093 new macro 'zungetc' Roberto Ierusalimschy 2009-05-18 14:26:25 -03:00
  • 92479f1a8b new property 'lisupper' (needed to compute values for hexa digits) Roberto Ierusalimschy 2009-05-18 14:15:14 -03:00
  • e67dc3a227 'symbexec' merged with 'getobjname' (as only use for symbolic execution now is to find a "good" name for an object) Roberto Ierusalimschy 2009-05-04 15:26:21 -03:00
  • 0cc3add9f8 variable renaming: 'lualibs' -> 'loadedlibs'; 'luareqlibs' -> 'preloadedlibs' Roberto Ierusalimschy 2009-05-01 10:46:35 -03:00
  • 71c2eeff98 comments Roberto Ierusalimschy 2009-05-01 10:37:11 -03:00
  • d7bc346d7a no more code checking Roberto Ierusalimschy 2009-04-30 14:42:21 -03:00
  • 673c456cba resize string hash table only when new size is smaller than current one Roberto Ierusalimschy 2009-04-29 14:09:41 -03:00
  • ea44570883 hash table for strings is rehashed in place Roberto Ierusalimschy 2009-04-29 14:09:41 -03:00
  • e091a254df new way to GC stacks: the entire stack must be correct all the times; the 'dead' part of a stack (after the top) must have only nil's, so that 'top' may go up without cleaning the stack. Roberto Ierusalimschy 2009-04-28 16:04:36 -03:00
  • 58c3aa8b5f malicious zero-length string in binary code may segfault Lua + wrong code generation for some particular boolean expressions Roberto Ierusalimschy 2009-04-27 17:11:11 -03:00
  • c1f78ff3d3 unused arguments removed Roberto Ierusalimschy 2009-04-27 15:58:31 -03:00
  • e5249b9fb5 'exit' changed to 'abort' in case of panic (+ some extra comments) 'abort' seems more in line with panic ("abnormal termination") Roberto Ierusalimschy 2009-04-26 18:55:35 -03:00
  • d3037d97ec several small improvements based on 'ci' being fixed now (including erasing savedpc from lua_State) Roberto Ierusalimschy 2009-04-17 19:00:01 -03:00
  • c6b442bd36 'luaM_freearray' does not need array type as argument Roberto Ierusalimschy 2009-04-17 11:40:13 -03:00
  • 4f88418170 'CallInfo' stack implemented as double-linked list instead of an array Roberto Ierusalimschy 2009-04-17 11:28:06 -03:00
  • 311e9f3ceb 'nresults' is saved in CallInfo from the caller, not the called Roberto Ierusalimschy 2009-04-15 13:53:39 -03:00
  • 8775f25830 new function 'T.makeCfunc' (for later use) Roberto Ierusalimschy 2009-04-14 16:10:17 -03:00
  • 70a63fa5ad first implementation of yieldable 'pcall' Roberto Ierusalimschy 2009-04-08 15:04:33 -03:00
  • fffbaede75 detail Roberto Ierusalimschy 2009-04-03 12:58:03 -03:00
  • ae9ad6c694 added comment explaining why the 'feof' test when loading a file Roberto Ierusalimschy 2009-04-02 16:54:06 -03:00
  • 83d2dbb15d Lua will abort anyway, so 'panic' does not need to. Roberto Ierusalimschy 2009-03-31 14:25:08 -03:00
  • 4e43741943 in 'lua_call', avoid preparing a continuation when thread cannot yield. Roberto Ierusalimschy 2009-03-30 15:39:20 -03:00
  • a274596ecc avoid making 'lastfree' an invalid pointer Roberto Ierusalimschy 2009-03-30 15:38:24 -03:00
  • 7e9bc41fe7 'loadlib(lib, "*")' loads 'lib' with global names exported to all Roberto Ierusalimschy 2009-03-26 19:25:05 -03:00
  • b1e1c15ced small bug: EOZ is a valid character to be tested Roberto Ierusalimschy 2009-03-26 15:53:52 -03:00
  • 3dbf305408 no more support for old-style varargs Roberto Ierusalimschy 2009-03-26 09:57:01 -03:00
  • 6d0ae11c57 'context' added to suspendable calls Roberto Ierusalimschy 2009-03-23 11:26:12 -03:00
  • 3ca739b418 'math.random' uses lua_Number to manage its arguments (there is no reason to lose range). Roberto Ierusalimschy 2009-03-17 14:55:39 -03:00
  • 9e613b8583 missing argument to 'assert' raises "assertion failed" error Roberto Ierusalimschy 2009-03-16 13:30:50 -03:00
  • 9428ec42d0 new optional argument to 'load', to control allowed modes (binary or textual chunks) Roberto Ierusalimschy 2009-03-13 12:50:03 -03:00
  • 6ffcf21367 ctype 'lalpha' includes '_' (as '_' behaves as a letter from the point of view of Lua) Roberto Ierusalimschy 2009-03-11 10:27:32 -03:00
  • 6427c61e7c added macro 'lisxdigit' (just in case :) Roberto Ierusalimschy 2009-03-10 14:42:33 -03:00
  • ba484b9eb1 yielding across lua_call (first version) Roberto Ierusalimschy 2009-03-10 14:14:37 -03:00
  • f9d015523e better notes about some opcodes (comments only) Roberto Ierusalimschy 2009-03-09 12:27:56 -03:00
  • 1817dfc301 initial separation, in CallInfo, of what is relevant only to Lua functions or only to C functions Roberto Ierusalimschy 2009-03-04 10:32:29 -03:00
  • 7837e34e56 new states have a reasonable panic function + testC may run code on different threads + rename of some testC operations ('rawcall'->'call', 'call'->'pcall') Roberto Ierusalimschy 2009-03-03 15:52:36 -03:00
  • 910310d3ba if thread has no error handling, try main thread handler before panicking Roberto Ierusalimschy 2009-03-03 15:51:24 -03:00
  • facfcd497f detail Roberto Ierusalimschy 2009-03-02 13:34:23 -03:00
  • b403317325 error functions search global space for a name for a function when no other name is available Roberto Ierusalimschy 2009-02-27 15:18:19 -03:00
  • 9bf05e7364 code section 'Traceback' moved to the beginning of the file Roberto Ierusalimschy 2009-02-27 15:17:13 -03:00
  • e39e758a73 closing a "popen" file returns the process exit status Roberto Ierusalimschy 2009-02-20 10:50:27 -03:00
  • 5438d77221 global array of ctypes renamed to 'luai_ctype_' (extern names must use a "lua" prefix...) Roberto Ierusalimschy 2009-02-20 10:11:15 -03:00
  • 6905ae900b Lua now uses "homemade" lctype (instead of ctype.h from ANSI C) Roberto Ierusalimschy 2009-02-19 14:33:51 -03:00
  • ada82930fd "homemade" version of ctype.h Roberto Ierusalimschy 2009-02-19 14:18:25 -03:00
  • f36e319658 'fputs' changed to 'luai_writestring' + use of 'lua_checkversion' Roberto Ierusalimschy 2009-02-19 14:15:35 -03:00
  • 0cea28a785 better error messages for 'lua_checkversion' Roberto Ierusalimschy 2009-02-19 14:15:13 -03:00
  • d2ebdc045b new macro 'lua_checkversion' to check whether core and application are compatible Roberto Ierusalimschy 2009-02-18 14:20:56 -03:00
  • 81ede6bfce using light userdata to represent "remote" states Roberto Ierusalimschy 2009-02-18 11:52:51 -03:00
  • 2b579b4b83 panic mode does not reset stack (so that panic function can gather debug information from it) Roberto Ierusalimschy 2009-02-18 11:52:03 -03:00
  • a1d0e1a11a 'log10' is deprecated now Roberto Ierusalimschy 2009-02-18 10:17:10 -03:00
  • 8975739839 better precision for log(x, 10) Roberto Ierusalimschy 2009-02-18 10:06:05 -03:00
  • d07abcc6c7 finalizers always called protected Roberto Ierusalimschy 2009-02-17 16:47:58 -03:00
  • 189378142a buffer creation ensures buffer space plus MINSTACK in the stack Roberto Ierusalimschy 2009-02-17 11:31:16 -03:00
  • 82749b765e 'db_errorfb' changed to 'db_traceback' for consistency Roberto Ierusalimschy 2009-02-17 10:21:28 -03:00
  • 2b590aea40 no more '__len' metamethod for strings Roberto Ierusalimschy 2009-02-16 17:09:28 -03:00
  • 547e47649f 'luaL_typeerror' spelled right Roberto Ierusalimschy 2009-02-13 17:39:34 -02:00
  • 41dd32e18e comment (should not use 'go trhough' when simply using multiple labels) Roberto Ierusalimschy 2009-02-11 16:25:20 -02:00
  • 5d3cc5def8 'writestring' changed into a configurable macro Roberto Ierusalimschy 2009-02-07 10:23:15 -02:00
  • 53db607963 avoid using 'fputs' in 'print' to avoid problems with embedded zeros Roberto Ierusalimschy 2009-02-06 16:38:47 -02:00
  • cbf0c7a103 check for invalid use of '%' in replacement string in 'string.gsub' Roberto Ierusalimschy 2009-02-03 17:39:19 -02:00
  • 4c399c5dfb detail (MAXSRC changed to LUA_IDSIZE) Roberto Ierusalimschy 2008-12-26 09:55:57 -02:00
  • b472098493 concat TM can yield Roberto Ierusalimschy 2008-11-06 10:43:51 -02:00
  • 84b3daebbd generic for coded as two dedicated instructions to simplify resumption Roberto Ierusalimschy 2008-10-30 13:39:30 -02:00
  • f6978173e0 yields accross metamethods and for iterators (except for __concat) Roberto Ierusalimschy 2008-10-28 14:53:16 -02:00
  • e02483dbc0 whole build depends on 'makefile' itself + better format for warning options Roberto Ierusalimschy 2008-10-28 14:52:00 -02:00
  • 9e58e0df8f some cleaning Roberto Ierusalimschy 2008-10-28 10:55:00 -02:00
  • 690efef3de detail (added 'UNUSED' to unused argument) Roberto Ierusalimschy 2008-10-28 10:54:25 -02:00
  • b9e92c8b0d updating header dependencies Roberto Ierusalimschy 2008-10-03 13:40:56 -03:00
  • 4376c9bc5f more specific test to avoid calling luaF_close when function returns Roberto Ierusalimschy 2008-09-09 10:53:02 -03:00
  • f94cd2201c better control of call status through CallInfo Roberto Ierusalimschy 2008-08-26 10:27:42 -03:00
  • fdbb243ff9 first steps towards yielding through longjump Roberto Ierusalimschy 2008-08-13 14:02:42 -03:00
  • c1565c16ed small bug: lua_resume returning LUA_YIELD is not an error Roberto Ierusalimschy 2008-08-13 14:02:12 -03:00
  • 394646891c new field 'status' in CallInfo structure Roberto Ierusalimschy 2008-08-13 14:01:33 -03:00
  • d69aa51088 added missing parentheses around function names Roberto Ierusalimschy 2008-08-13 11:08:49 -03:00
  • afe849c9b4 change in error message Roberto Ierusalimschy 2008-08-06 10:38:32 -03:00
  • ccd678ea3e 'module' may change the environment of a C function + internal macro 'svalue' is wrong Roberto Ierusalimschy 2008-08-06 10:32:45 -03:00
  • bb92ef23cb bug: string at the end of TString must consider the entire TString entity, not only its 'tsv' part Roberto Ierusalimschy 2008-08-05 16:26:23 -03:00
  • bb48f456d9 bug: 'module' now checks that is caller is a Lua function Roberto Ierusalimschy 2008-08-05 16:25:42 -03:00
  • df802dc74b larger alignment requirement helps to uncover some kinds of bugs Roberto Ierusalimschy 2008-08-05 16:24:46 -03:00
  • e23da9edee GC step does not unblock collector (when it is blocked by "stop") Roberto Ierusalimschy 2008-08-01 14:01:16 -03:00
  • 4db2cddeee LUA_COMPAT -> LUA_COMPAT_API (more specific) Roberto Ierusalimschy 2008-07-18 16:58:10 -03:00
  • f9dec5fc84 do not use compatibility macros in Lua Roberto Ierusalimschy 2008-07-11 14:51:01 -03:00
  • 6b8725b0ee new macro LUA_COMPAT to control some compatibility macros Roberto Ierusalimschy 2008-07-11 14:50:31 -03:00
  • 6955666290 'string.byte' gets confused with some out-of-range negative indices + user-requested GC step may loop forever Roberto Ierusalimschy 2008-07-11 14:27:41 -03:00
  • 5298392c5a bug: GC step could loop forever under very particular circumstances Roberto Ierusalimschy 2008-07-04 15:27:11 -03:00
  • 1ceec74370 useless test removed (pointed by lint) Roberto Ierusalimschy 2008-07-03 11:25:05 -03:00
  • 2a84c29bc3 comment about exported function not used by Lua Roberto Ierusalimschy 2008-07-03 11:24:36 -03:00
  • 4d8a1103d3 useless #define removed (pointed by lint) Roberto Ierusalimschy 2008-07-03 11:24:11 -03:00