Commit Graph

  • 961760c9b6 message handler always adds a traceback to messages (even if they are not strings), unless they have a __tostring method. Roberto Ierusalimschy 2014-10-20 16:19:26 -02:00
  • 57559547a3 in 'pack'/'unpack', endianness and alignment treated like options + small changes in names and handling of internal options ('KOption') Roberto Ierusalimschy 2014-10-20 14:44:54 -02:00
  • cfa84e1232 does not use 'long long' when LUA_ANSI is set Roberto Ierusalimschy 2014-10-20 14:32:05 -02:00
  • 0d31efb365 'lua_stringtonum' -> 'lua_stringtonumber' Roberto Ierusalimschy 2014-10-17 16:17:55 -03:00
  • f97c64d7bf macros 'LUA_QL'/'LUA_QL' deprecated Roberto Ierusalimschy 2014-10-17 13:28:21 -03:00
  • ea3155e380 'debug.sizeof' removed Roberto Ierusalimschy 2014-10-17 08:07:26 -03:00
  • c172a4f7c2 'dumpint' and related functions replaced by 'string.pack'/'string.unpack' Roberto Ierusalimschy 2014-10-17 07:55:28 -03:00
  • f8e0d33b25 added "_CRT_SECURE_NO_WARNINGS" for Windows (to avoid warnings about several standard C functions) + small changes in '#include's Roberto Ierusalimschy 2014-10-15 11:53:20 -03:00
  • 745618d941 'charpatt' -> 'charpattern' Roberto Ierusalimschy 2014-10-15 11:31:10 -03:00
  • 89602bf747 'lua_strtonum' -> 'lua_stringtonum' Roberto Ierusalimschy 2014-10-15 11:27:40 -03:00
  • 56d4537879 '$c' in 'lua_pushfstring' prints non-printable characters with their codes Roberto Ierusalimschy 2014-10-10 19:23:04 -03:00
  • 18014ef2fd better handling of systems that do not support 'long long' Roberto Ierusalimschy 2014-10-08 17:32:50 -03:00
  • ffe7401ceb avoid warnings in macro 'luaM_reallocv' + comments Roberto Ierusalimschy 2014-10-08 17:25:51 -03:00
  • 65ec3379b1 added some casts for the cases when lua_Number != double Roberto Ierusalimschy 2014-10-08 16:57:31 -03:00
  • 85fc9ecd5f detail ('G(L)' -> 'g') Roberto Ierusalimschy 2014-10-08 09:20:26 -03:00
  • 2a21f6c894 'lua_Kcontext' -> 'lua_KContext' Roberto Ierusalimschy 2014-10-07 15:29:13 -03:00
  • 3670db99b6 comments Roberto Ierusalimschy 2014-10-06 18:34:34 -03:00
  • e14a02c24f when thread yields, real "func" is in field 'extra', not in 'func' Roberto Ierusalimschy 2014-10-06 14:06:49 -03:00
  • 15f4150518 alpha -> beta Roberto Ierusalimschy 2014-10-04 19:57:36 -03:00
  • c5cae9362c added two casts to avoid warnings in VS Roberto Ierusalimschy 2014-10-04 19:57:10 -03:00
  • 4f4e0e49bb easier way to compile Lua 32 Roberto Ierusalimschy 2014-10-03 09:55:44 -03:00
  • 2f4d429071 details (comments) Roberto Ierusalimschy 2014-10-03 09:54:57 -03:00
  • 27f7bd2e83 detail Roberto Ierusalimschy 2014-10-01 13:05:06 -03:00
  • 798660c9cd deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.) Roberto Ierusalimschy 2014-10-01 08:54:56 -03:00
  • 34b6664dcb better to use 'long' to represent UTF-8 code points Roberto Ierusalimschy 2014-10-01 08:52:33 -03:00
  • d35fff16d5 'ipairs' always stops at first nil element Roberto Ierusalimschy 2014-09-30 10:53:26 -03:00
  • 56699cd603 small change to avoid bug in some versions of the clang compiler Roberto Ierusalimschy 2014-09-26 11:09:21 -03:00
  • 8ede2c353c detail in 'report' + message handler always is called with an argument + 'report' already handles non-string error messages Roberto Ierusalimschy 2014-09-25 11:20:37 -03:00
  • 6384475ec4 'luaL_getmetafield' returns type of metafield (instead of a boolean) Roberto Ierusalimschy 2014-09-22 03:42:15 -03:00
  • 3a15c7ce43 size for array part of a table ('sizearray') changed from 'int' to 'unsigned int', which allows twice as many elements in the array part Roberto Ierusalimschy 2014-09-04 15:15:29 -03:00
  • 0a6b58c3aa weak tables that must be retraversed are kept in 'grayagain' list until atomic phase (instead of going to their special lists) + more comments Roberto Ierusalimschy 2014-09-03 13:54:41 -03:00
  • 979a663d2a detail (error message from 'coroutine.status') Roberto Ierusalimschy 2014-09-01 15:00:04 -03:00
  • 22952d8973 'T.gccolor' classify dead objects too Roberto Ierusalimschy 2014-09-01 14:58:55 -03:00
  • df608f842a 'linktable' -> 'linkgclist' (and used for all links with 'gclist') Roberto Ierusalimschy 2014-09-01 14:37:11 -03:00
  • 001bb46ae1 bug: Ephemeron table can wrongly collect entry with strong key Roberto Ierusalimschy 2014-09-01 13:56:01 -03:00
  • 9b25347a67 detail Roberto Ierusalimschy 2014-08-27 11:59:33 -03:00
  • e401513086 new option 'p' for 'debug.sizeof' (size of a pointer) Roberto Ierusalimschy 2014-08-22 13:22:42 -03:00
  • 7f1a2ad699 new functions 'lua_geti/lua_seti' (non raw) Roberto Ierusalimschy 2014-08-21 17:07:56 -03:00
  • a1ab5ab396 'table.copy' -> 'table.move' + optional parameter moved to the end + several functions operate on "virtual" tables too Roberto Ierusalimschy 2014-08-21 16:13:55 -03:00
  • 01549fb1ed 'Csize' -> 'sizeof' + removed its 'b' option Roberto Ierusalimschy 2014-08-21 16:12:40 -03:00
  • 4fba117433 [un]'dumpint' -> [un]'dumpinteger' Roberto Ierusalimschy 2014-08-20 19:06:41 -03:00
  • 2be88d5084 'lua_Ctx' -> 'lua_Kcontext' Roberto Ierusalimschy 2014-08-01 14:33:08 -03:00
  • f5c690b684 details in comments Roberto Ierusalimschy 2014-08-01 14:24:02 -03:00
  • 61fa462535 added cast to avoid warning Roberto Ierusalimschy 2014-08-01 14:22:57 -03:00
  • fba9050d3d release changed to (5.3) alpha Roberto Ierusalimschy 2014-07-31 10:44:30 -03:00
  • d861706620 new macro 'cvt2num' to better control whether strings are convertible to numbers Roberto Ierusalimschy 2014-07-30 11:42:44 -03:00
  • 34ac039fb8 new macro 'cvt2str' to better control whether numbers are convertible to strings Roberto Ierusalimschy 2014-07-30 11:00:14 -03:00
  • 1aa5262634 do not assume numbers are coercible to strings Roberto Ierusalimschy 2014-07-30 10:59:24 -03:00
  • 07c7fdb9df simpler definition for 'setobj' (trust the compiler for the assignment) Roberto Ierusalimschy 2014-07-29 13:22:24 -03:00
  • 3ccbae84d2 added some casts between integral types (to avoid warnings) Roberto Ierusalimschy 2014-07-29 13:01:00 -03:00
  • 255d59ed5e some janitorial work (comments, small refactoring) Roberto Ierusalimschy 2014-07-28 14:47:53 -03:00
  • 925d1b59f9 new function 'math.ult' (unsigned less than) Roberto Ierusalimschy 2014-07-28 14:35:47 -03:00
  • 03bbe1baf1 first implementation for 'table.copy' Roberto Ierusalimschy 2014-07-25 15:46:00 -03:00
  • f9037ae8c1 'ipairs' respects metamethods Roberto Ierusalimschy 2014-07-24 16:33:29 -03:00
  • 57d8424146 extra space for new threads is initialized with a copy of the main thread, not of the creator thread. Roberto Ierusalimschy 2014-07-24 13:17:56 -03:00
  • baa0e23456 better support for extra user space associated with a Lua state Roberto Ierusalimschy 2014-07-24 11:00:16 -03:00
  • 55a710545c detail (extra byte in LUAI_EXTRASPACE to test proper alignment of a lua_State) Roberto Ierusalimschy 2014-07-23 14:16:50 -03:00
  • 753f2c1da4 better(?) alignment for some structures (pointers first) Roberto Ierusalimschy 2014-07-23 14:15:43 -03:00
  • b3b8580606 comments + proper undef of compatibility macros + no need to undef internal macros (this is the first definition) Roberto Ierusalimschy 2014-07-23 13:47:47 -03:00
  • 73ad16b5c6 no need for type 'pCallInfo' Roberto Ierusalimschy 2014-07-23 13:44:30 -03:00
  • 97e299c395 'lua_replace' implemented as a macro using 'lua_copy' Roberto Ierusalimschy 2014-07-22 15:07:47 -03:00
  • c697aa30bc more precise type for argument to 'aux_upvalue' Roberto Ierusalimschy 2014-07-21 13:02:57 -03:00
  • 17ee57f8e0 'iswhite' and related macros now can work directly on any object (no need to convert to 'GCObject') Roberto Ierusalimschy 2014-07-21 13:02:10 -03:00
  • 3c6d0aaa7d 'iswhite' and related macros now can work directly on any object (no need to convert to 'GCObject') Roberto Ierusalimschy 2014-07-19 12:14:46 -03:00
  • e43612aaf6 put the restriction that 'luaC_barrierback' works only on tables in its prototype Roberto Ierusalimschy 2014-07-19 12:09:37 -03:00
  • 2898e2fd12 removed useless assertion (gcstate != GCSpause already implied by other assertions) and wrong assertion (setmetatable uses this barrier for tables too) Roberto Ierusalimschy 2014-07-19 11:44:19 -03:00
  • 8704fca0c9 in 'luaL_checkversion_' check numeric types first. (Other tests depend on correct numeric type.) Roberto Ierusalimschy 2014-07-19 11:37:09 -03:00
  • 325e44d87e no more "-2" for limits. (Limits should be precise; safety is in the code that handles these limits.) Roberto Ierusalimschy 2014-07-18 15:29:12 -03:00
  • 54ac253343 detail (no need to define LUAI_USER_ALIGNMENT_T when it is not defined; simpler to define 'L_Umaxalign' directly) Roberto Ierusalimschy 2014-07-18 15:18:45 -03:00
  • bb12903120 type 'Udata' refers directly to structure inside the union (union used only for aligning purposes now) Roberto Ierusalimschy 2014-07-18 11:46:47 -03:00
  • ca41b43f53 type 'TString' refers directly to the structure inside the union (union used only for size purposes) Roberto Ierusalimschy 2014-07-18 10:36:14 -03:00
  • 3511e186cd ensure size for LUAI_USER_ALIGNMENT_T in tests is larger than the structures it is aligning (in most architectures) Roberto Ierusalimschy 2014-07-18 10:27:45 -03:00
  • 56137d58ff added check for conversion 'obj2gco' (and corrections for small problems detected by this check) Roberto Ierusalimschy 2014-07-18 09:17:54 -03:00
  • 9aec500a26 no need for field 'gch' anymore Roberto Ierusalimschy 2014-07-17 14:27:49 -03:00
  • 5a9cc57a5e change in GCObject: instead of being a union, it is now a structure with the common header of all collectable objects; union is used only for conversions. (Goal is to be able to check that the cast 'obj2gco' can have a check to ensure that object being converted is really a collectable object.). This is the first step in the change. Roberto Ierusalimschy 2014-07-17 14:09:50 -03:00
  • 1aa4f69b51 new type 'lua_Ctx' for continuation-function contexts (to allow type to be configurable) Roberto Ierusalimschy 2014-07-17 10:53:37 -03:00
  • 8bb272a3e3 new conversion float->integer: conversion is valid only when float has an exact representation as an integer Roberto Ierusalimschy 2014-07-17 09:30:53 -03:00
  • c229ed597f 'requiref' checks 'package.loaded' before loading a module Roberto Ierusalimschy 2014-07-16 11:51:36 -03:00
  • 16b4110521 function 'type' keeps type names as upvalues to avoid creating strings everytime it is called Roberto Ierusalimschy 2014-07-16 10:56:59 -03:00
  • f14662fca6 detail (added placeholders for non-function fields to preallocate space for them) Roberto Ierusalimschy 2014-07-16 10:56:14 -03:00
  • a9af12bbe7 Table library now respects '__index'/'__newindex' metamethods Roberto Ierusalimschy 2014-07-16 09:44:52 -03:00
  • 5bbb4a06a6 removed unused parameter Ä'L' in macro 'api_check' and company Roberto Ierusalimschy 2014-07-15 18:26:50 -03:00
  • d4fb848be7 added api check in 'lua_typename' (tag is valid) Roberto Ierusalimschy 2014-07-15 18:14:49 -03:00
  • b9dcf9974d detail (typos in comments) Roberto Ierusalimschy 2014-06-30 16:48:08 -03:00
  • a77d263e86 unsigned-manipulation functions (lua_puhsunsigned, lua_tounsigned, etc.) deprecated Roberto Ierusalimschy 2014-06-26 15:38:28 -03:00
  • 7cc40851e1 emergency collection can happen even when collector is stopped Roberto Ierusalimschy 2014-06-26 15:29:05 -03:00
  • 08a9c9faa3 detail (comment) Roberto Ierusalimschy 2014-06-26 15:28:24 -03:00
  • 84fe52dbeb unsigned-manipulation functions (lua_puhsunsigned, lua_tounsigned, etc.) deprecated Roberto Ierusalimschy 2014-06-26 14:25:11 -03:00
  • 10200585a7 var-arguments to the script come from 'arg' table (not from original 'argv' array) Roberto Ierusalimschy 2014-06-26 14:08:52 -03:00
  • c94f11d783 'IntPoint' -> 'point2int' + ensure that casted value fits in destination type Roberto Ierusalimschy 2014-06-26 13:17:35 -03:00
  • 54ac5960a8 LUA_MAXUNSIGNED was only used to define 2.0^intnumbits (and that definition was not strictly portable), so it was removed and replaced by a more correct and direct definition for 2.0^intnumbits (only where it was needed) Roberto Ierusalimschy 2014-06-24 14:02:00 -03:00
  • 0e6229a953 use proper macros to convert 'GCObject' to other objects + better type cheking in 'set*value' macros Roberto Ierusalimschy 2014-06-19 15:39:36 -03:00
  • d2ab1aef31 detail (avoid too large macro) Roberto Ierusalimschy 2014-06-19 15:29:30 -03:00
  • 89b56e7d84 more precision between closure types ('LClosure' x 'CClosure') Roberto Ierusalimschy 2014-06-19 15:27:20 -03:00
  • 14929f5764 use appropriate macros to convert GCObject to specific types Roberto Ierusalimschy 2014-06-18 19:59:29 -03:00
  • 7021cc9bc8 allows different 'source' for each prototype, but inherits it from parent when they are equal (only possible case for chunks created by the parser) Roberto Ierusalimschy 2014-06-18 15:35:43 -03:00
  • 04da0a40c0 added assertion about sources being the same for all protos in a chunk Roberto Ierusalimschy 2014-06-18 10:54:31 -03:00
  • eb67828236 changed macro for compatibility options + details Roberto Ierusalimschy 2014-06-18 10:24:01 -03:00
  • 94266dfdbd source for all prototypes must be equal in a chunk; no need to store each one separated Roberto Ierusalimschy 2014-06-18 10:21:12 -03:00
  • e3871abe95 'math.ifloor' is back Roberto Ierusalimschy 2014-06-18 09:35:53 -03:00