Commit Graph

  • 2fc6b55dae Removed resource-related "emergency collections" Roberto Ierusalimschy 2018-10-31 16:25:29 -0300
  • 947a372f58 State in generic 'for' acts as a to-be-closed variable Roberto Ierusalimschy 2018-10-31 14:54:45 -0300
  • e073cbc2e5 Better error messages for invalid operands in numeric 'for' Roberto Ierusalimschy 2018-10-30 15:46:56 -0300
  • 2316ec4c24 Back with optimization for 'if cond then goto' Roberto Ierusalimschy 2018-10-30 15:04:19 -0300
  • a006514ea1 Big revamp in the implmentation of labels/gotos Roberto Ierusalimschy 2018-10-29 14:26:48 -0300
  • 6e9b719694 More uniformity in code generation for 'for' loops Roberto Ierusalimschy 2018-10-26 10:38:50 -0300
  • 34840301b5 To-be-closed variables in the C API Roberto Ierusalimschy 2018-10-25 15:30:15 -0300
  • 41c800b352 Closing methods should not interfere with returning values Roberto Ierusalimschy 2018-10-25 12:50:20 -0300
  • 0a9aca56ca Added a '__close' metamethod to file handles Roberto Ierusalimschy 2018-10-23 13:57:25 -0300
  • ea1322ef54 Detail: bad assertion in 'luaM_free_' Roberto Ierusalimschy 2018-10-23 12:58:38 -0300
  • 6a4b9bb2b4 Removed extra information from RCS keyword strings in tests Roberto Ierusalimschy 2018-10-22 15:20:07 -0300
  • 7c8146d556 Small improvements in the manual Roberto Ierusalimschy 2018-10-22 15:02:09 -0300
  • c90176f969 Complete implementation of to-be-closed variables Roberto Ierusalimschy 2018-10-22 14:55:51 -0300
  • 3c7dc52909 Handling of memory errors when creating to-be-closed upvalues Roberto Ierusalimschy 2018-10-18 16:15:09 -0300
  • bd96330d03 First "complete" implementation of to-be-closed variables Roberto Ierusalimschy 2018-10-17 10:44:42 -0300
  • 4cd1f4aac0 Towards "to closed" local variables Roberto Ierusalimschy 2018-10-08 10:42:07 -0300
  • b114c7d487 Added "cost" for the use of C stack by a coroutine invocation. Roberto Ierusalimschy 2018-09-11 14:24:14 -0300
  • 9cbf17b0f1 Details (comments) Roberto Ierusalimschy 2018-09-11 08:39:12 -0300
  • 5382a22e0e Corrections in the implementation of '%' for floats. Roberto Ierusalimschy 2018-08-28 12:36:58 -0300
  • 8c8a91f2ef Deprecated the emulation of '__le' using '__lt' Roberto Ierusalimschy 2018-08-24 10:17:54 -0300
  • f99509581e Removed extra information from RCS keyword strings Roberto Ierusalimschy 2018-08-23 14:26:12 -0300
  • 3dcd04ad61 details Roberto Ierusalimschy 2018-08-17 15:53:39 -0300
  • faaf7e481f Removed use of 'rl_inhibit_completion' in 'lua.c' Roberto Ierusalimschy 2018-08-16 14:38:05 -0300
  • 3d838f635c Added "emergency collection" to 'io.tmpfile' and 'os.tmpname' Roberto Ierusalimschy 2018-07-27 15:50:53 -0300
  • aa4c5cf190 Added directory to test file names in '$Id:' Roberto Ierusalimschy 2018-07-25 15:31:04 -0300
  • b47f2cd068 Small improvements in the manual Roberto Ierusalimschy 2018-07-25 14:56:42 -0300
  • e885dee5ab File operations try an "emergency collection" when failing Roberto Ierusalimschy 2018-07-25 11:44:46 -0300
  • ccae0f5aad Comments about OLD0/OLD1 ages Roberto Ierusalimschy 2018-07-18 11:43:45 -0300
  • 2e297d6ab3 Fixed bug in generational collection of userdata Roberto Ierusalimschy 2018-07-13 15:43:02 -0300
  • fb18346ddd Avoid using 'int' for UTF-8 values Roberto Ierusalimschy 2018-07-12 15:56:44 -0300
  • 96f9643f33 Bug: wrong 'nCcalls' when resuming a coroutine Roberto Ierusalimschy 2018-07-11 16:11:50 -0300
  • 84058b1506 Added definition for LUA_VERSION_RELEASE_NUM Roberto Ierusalimschy 2018-07-11 13:17:46 -0300
  • 4d5de1c1fb Fixed bug in line info. when using 'not' operator Roberto Ierusalimschy 2018-07-11 12:53:23 -0300
  • 9a825f6bb9 In tests of opcodes, avoid coercion in bitwise operation Roberto Ierusalimschy 2018-07-10 14:55:16 -0300
  • 941b189d98 Improvements in the manual Roberto Ierusalimschy 2018-07-10 13:48:19 -0300
  • 21f663d29f Added missing $Id$ to file 'ljumptab.h' Roberto Ierusalimschy 2018-07-10 13:40:30 -0300
  • 626cf0581b Generational mode may wait longer after a major collection Roberto Ierusalimschy 2018-07-09 14:22:09 -0300
  • ccf6d098f6 'searchpath' creates less temporary strings Roberto Ierusalimschy 2018-07-09 13:29:08 -0300
  • de2caf7ee4 Bit-library file removed from the project (as it was deprecated) Roberto Ierusalimschy 2018-07-09 12:54:51 -0300
  • b08c9079c5 Opcode names moved to a new header file Roberto Ierusalimschy 2018-07-09 12:50:51 -0300
  • 06e08c6d05 Fixed bug in OP_IDIVI Roberto Ierusalimschy 2018-07-09 12:41:24 -0300
  • 7c519dfbd0 Added manual and tests for version 5.4-w2 Roberto Ierusalimschy 2018-07-09 12:33:01 -0300
  • f59e6a93c0 opening functions must be exported! v5.4-w2 Roberto Ierusalimschy 2018-06-19 16:23:57 -0300
  • 6683f83b51 several details Roberto Ierusalimschy 2018-06-18 15:25:19 -0300
  • a314409dba in generational mode, an emergency collection can turn any object black during any memory allocation + 'luaT_getvarargs' may reallocate the stack, and therefore the top must be correct. Roberto Ierusalimschy 2018-06-18 14:58:21 -0300
  • 15ce8d0904 in generational mode, an emergency collection can turn any object black during any memory allocation. Roberto Ierusalimschy 2018-06-18 14:57:20 -0300
  • b43300c14f change in 'LUAI_DDEC' to allow variables to be static in 'onelua' + change in 'LUAMOD_API' as opening functions do not need to be global Roberto Ierusalimschy 2018-06-18 09:51:05 -0300
  • af70905246 no need to check whether libraries and host use the same kernel; Lua should work correctly with several copies of the kernel Roberto Ierusalimschy 2018-06-18 09:08:10 -0300
  • b95e466218 new field 'nilvalue' in struct 'global_State' to avoid the use of addresses of static variables Roberto Ierusalimschy 2018-06-15 16:31:22 -0300
  • d406d3d05f removed unused macros 'isstackindex'/'api_checkstackindex' + macro 'api_checkvalidindex' (used only once) expanded and removed Roberto Ierusalimschy 2018-06-15 14:30:52 -0300
  • b6780ee41b detail (removed unused definition for 'LUA_QS') Roberto Ierusalimschy 2018-06-15 12:49:28 -0300
  • 2c107e13a8 warning (comparison between signed and unsigned integers) Roberto Ierusalimschy 2018-06-15 11:18:40 -0300
  • 6e600695f8 field 'sizearray' in struct 'Table' changed to 'alimit', which can be used as a hint for '#t' Roberto Ierusalimschy 2018-06-15 11:14:20 -0300
  • 06127927ff new macro 'ispow2' Roberto Ierusalimschy 2018-06-15 11:13:45 -0300
  • aedcfb9414 type 'Rand64' may not be long long, so it should not use 'LL' in its constants Roberto Ierusalimschy 2018-06-14 15:47:22 -0300
  • 992b6d2712 no more 'TESTGRAYBIT' (to free this bit for real uses) Roberto Ierusalimschy 2018-06-11 11:19:50 -0300
  • 588dfa4ce5 detail in comment Roberto Ierusalimschy 2018-06-08 16:07:27 -0300
  • 6f2b8e21c4 added 'const' to 'Proto*' when possible Roberto Ierusalimschy 2018-06-08 16:06:59 -0300
  • c5dc521d65 added patch for bug 5.3.4-7 Roberto Ierusalimschy 2018-06-08 13:23:18 -0300
  • 505fc91222 no more 'luaO_nilobject' to avoid comparison of global variable addresses (now uses static variables) Roberto Ierusalimschy 2018-06-01 14:40:38 -0300
  • fb8fa66136 no more 'luaH_emptyobject' and comparisons of addresses of global variables (instead, use a different kind of nil to signal the fake entry returned when a key is not found in a table) Roberto Ierusalimschy 2018-06-01 13:51:34 -0300
  • b397064955 avoid craches when loading tampered code with NULL as a string constant Roberto Ierusalimschy 2018-06-01 13:45:58 -0300
  • 34aa0c5bd7 new macros 'likely'/'unlikely' with hints for jump predictions (used only in errors for now) Roberto Ierusalimschy 2018-05-30 11:25:52 -0300
  • 97e394ba18 macro 'luai_makeseed' now controls the whole process of making the seed Roberto Ierusalimschy 2018-05-29 15:02:51 -0300
  • 950fbcb971 detail ('l_castU2S' should only be used over lua_Unsigned values) Roberto Ierusalimschy 2018-05-29 15:01:50 -0300
  • b2d4d06428 avoid possible overflows when checking sizes in 'string.unpack' Roberto Ierusalimschy 2018-05-25 10:39:32 -0300
  • 3b8dba5279 added patches for two bugs (5.3.4-2 and 5.3.4-3) Roberto Ierusalimschy 2018-05-24 17:25:14 -0300
  • 892aff2a07 avoid circular inclusion between ltm.h <-> lstate.h Roberto Ierusalimschy 2018-05-23 11:41:20 -0300
  • 02ed0b2c30 in 'luaD_poscall', there is no need to compute 'firstResult' when 'nres==0' Roberto Ierusalimschy 2018-05-22 09:02:36 -0300
  • de53c2ec7e using some weak "randomness" (time and memory address) to initialize seeds for the PRNG Roberto Ierusalimschy 2018-05-16 08:27:59 -0300
  • 80bd4a8940 correction on xoshiro256** algorithm (should use state[1] instead of state[0] for output) Roberto Ierusalimschy 2018-05-09 11:54:37 -0300
  • 3e7415e846 reorganization of '#if's for sellecting a type for 'Rand64' + comments Roberto Ierusalimschy 2018-05-04 17:01:45 -0300
  • e64e20ac81 minimizing the code ran by 'vmfetch' + no more 'vra' (the code is simpler without 'vra' and conversion is a no-op) Roberto Ierusalimschy 2018-05-02 15:17:59 -0300
  • deb807837c 'luaO_pushvfstring' does not need to reallocate stack (less error cases in the API) Roberto Ierusalimschy 2018-04-25 13:26:20 -0300
  • 26eb144541 no need to define 'luaP_opnames' in regular builds Roberto Ierusalimschy 2018-04-19 12:42:41 -0300
  • f9c3d6fdbe use test mode to test the interpreter without jump tables Roberto Ierusalimschy 2018-04-11 13:49:36 -0300
  • 762baf0548 detail (trim constants are unsigned) Roberto Ierusalimschy 2018-04-06 14:52:42 -0300
  • b8a04658b2 PRNG changed from 'xoroshiro128+' to 'xoshiro256**' + "I' renamed 'Rand64' + implementation can use integer types larger than 64 (or 32) bits Roberto Ierusalimschy 2018-04-06 12:41:29 -0300
  • b44787652b using 'xoroshiro128+' for PRNG (plus a rotate at the final result to have better lower bits) Roberto Ierusalimschy 2018-04-04 13:12:53 -0300
  • 03c6a05ec8 no more nil-in-table Roberto Ierusalimschy 2018-04-04 11:23:41 -0300
  • 3d0b5edfe4 using unsigned comparison in 'l_intfitsf' (avoids one comparison) Roberto Ierusalimschy 2018-04-02 14:52:07 -0300
  • 8d50a998e3 definition for LUA_UNSIGNEDBITS (number of bits in a LUA_UNSIGNED) Roberto Ierusalimschy 2018-04-02 10:58:33 -0300
  • bdd10a08b1 in 'random', uses high-order bits instead of low-order (better statistical properties) Roberto Ierusalimschy 2018-03-26 16:48:46 -0300
  • c5e3b2f814 in random/'project', remove the special case for "small" intervals; it is slower than the general case. Roberto Ierusalimschy 2018-03-22 16:54:49 -0300
  • 6486762463 missing LUAI_FUNC in prototype for 'luaK_patchgoto' Roberto Ierusalimschy 2018-03-19 17:03:44 -0300
  • 4907444db9 'fTransfer' -> 'ftransfer' / 'nTransfer' -> 'ntransfer' (keep the standard of names in lower case) Roberto Ierusalimschy 2018-03-16 12:33:34 -0300
  • c3cb31fa9a some extra goodies for 'readline' ('rl_readline_name' and 'rl_inhibit_completion') Roberto Ierusalimschy 2018-03-16 11:23:08 -0300
  • 0c7738240e FALLTHROUGH comment must be last "statement" (so it does not work when inside a block) Roberto Ierusalimschy 2018-03-16 11:22:09 -0300
  • 7b0b6b3b39 cannot use 'defined' inside a macro + call to 'luaT_keydef' must be protected Roberto Ierusalimschy 2018-03-16 11:21:20 -0300
  • 89da4168df avoid functions named 'pack' (name too common, may collide when doing 'onelua.c') Roberto Ierusalimschy 2018-03-16 11:18:18 -0300
  • 6b01b6cf6a 'lu_int32' may not be 'int' Roberto Ierusalimschy 2018-03-12 09:39:03 -0300
  • e3388ebfad more explicit casts when converting an integer to a random float (to ensure computations are done with all bits) Roberto Ierusalimschy 2018-03-11 11:48:09 -0300
  • 9e3db70482 details (casts between 'lua_Number' and 'double') Roberto Ierusalimschy 2018-03-09 16:24:45 -0300
  • dbec41f34c random floats of different sizes get exactly needed number of random bits (up to 64) Roberto Ierusalimschy 2018-03-09 16:23:39 -0300
  • 0b3db69e41 slight simplification in 'xorshift128plus' Roberto Ierusalimschy 2018-03-09 12:05:13 -0300
  • 80ae1c1c16 fairer projection of random integers into an integer interval Roberto Ierusalimschy 2018-03-09 11:56:25 -0300
  • 40683b4934 added definition for LUA_MAXUNSIGNED Roberto Ierusalimschy 2018-03-09 11:56:02 -0300
  • 6480e73599 details (avoid using non-C89 '//' comment) Roberto Ierusalimschy 2018-03-07 13:26:01 -0300
  • 4a1612ff9b new experimental syntax using reserved word 'undef' Roberto Ierusalimschy 2018-03-07 12:55:38 -0300
  • 464658b16a better modularization of the code for the REPL Roberto Ierusalimschy 2018-03-06 17:30:17 -0300