Commit Graph

  • 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
  • 202de59254 useless #include removed (pointed by lint) Roberto Ierusalimschy 2008-07-03 11:23:35 -03:00
  • f858a155c2 identation error (pointed by lint) Roberto Ierusalimschy 2008-07-03 11:21:41 -03:00
  • 9e7de9473c message from -v option goes to stdout, as it is not an error message Roberto Ierusalimschy 2008-06-26 16:47:51 -03:00
  • 0c8f5fc2fd simplification in the handling of finalizers: no more 'tmudata' list + no more GCSsweeptmu collector's state Roberto Ierusalimschy 2008-06-26 16:42:45 -03:00
  • 1527d8f00d GC called after errors now are called after showing error message (to avoid problems when there are other errors during GC itself) Roberto Ierusalimschy 2008-06-26 16:40:12 -03:00
  • 8efaf8af81 added a comment about warnings for __attribute__(visibility) in some elf targets Roberto Ierusalimschy 2008-06-25 12:27:12 -03:00
  • c3525610fe bug: when closing the state, 'luaC_separateudata' might mark userdata in the wrong phase of collection, therefore avoiding their traversal Roberto Ierusalimschy 2008-06-23 19:07:44 -03:00
  • 7ba62e2985 code reorganization (only changed comments and order of functions) Roberto Ierusalimschy 2008-06-23 13:51:28 -03:00
  • 8fd28611d5 outdated comment Roberto Ierusalimschy 2008-06-23 13:51:08 -03:00
  • 93869acb2c "test trick" seems more useful with pointers instead of integers Roberto Ierusalimschy 2008-06-23 13:50:34 -03:00
  • 480a1da34a when error is 'bad self' original message probably makes no sense, so it is better not to show it. Roberto Ierusalimschy 2008-06-13 15:45:35 -03:00
  • 59e2973335 removed static variable lua_state (not used) Roberto Ierusalimschy 2008-06-13 14:07:10 -03:00
  • 5d09be4832 by default, 'os.exit' closes current state Roberto Ierusalimschy 2008-06-13 13:59:00 -03:00
  • 860e285f31 'luaL_gsub' moved into 'testC' (all auxlib should be tested through 'testC') Roberto Ierusalimschy 2008-06-13 11:15:59 -03:00
  • eb8ac6e2a0 'luaL_testudata' does not leave garbage on the stack in case of failure Roberto Ierusalimschy 2008-06-12 11:37:27 -03:00
  • b1203e036d 'posrelat' avoids problems with -(-2^31) Roberto Ierusalimschy 2008-06-12 11:21:18 -03:00
  • 92a0d4c67f extra options in 'testC' for newmetatable and testudata Roberto Ierusalimschy 2008-06-12 11:20:49 -03:00
  • 5fa55df2ca updated years in some comments/strings Roberto Ierusalimschy 2008-05-09 13:51:44 -03:00
  • a3af42de8e patch for "blow stack" bug Roberto Ierusalimschy 2008-05-08 13:55:08 -03:00
  • 198be23f36 added structure for local-variable information to allow extra checkings if needed Roberto Ierusalimschy 2008-05-08 12:44:51 -03:00
  • 24359ae294 'string.find' cannot find things after subject's end Roberto Ierusalimschy 2008-04-14 12:54:59 -03:00
  • 6c84722afa make default GC behavior a little more agressive (to avoid falling behind memory consumption) Roberto Ierusalimschy 2008-04-07 15:58:42 -03:00
  • facb0519a0 two bugs: invalid boolean values in constant table + too deep recursion when reading nested functions Roberto Ierusalimschy 2008-04-07 15:44:23 -03:00
  • ffdca3522e 'table.sort' detects invalid order function before calling it for nil elements Roberto Ierusalimschy 2008-04-07 15:43:00 -03:00
  • 4d7469b610 avoid constant folding for -0 (to avoid it colapsing to 0) Roberto Ierusalimschy 2008-04-07 15:41:47 -03:00
  • 2b84e36b93 patches for some bugs Roberto Ierusalimschy 2008-04-04 22:31:59 -03:00
  • 85bda9eef5 bugs: precheck must use check (instead of assert) and ensures that code size is at least 1 Roberto Ierusalimschy 2008-04-02 16:14:16 -03:00
  • a4d3080fe3 SETLIST extra argument now is an "instruction" (OP_EXTRAARG) Roberto Ierusalimschy 2008-04-02 14:38:54 -03:00
  • 5627d51e05 corrected error message ("too many constants" -> "too many functions") Roberto Ierusalimschy 2008-04-02 14:19:22 -03:00
  • e64b0cada8 several bugs related to precompiled code Roberto Ierusalimschy 2008-04-01 16:17:48 -03:00
  • 7316d61a66 'coroutine.running' should work for the main thread too Roberto Ierusalimschy 2008-02-25 11:33:57 -03:00
  • e2b366c760 userdata with finalizers are kept in a separated list Roberto Ierusalimschy 2008-02-19 15:55:09 -03:00
  • fa19baab7f proxies must be created with a __gc field in their metatables to work properly with new semantics for finalizers Roberto Ierusalimschy 2008-02-19 15:54:09 -03:00
  • 2f8351fe48 turn off optimizations when testing Roberto Ierusalimschy 2008-02-15 15:44:34 -02:00
  • 32d42bdcdc bugs: lua_checkstack may have arithmetic overflow for large 'size' + unpack with maximum indices may crash due to arithmetic overflow Roberto Ierusalimschy 2008-02-14 14:51:57 -02:00
  • 843d53aabb 'table.concat' may get confused with too large limits Roberto Ierusalimschy 2008-02-14 14:03:27 -02:00
  • 5ac3386888 bug: unpack with maximum indices may crash due to arithmetic overflow Roberto Ierusalimschy 2008-02-14 14:03:09 -02:00
  • 6d182faab6 bug: lua_checkstack may have arithmetic overflow for large 'size' Roberto Ierusalimschy 2008-02-14 14:02:58 -02:00
  • f86f4116c8 micro-optimization: avoid one API call in 'read_chars' Roberto Ierusalimschy 2008-02-12 15:05:36 -02:00
  • 7f69f0efb0 remove of useless test in 'read_chars' (if n == 0 then the resulting string cannot be empty). Roberto Ierusalimschy 2008-02-12 14:51:03 -02:00
  • f6cab9666c corrected name of 'Patrick Donnelly' Roberto Ierusalimschy 2008-02-12 14:42:46 -02:00
  • 3deb38814d added assertions checking maximum number of upvalues Roberto Ierusalimschy 2008-02-12 11:34:12 -02:00
  • 3b5b14a085 LUAI_MAXCSTACK must be smaller than -LUA_REGISTRYINDEX + coroutine.resume pushes element without ensuring stack size Roberto Ierusalimschy 2008-02-11 17:18:21 -02:00
  • aec671c126 maximum C stack should reserve some values for pseudo-indices Roberto Ierusalimschy 2008-02-11 17:17:19 -02:00
  • dd92af69db bug: pseudo-indices should be linked to maximum C stack size Roberto Ierusalimschy 2008-02-11 17:16:02 -02:00
  • 015e973899 bug: auxresume should reserve stack space for boolean result Roberto Ierusalimschy 2008-02-11 17:14:52 -02:00
  • 163f58dac5 in 'testC', booleans should be represented by booean values Roberto Ierusalimschy 2008-02-11 17:04:16 -02:00
  • dcee7d2fe0 new instructions 'newtable' and 'checkstack' in 'testC' Roberto Ierusalimschy 2008-02-11 16:04:26 -02:00
  • 5f0a2f6248 more options for 'kinds' of Garbage Collection + more agressive shrinking of stacks and string hash Roberto Ierusalimschy 2008-02-11 13:46:03 -02:00
  • a73930228a more options for 'kinds' of Garbage Collection Roberto Ierusalimschy 2008-02-11 13:45:30 -02:00
  • a76fa25199 'ceillog2' now is exported (other modules may need it) Roberto Ierusalimschy 2008-01-30 16:05:23 -02:00
  • dd3519ab89 comment (LUA_GLOBALSINDEX does not need write barrier in lua_replace) Roberto Ierusalimschy 2008-01-25 11:42:12 -02:00
  • 3a515df086 debug.sethook/gethook may overflow the thread's stack Roberto Ierusalimschy 2008-01-21 12:41:19 -02:00
  • 74897bc52f bug: debug.sethook/gethook may overflow thread's stack Roberto Ierusalimschy 2008-01-21 11:37:08 -02:00
  • e7c989baf1 avoid calling "tail return" hooks if the hook itself turns off the event Roberto Ierusalimschy 2008-01-18 20:36:50 -02:00
  • 7a3c8314ac small bug (see http://lua-users.org/lists/lua-l/2007-08/msg00350.html) Roberto Ierusalimschy 2008-01-18 15:14:47 -02:00
  • 6f8257ec5f it seems useless trying to avoid this warning... Roberto Ierusalimschy 2008-01-18 13:37:10 -02:00
  • 87b0191753 better definition for LUAI_MAXCSTACK Roberto Ierusalimschy 2008-01-17 14:24:38 -02:00
  • 56c17ba4c7 detail Roberto Ierusalimschy 2008-01-17 14:24:30 -02:00
  • daddc57abd luaL_tostring -> luaL_tolstring (more generic) Roberto Ierusalimschy 2008-01-03 15:07:59 -02:00
  • f9cdd09191 larger limit for MAXCSTACK (plus removing of some useless definitions) Roberto Ierusalimschy 2008-01-02 14:36:19 -02:00
  • 47b4858357 detail ('name' of baselib is "_G") Roberto Ierusalimschy 2008-01-02 14:16:28 -02:00
  • b8d23d6e07 option to use Sun compiler (on lhf account) Roberto Ierusalimschy 2007-12-27 10:59:43 -02:00
  • fdecdd0cec stand-alone interpreter shows incorrect error message when the 'message' is a coroutine (already fixed in 5.2) Roberto Ierusalimschy 2007-12-27 10:58:29 -02:00
  • fabdaa37b6 'lua_pushfstring' raises an error if called with invalid format Roberto Ierusalimschy 2007-12-19 15:24:38 -02:00