Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Renaming two new functions | Roberto Ierusalimschy | 2025-01-27 | 1 | -1/+1 |
| | | | | | 'lua_numbertostrbuff' -> 'lua_numbertocstring' 'lua_pushextlstring' -> 'lua_pushexternalstring' | ||||
* | Added gcc option '-Wconversion' | Roberto Ierusalimschy | 2024-07-27 | 1 | -4/+4 |
| | | | | | No warnings for standard numerical types. Still pending alternative numerical types. | ||||
* | Small changes in casts from void* to functions | Roberto Ierusalimschy | 2024-07-02 | 1 | -22/+6 |
| | | | | | | Macro moved to llimits.h, and casts from void* to lua_CFunction first go through 'voidf' (a pointer to a function from void to void), a kind of void* for functions. | ||||
* | llimits.h being used by all Lua code | Roberto Ierusalimschy | 2024-06-20 | 1 | -0/+1 |
| | | | | | | The definitions in llimits.h are useful not only for the core. That header only defines types and '#define's, so libs and core still do not share any real code/data. | ||||
* | Small simplification in 'findloader' | Roberto Ierusalimschy | 2024-04-03 | 1 | -5/+4 |
| | | | | | Instead of allways adding a prefix for the next message, and then removing it if there is no message, add the prefix after each message. | ||||
* | Default paths stored as external strings | Roberto Ierusalimschy | 2023-11-13 | 1 | -2/+3 |
| | |||||
* | Option '-l' discards version sufix from file name | Roberto Ierusalimschy | 2023-05-15 | 1 | -9/+0 |
| | | | | | | Like 'require', the command-line option '-l' discards an optional version suffix (everything after an hyphen) from a file name when creating the module name. | ||||
* | Details | Roberto Ierusalimschy | 2022-04-01 | 1 | -2/+7 |
| | | | | | Comments + manual + identation + asserts about stack limits that were not allowing the use of the full stack | ||||
* | Broadening the use of branch hints | Roberto Ierusalimschy | 2021-02-24 | 1 | -7/+10 |
| | | | | | | More uses of macros 'likely'/'unlikely' (renamed to 'l_likely'/'l_unlikely'), both in range (extended to the libraries) and in scope (extended to hooks, stack growth). | ||||
* | 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 |
| |