1
0
mirror of https://github.com/lua/lua synced 2026-06-08 15:34:49 +00:00

Commit Graph

  • e75c0148c3 comments (references to "ANSI C" changed to "ISO C", which is the international name Roberto Ierusalimschy 2014-11-02 17:33:33 -02:00
  • 28fdbcf393 added include for 'lprefix.h', for stuff that must be added before any other header file Roberto Ierusalimschy 2014-11-02 17:19:04 -02:00
  • c25072a246 'lua_load' sets _ENV for any chunk with upvalues (not just those with exactly one upvalue) Roberto Ierusalimschy 2014-10-31 15:41:51 -02:00
  • 1a69a3ecea LUA_WIN -> LUA_USE_WINDOWS Roberto Ierusalimschy 2014-10-31 13:54:06 -02:00
  • dcfc3c9405 new option '=' (native endian) for pack/unpack Roberto Ierusalimschy 2014-10-31 13:53:31 -02:00
  • 4542fb9f78 comments (a few extra quotes around identifiers) Roberto Ierusalimschy 2014-10-30 16:53:28 -02:00
  • 80e817719d default changed from C89 to C99 + extra tests before using C99 features (when possible) + LUA_32BITS use 'int' when possible ('long' can be 64 bits) Roberto Ierusalimschy 2014-10-30 16:50:03 -02:00
  • 96f3a31b24 Better organization of definitions in categories + removed '_CRT_SECURE_NO_WARNINGS' (useless there) + LUA_ENV/luai_writestring/ luai_writeline/luai_writestringerror/LUA_INT32/LUAI_UMEM/LUAI_MEM moved to other places (no need to be in luaconf.h) + changed definition for LUAL_BUFFERSIZE Roberto Ierusalimschy 2014-10-29 16:01:26 -02:00
  • ff6c034330 configurations for types 'lu_mem'/'l_mem'/'Instruction' moved to here (from 'luaconf.h'), as they are not needed by the API and probably will not be changed Roberto Ierusalimschy 2014-10-29 15:07:45 -02:00
  • 05afee0f50 definitions for 'luai_writestring'/'luai_writeline'/'luai_writestringerror' moved to 'lauxlib.h' (they do not need to be stable or configurable) + prefixes changed from 'luai_' to 'lua_' (they are not part of the core) Roberto Ierusalimschy 2014-10-29 14:12:30 -02:00
  • 351a446ec5 definition for 'LUA_ENV' moved from 'luaconf.h' to here (no need to be visible outside Lua + no need for easy redefinitions) Roberto Ierusalimschy 2014-10-29 13:38:24 -02:00
  • e9885efc7c added comment and assert about an (impossible) division by zero Roberto Ierusalimschy 2014-10-29 13:02:53 -02:00
  • 59fbbf0a65 small simplifications in code for 'lua_strx2number' Roberto Ierusalimschy 2014-10-28 16:41:38 -02:00
  • 61c3c80177 detail Roberto Ierusalimschy 2014-10-28 16:23:31 -02:00
  • 9de384e27a removed useless 'include math.h' Roberto Ierusalimschy 2014-10-28 15:27:50 -02:00
  • 4b526045fa comment Roberto Ierusalimschy 2014-10-28 15:27:41 -02:00
  • 4870194380 small reorganization of tests around LUA_USE_C99 Roberto Ierusalimschy 2014-10-27 17:21:56 -02:00
  • 41d0e66184 comments + Windows numeric types not used if LUA_ANSI is defined Roberto Ierusalimschy 2014-10-27 16:06:03 -02:00
  • aa1bd8876c comments Roberto Ierusalimschy 2014-10-27 16:05:37 -02:00
  • 7314acaa80 'T.limits' reports some more useful limits Roberto Ierusalimschy 2014-10-27 15:00:02 -02:00
  • 4b2521cd9e better (and safer?) way to test native size of type 'int' Roberto Ierusalimschy 2014-10-27 14:59:31 -02:00
  • 491103708e 'MAXSTACK' -> 'MAXREGS' and moved to 'lcode.c' (there is no reason to change that constant...) Roberto Ierusalimschy 2014-10-27 14:29:58 -02:00
  • fa4d5c8689 pack/unpack do not handle final '\0' as an "option" (it streches unnecessarily the switch range) Roberto Ierusalimschy 2014-10-27 11:30:24 -02:00
  • aef2d711b1 detail Roberto Ierusalimschy 2014-10-26 13:45:41 -02:00
  • bdf566a8a3 `name' in comments changed to 'name' Roberto Ierusalimschy 2014-10-25 09:50:46 -02:00
  • c3c78030f7 avoid redeclaration of _CRT_SECURE_NO_WARNINGS + 'lua_numtointeger' -> 'lua_numbertointeger' Roberto Ierusalimschy 2014-10-24 09:42:47 -02:00
  • ff9ca88aa6 added some casts to avoid warnings in some compilers Roberto Ierusalimschy 2014-10-24 09:42:29 -02:00
  • 463edee2fd 'lua_numtointeger' -> 'lua_numbertointeger' Roberto Ierusalimschy 2014-10-24 09:42:06 -02:00
  • 88ff582fd8 detail (using 'sizeof' instead of 'strlen' for length of a constant string) v5.3-beta Roberto Ierusalimschy 2014-10-22 14:55:57 -02:00
  • 6b12b82532 added 'l_' prefix for names that can be redefined externally Roberto Ierusalimschy 2014-10-22 09:44:20 -02:00
  • d7a0179cd6 use 'opf' (float) variants only when explicitly allowed (LUA_USE_C99) Roberto Ierusalimschy 2014-10-21 12:38:46 -02:00
  • 6d613817d4 comments Roberto Ierusalimschy 2014-10-20 20:21:05 -02:00
  • 44be021309 comment Roberto Ierusalimschy 2014-10-20 16:32:09 -02:00
  • b8d412aa07 error in comment Roberto Ierusalimschy 2014-10-20 16:29:55 -02:00
  • 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
  • f59b241315 Bug: Ephemeron table can wrongly collect entry with strong key Roberto Ierusalimschy 2014-09-01 13:55:08 -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 v5.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