Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Back to old encoding of versions in binary files | Roberto Ierusalimschy | 2020-05-06 | 1 | -1/+1 |
| | | | | | | (Undoing part of commit f53eabeed8.) It is better to keep this encoding stable, so that all Lua versions can read at least the version of a binary file. | ||||
* | Fixed warning about casts between function pointers | Roberto Ierusalimschy | 2020-04-29 | 1 | -1/+8 |
| | | | | | | gcc now warns (with -Wextra) about casts between pointers to different function types. The type 'void(*)(void)' works as a 'void*' for function pointers, cleaning the warning. | ||||
* | Several details about 5.4.0 rc1 | Roberto Ierusalimschy | 2020-04-23 | 1 | -2/+0 |
| | | | | | Corrected several small details: added 'const', adjusts in tabs x spaces, removed unused #includes and #defines, misspellings, etc. | ||||
* | Change in the prefix of messages from searchers | Roberto Ierusalimschy | 2019-10-24 | 1 | -5/+9 |
| | | | | | | The initial "\n\t" to properly indent a searcher message is being added by 'findloader' when building the error message, instead of being included in the original message by each searcher itself. | ||||
* | Fixed a warning and other minor issues | Roberto Ierusalimschy | 2019-10-04 | 1 | -1/+1 |
| | | | | Fixed some minor issues from the feedback for 5.4-beta rc1. | ||||
* | Added macro 'luaL_pushfail' | Roberto Ierusalimschy | 2019-08-16 | 1 | -4/+4 |
| | | | | | | | | The macro 'luaL_pushfail' documents all places in the standard libraries that return nil to signal some kind of failure. It is defined as 'lua_pushnil'. The manual also got a notation (@fail) to document those returns. The tests were changed to be agnostic regarding whether 'fail' is 'nil' or 'false'. | ||||
* | Avoid using addresses of static variables as unique keys | Roberto Ierusalimschy | 2019-07-19 | 1 | -6/+5 |
| | | | | | | The addresses of static variables may be different for different instances of Lua, making these instances incompatible if they use these addresses as unique keys in the registry (or other tables). | ||||
* | Details (typos in comments) | Roberto Ierusalimschy | 2019-07-05 | 1 | -1/+1 |
| | |||||
* | Avoid the creation of too many strings in 'package' | Roberto Ierusalimschy | 2019-05-03 | 1 | -31/+58 |
| | | | | | | | | | Both when setting a path and searching for a file ('searchpath'), this commit reduces the number of intermediate strings created in Lua. (For setting a path the change is not relevant, because this is done only twice when loading the module. Anyway, it is a nice example of how to use auxlib buffers to manipulate strings in the C API.) | ||||
* | 'require' returns where module was found | Roberto Ierusalimschy | 2019-04-17 | 1 | -6/+17 |
| | | | | | The function 'require' returns the *loader data* as a second result. For file searchers, this data is the path where they found the module. | ||||
* | Removed extra information from RCS keyword strings | Roberto Ierusalimschy | 2018-08-23 | 1 | -1/+1 |
| | | | | | Version numbers and dates (mostly wrong) from RCS keyword strings removed from all source files; only the file name are kept. | ||||
* | 'searchpath' creates less temporary strings | Roberto Ierusalimschy | 2018-07-09 | 1 | -18/+34 |
| | | | | | | | When creating error messages, package loaders may create dozens of temporary strings (one or more for each tried template). This change reduces the number of these strings, and avoid creating some of them if the search is successful. | ||||
* | removed compatibility code with older versions | Roberto Ierusalimschy | 2018-02-27 | 1 | -94/+1 |
| | |||||
* | Code should not change the stack level after the initialization of a | Roberto Ierusalimschy | 2017-12-13 | 1 | -3/+3 |
| | | | | string buffer. | ||||
* | Handling of LUA_PATH/LUA_CPATH moved back to 'package' library | Roberto Ierusalimschy | 2017-01-12 | 1 | -5/+92 |
| | | | | to avoid incompatibilites with previous releases | ||||
* | using constants for "_LOADED" and "PRELOAD" | Roberto Ierusalimschy | 2016-12-04 | 1 | -9/+9 |
| | |||||
* | Handling of LUA_PATH/LUA_CPATH moved from package library to stand | Roberto Ierusalimschy | 2016-07-18 | 1 | -89/+5 |
| | | | | | alone interpreter (so that 'lua.c' concentrates all handling of environment variables) | ||||
* | details (comments) | Roberto Ierusalimschy | 2015-11-23 | 1 | -2/+2 |
| | |||||
* | detail ('fopen' needs 'stdio.h') | Roberto Ierusalimschy | 2015-02-16 | 1 | -1/+2 |
| | |||||
* | typo in comment | Roberto Ierusalimschy | 2015-01-13 | 1 | -3/+3 |
| | |||||
* | new macro 'cast_func' adds '__extension__' (in gnu compilers) when | Roberto Ierusalimschy | 2015-01-05 | 1 | -2/+14 |
| | | | | converting void* to function, to avoid warnings | ||||
* | uses return value from lua_getfield | Roberto Ierusalimschy | 2014-11-12 | 1 | -3/+3 |
| | |||||
* | using address instead of string for key for table 'CLIBS' in the | Roberto Ierusalimschy | 2014-11-10 | 1 | -6/+10 |
| | | | | registry | ||||
* | keep "#include <windows.h>" in this file, but without the | Roberto Ierusalimschy | 2014-11-03 | 1 | -1/+3 |
| | | | | | previous requirement that it must be included before any other header file (it doesn't seem to matter) | ||||
* | added include for 'lprefix.h', for stuff that must be added before | Roberto Ierusalimschy | 2014-11-02 | 1 | -11/+4 |
| | | | | any other header file | ||||
* | comments | Roberto Ierusalimschy | 2014-10-27 | 1 | -5/+5 |
| | |||||
* | `name' in comments changed to 'name' | Roberto Ierusalimschy | 2014-10-25 | 1 | -5/+5 |
| | |||||
* | macros 'LUA_QL'/'LUA_QL' deprecated | Roberto Ierusalimschy | 2014-10-17 | 1 | -11/+8 |
| | |||||
* | added some casts between integral types (to avoid warnings) | Roberto Ierusalimschy | 2014-07-29 | 1 | -2/+2 |
| | |||||
* | some janitorial work (comments, small refactoring) | Roberto Ierusalimschy | 2014-07-28 | 1 | -45/+96 |
| | |||||
* | detail (added placeholders for non-function fields to preallocate | Roberto Ierusalimschy | 2014-07-16 | 1 | -1/+7 |
| | | | | space for them) | ||||
* | lua_gettable and similars return type of gotten value | Roberto Ierusalimschy | 2014-03-12 | 1 | -10/+6 |
| | |||||
* | detail (changing some names of macros) | Roberto Ierusalimschy | 2013-10-07 | 1 | -10/+10 |
| | |||||
* | typos in comments | Roberto Ierusalimschy | 2012-05-30 | 1 | -3/+3 |
| | |||||
* | detail (separate code to create 'searchers' table into a new function) | Roberto Ierusalimschy | 2012-04-26 | 1 | -12/+15 |
| | |||||
* | bug: C libraries must be unloaded after all other finalizers have run, | Roberto Ierusalimschy | 2012-04-11 | 1 | -33/+41 |
| | | | | because a finalizer may use a C function from a C library | ||||
* | new way to handle -E option (write a mark in the registry to avoidv5.2.0 | Roberto Ierusalimschy | 2011-12-12 | 1 | -2/+15 |
| | | | | reading environment variables) | ||||
* | comments | Roberto Ierusalimschy | 2011-11-30 | 1 | -5/+5 |
| | |||||
* | explicit option RTLD_LOCAL instead of 0 (Posix does not fix | Roberto Ierusalimschy | 2011-11-28 | 1 | -2/+2 |
| | | | | a default for dlopen) | ||||
* | 'LUA_DL_DLL' is not yet defined before the inclusion of 'lua.h' | Roberto Ierusalimschy | 2011-11-25 | 1 | -2/+2 |
| | |||||
* | using Lua buffers to build error messages | Roberto Ierusalimschy | 2011-11-10 | 1 | -9/+9 |
| | |||||
* | create error messages with a single concat, to avoid problems with | Roberto Ierusalimschy | 2011-11-09 | 1 | -20/+33 |
| | | | | creating strings piecemeal | ||||
* | configurable 'directory separator' in 'package.searchpath' | Roberto Ierusalimschy | 2011-11-09 | 1 | -11/+34 |
| | |||||
* | avoid calling "extra value" as if it were a function option | Roberto Ierusalimschy | 2011-11-06 | 1 | -4/+6 |
| | |||||
* | removed and deprecated functions really removed from the code base | Roberto Ierusalimschy | 2011-07-05 | 1 | -12/+5 |
| | |||||
* | 'package.loaders' -> 'package.searchers' | Roberto Ierusalimschy | 2011-06-28 | 1 | -24/+28 |
| | |||||
* | 'luaL_findtable' -> 'luaL_getsubtable' | Roberto Ierusalimschy | 2011-04-08 | 1 | -3/+3 |
| | |||||
* | loaders receive an extra argument returned by the searcher | Roberto Ierusalimschy | 2011-03-01 | 1 | -23/+32 |
| | | | | (typically the file name) | ||||
* | trying to avoid assumption that sizeof(char)==1 | Roberto Ierusalimschy | 2011-02-07 | 1 | -2/+2 |
| | |||||
* | optional argument 'sep' to 'searchpath' | Roberto Ierusalimschy | 2011-01-07 | 1 | -5/+9 |
| |