Commit Graph

  • 4cca1a436d details (using lua_setglobal/lua_getglobal instead of explicit use of the global table) Roberto Ierusalimschy 2012-04-20 14:05:17 -03:00
  • 8df0198178 release 5.2.1 Roberto Ierusalimschy 2012-04-20 10:18:26 -03:00
  • 048be9cf27 different scheme to check arguments to '%d', '%x', etc. Old scheme did not work well when lua_Number is an integer. Roberto Ierusalimschy 2012-04-20 10:16:48 -03:00
  • 1485ea2ee7 Finalizers may call functions from a dynamic library after the library has been unloaded Roberto Ierusalimschy 2012-04-12 13:25:25 -03:00
  • b10dbe5c72 bug: C libraries must be unloaded after all other finalizers have run, because a finalizer may use a C function from a C library Roberto Ierusalimschy 2012-04-11 13:35:32 -03:00
  • 462375ba47 'if' to avoid empty 'memcpy' (may be expensive) Roberto Ierusalimschy 2012-04-03 16:06:19 -03:00
  • cfbe2333a4 string hash may not use all bytes (but this is configurable now) + small other changes Roberto Ierusalimschy 2012-03-28 15:28:25 -03:00
  • afc3fcf952 definition for 'LUA_MAXSHORTLEN' moved to 'lstring.c' (used only there) Roberto Ierusalimschy 2012-03-28 15:27:25 -03:00
  • 99bd1a000f error function can be 'l_noret' Roberto Ierusalimschy 2012-03-19 19:58:09 -03:00
  • 3e66d3b4be cleaner code (avoids loop with empty body) Roberto Ierusalimschy 2012-03-19 19:57:14 -03:00
  • 29a28693e5 'luaL_checkversion' called by 'luaL_setfuncs' Roberto Ierusalimschy 2012-03-18 13:52:49 -03:00
  • 678c1255c9 random seed used in the hash of all strings to avoid intentional collisions Roberto Ierusalimschy 2012-02-01 19:57:15 -02:00
  • a4b96ce9a3 first implementation of long strings Roberto Ierusalimschy 2012-01-25 19:05:40 -02:00
  • 291f564485 field 'reserved' -> 'extra' (may be used for other purposes too) Roberto Ierusalimschy 2012-01-23 21:05:51 -02:00
  • 9f1a8dbdd3 'eqstr' -> 'luaS_eqstr' Roberto Ierusalimschy 2012-01-23 21:05:18 -02:00
  • d19f1da6ef new macro 'isreserved' + 'eqstr' -> 'luaS_eqstr' (may be a function) Roberto Ierusalimschy 2012-01-23 21:04:07 -02:00
  • f88806a1fb "default: lua_assert(0)" in switches helps debugging + uses non-variant types in binary files Roberto Ierusalimschy 2012-01-23 21:02:10 -02:00
  • fb6eee2805 Lua never uses Ã'assert' (it is always 'lua_assert') Roberto Ierusalimschy 2012-01-23 20:59:02 -02:00
  • 0010ec68b1 documentation comment (small correction about strings being gray) Roberto Ierusalimschy 2012-01-23 18:29:12 -02:00
  • 28f8ed9113 new macro 'checktype' Roberto Ierusalimschy 2012-01-20 20:47:11 -02:00
  • fd22ccd6d0 object tag keeps variant bits too -> no need for 'isC' field in Closures + more strick typing for closure variants Roberto Ierusalimschy 2012-01-20 20:05:50 -02:00
  • 76eab106df bug: Lexical gets confused with some combination of arithmetic operators and hexadecimal numbers Roberto Ierusalimschy 2012-01-20 16:35:36 -02:00
  • 81ed85ecfb BUG: memory hoarding when creating Lua hooks for coroutines BUG: Lexical gets confused with some combination of arithmetic operators and hexadecimal numbers Roberto Ierusalimschy 2012-01-20 16:32:13 -02:00
  • 7dcc02b165 BUG: coroutine hooks were not collected together with coroutine Roberto Ierusalimschy 2012-01-19 18:14:44 -02:00
  • e2fc2ce8df new way to handle -E option (write a mark in the registry to avoid reading environment variables) v5.2.0 Roberto Ierusalimschy 2011-12-12 14:34:03 -02:00
  • a241b6cb3c removed redundant definition for FILEHANDLE Roberto Ierusalimschy 2011-12-08 10:11:37 -02:00
  • f0d143f30f avoid a few warnings (casts) Roberto Ierusalimschy 2011-12-07 16:03:47 -02:00
  • c82087b8dd cast from 'bool' to 'int' (for C++) Roberto Ierusalimschy 2011-12-07 12:43:55 -02:00
  • 138be5b843 no more explicit support for 'luaall_c': unifying file can do the work Roberto Ierusalimschy 2011-12-06 14:58:36 -02:00
  • e320b5b672 small bug: format '%d' for lua_Number argument Roberto Ierusalimschy 2011-12-06 14:33:55 -02:00
  • ca9c405fef some compilers (e.g., gcc C++) do not accept NULL as a pointer in that context Roberto Ierusalimschy 2011-12-02 11:26:54 -02:00
  • e2feb886d6 macro 'luaL_getmetatable' seems more appropriate when getting metatables in registry Roberto Ierusalimschy 2011-12-02 11:25:57 -02:00
  • 5999e14ad9 old error messages may be misleading Roberto Ierusalimschy 2011-12-02 11:23:56 -02:00
  • 01747f2c24 error message: "tag method" -> "metamethod" Roberto Ierusalimschy 2011-12-02 11:18:41 -02:00
  • 7377fbdebc function prototype did not match one in .h Roberto Ierusalimschy 2011-11-30 17:30:16 -02:00
  • f1d2ac3a98 allow non-integer arguments to integer formats (%d, %x, etc.), but check range Roberto Ierusalimschy 2011-11-30 16:24:56 -02:00
  • c5da4f4cd0 unused variable removed Roberto Ierusalimschy 2011-11-30 11:03:24 -02:00
  • 7bcb2462e4 comments Roberto Ierusalimschy 2011-11-30 10:58:57 -02:00
  • 0bd99b327b avoid "unreachable" 'break' Roberto Ierusalimschy 2011-11-30 10:44:26 -02:00
  • 6d8b672094 more uses of 'l_noret' Roberto Ierusalimschy 2011-11-30 10:43:51 -02:00
  • e21b26a964 avoid 'return' "to avoid warnings" Roberto Ierusalimschy 2011-11-30 10:42:49 -02:00
  • 0f388193b3 'lUA' -> 'LUA' Roberto Ierusalimschy 2011-11-30 10:35:05 -02:00
  • 7948b8568e when available, use '*_r' versions of 'gmtime' and 'localtime' Roberto Ierusalimschy 2011-11-29 15:15:42 -02:00
  • 61b1d9a466 another try to avoid warnings about unreachable 'return' after 'exit' Roberto Ierusalimschy 2011-11-29 13:55:51 -02:00
  • 3617e04e97 'lua_load' has an extra argument 'mode' Roberto Ierusalimschy 2011-11-29 13:55:08 -02:00
  • 8c62bde36f comment Roberto Ierusalimschy 2011-11-29 13:54:38 -02:00
  • 51650eac78 small change to avoid warnings of non-specified order of access to volatile fields Roberto Ierusalimschy 2011-11-29 13:39:48 -02:00
  • aea68e5c54 explicit option RTLD_LOCAL instead of 0 (Posix does not fix a default for dlopen) Roberto Ierusalimschy 2011-11-28 15:27:51 -02:00
  • ece042fef0 'table.pack' does not return 'n' (may be confusing when using table.pack as last argument in a call) Roberto Ierusalimschy 2011-11-28 15:26:30 -02:00
  • 217b65e6d9 avoid some warnings about converting 32-bit shifts into 64-bit results Roberto Ierusalimschy 2011-11-28 15:25:48 -02:00
  • 8119374e74 avoid warnings of unreacheable 'break's Roberto Ierusalimschy 2011-11-28 15:25:16 -02:00
  • 3a997eefb5 MS_ASMTRICK is only valid on MS compilers (not any Windows compiler) Roberto Ierusalimschy 2011-11-25 10:52:27 -02:00
  • 5184ff2096 'LUA_DL_DLL' is not yet defined before the inclusion of 'lua.h' Roberto Ierusalimschy 2011-11-25 10:52:03 -02:00
  • b0cbe77816 '_fseeki64' and family not available in all Windows platforms Roberto Ierusalimschy 2011-11-25 10:50:03 -02:00
  • 6e899850b9 details Roberto Ierusalimschy 2011-11-24 11:25:41 -02:00
  • fded7bef19 options for 'collectgarbage' renamed: "inc" -> "incremental"; "gen" -> "generational" Roberto Ierusalimschy 2011-11-23 15:29:04 -02:00
  • b5d7255034 small changes to avoid some warnings Roberto Ierusalimschy 2011-11-16 16:51:36 -02:00
  • 6cce5c0601 new function 'luaL_loadfilex' Roberto Ierusalimschy 2011-11-14 15:10:24 -02:00
  • eb70f58279 'luaIO_Stream' -> 'luaL_Stream' Roberto Ierusalimschy 2011-11-14 14:55:35 -02:00
  • ef900f224c strutcture for file handles exported in 'lauxlib.h' Roberto Ierusalimschy 2011-11-11 17:59:17 -02:00
  • 3105febf9a using Lua buffers to build error messages Roberto Ierusalimschy 2011-11-10 09:42:58 -02:00
  • 7133e20c94 make treatment of 'pcall' and 'xpcall' more similar Roberto Ierusalimschy 2011-11-09 17:38:00 -02:00
  • 888d39ea75 refactoring of common parts of 'pcall' and 'xpcall' + avoids stack errors on these functions (return error code instead) Roberto Ierusalimschy 2011-11-09 17:28:27 -02:00
  • eef22fa4ce create error messages with a single concat, to avoid problems with creating strings piecemeal Roberto Ierusalimschy 2011-11-09 17:11:20 -02:00
  • eda87f1156 in 'luaL_checkstack', include extra stack space in test to allow correct execution of error routines, if necessary Roberto Ierusalimschy 2011-11-09 17:08:55 -02:00
  • e0e406ead3 extra argument to instruction 'checkstack' (in 'testC') Roberto Ierusalimschy 2011-11-09 17:08:07 -02:00
  • 30cea671a7 configurable 'directory separator' in 'package.searchpath' Roberto Ierusalimschy 2011-11-09 13:18:04 -02:00
  • a716ae1f50 avoids including 'stdio.h' everywhere (because of definitions for luai_writestring/luai_writeline) Roberto Ierusalimschy 2011-11-09 12:47:14 -02:00
  • ea382b0be1 small bug: error message in 'io.lines' is not the error number Roberto Ierusalimschy 2011-11-09 12:10:43 -02:00
  • 6d8d282e0f avoid calling "extra value" as if it were a function option Roberto Ierusalimschy 2011-11-06 11:59:12 -02:00
  • 00c8a17a2d by default, do not use Windows' goodies in Windows CE build Roberto Ierusalimschy 2011-11-05 13:29:05 -02:00
  • 166ce15512 cannot apply macro 'getstr' over NULL Roberto Ierusalimschy 2011-10-31 15:48:51 -02:00
  • 87cf2bf711 extra comments about what fields are optional debug information Roberto Ierusalimschy 2011-10-31 15:48:22 -02:00
  • fd8a849621 detail (avoid applying macro 'getstr' with a function-call argument) Roberto Ierusalimschy 2011-10-31 15:46:04 -02:00
  • 5a568a3b01 detail (comment) Roberto Ierusalimschy 2011-10-25 10:01:20 -02:00
  • 475e6c5352 'lua_setglobal/lua_getglobal' implemented as functions to avoid problems with stack indices (e.g., lua_getglobal(L, lua_tostring(L, -1)) ) Roberto Ierusalimschy 2011-10-24 14:53:05 -02:00
  • af00a0772c new functions lua_rawsetp/lua_rawgetp Roberto Ierusalimschy 2011-10-24 12:54:05 -02:00
  • 6819c2a98a silly bug in 5.2 beta: assignment conflict code did not test to check whether variable was a table element Roberto Ierusalimschy 2011-10-24 12:51:44 -02:00
  • 1dd8af67b6 BUG: parser may collect a prototype while building it. Roberto Ierusalimschy 2011-10-21 17:34:23 -02:00
  • 1350a2bcb5 more macros to try to make NaN trick work with other sizes of IEEE float numbers. (It has not been tested with such different sizes...) Roberto Ierusalimschy 2011-10-17 12:46:13 -02:00
  • 217e67cb22 new type 'l_noret' for function that do not return Roberto Ierusalimschy 2011-10-07 17:45:19 -03:00
  • 9bbfe9f3fd avoid the word 'TRICKLE' in macro name (as it has nothing to do with its meaning) Roberto Ierusalimschy 2011-10-07 16:53:05 -03:00
  • 788a0ecd27 'luaC_separateudata' renamed to 'separatetobefnz' and called only from 'lgc.c' Roberto Ierusalimschy 2011-10-03 14:54:25 -03:00
  • 6d86b937e4 'luaC_separateudata' called from 'luaC_freeallobjects' + removed extra 'luaF_close' (already being called by 'close_state') Roberto Ierusalimschy 2011-10-03 14:54:25 -03:00
  • bc90cf4b83 retraverse all gray lists together to avoid traversing some weak tables twice (as they may change lists when traversed) Roberto Ierusalimschy 2011-10-03 13:22:05 -03:00
  • d79190e27f missing 'LUA_CORE' definition Roberto Ierusalimschy 2011-10-03 13:19:23 -03:00
  • 9caf5b4f79 lint (unused definition) Roberto Ierusalimschy 2011-09-30 09:46:06 -03:00
  • 50cddefeeb lint (wrong identation) Roberto Ierusalimschy 2011-09-30 09:45:45 -03:00
  • e24f1ee9ff lint (unreachable code) Roberto Ierusalimschy 2011-09-30 09:44:45 -03:00
  • f3b0eb3ecf lint (unused macros) Roberto Ierusalimschy 2011-09-30 09:44:19 -03:00
  • 162ce8256e lint (unused struct field) Roberto Ierusalimschy 2011-09-30 09:43:54 -03:00
  • ad90447eb6 detail: new macros for non-valid values Roberto Ierusalimschy 2011-09-26 17:17:27 -03:00
  • 87912786af dead objects are not collectable. Roberto Ierusalimschy 2011-09-24 18:12:01 -03:00
  • 5645a84368 detail about 'trick' function (nil turn it off) Roberto Ierusalimschy 2011-09-24 18:11:29 -03:00
  • 95ed6c1127 better(?) scheme for cleaning weak tables; all ressurected objects are removed from weak values before finalization Roberto Ierusalimschy 2011-09-24 18:00:40 -03:00
  • 12ab78aca6 detail in extra trace code: total bytes is given by 'gettotalbytes', not by 'totalbytes' counter. Roberto Ierusalimschy 2011-09-20 16:25:23 -03:00
  • 45c346645c avoid clearing ephemeron tables that have nothing to be cleaned (no white elements) Roberto Ierusalimschy 2011-09-19 14:03:38 -03:00
  • 68ce878292 cannot compute 'mainposition' before checking whether key is nil Roberto Ierusalimschy 2011-09-15 14:09:02 -03:00
  • 500336efd0 small bug in if-goto optimization: block must be closed ('leaveblock') *before* the jump out ('escapelist') Roberto Ierusalimschy 2011-09-14 14:40:26 -03:00
  • 5ea8f108e1 using 'long' versions of 'fseek'/'ftell' when available Roberto Ierusalimschy 2011-09-13 18:09:04 -03:00