Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Details | Roberto Ierusalimschy | 2024-09-06 | 1 | -16/+16 |
| | | | | Identation + comments | ||||
* | '-Wconversion' extended to all options of Lua numbers | Roberto Ierusalimschy | 2024-07-27 | 1 | -3/+3 |
| | |||||
* | Added gcc option '-Wconversion' | Roberto Ierusalimschy | 2024-07-27 | 1 | -2/+2 |
| | | | | | No warnings for standard numerical types. Still pending alternative numerical types. | ||||
* | llimits.h being used by all Lua code | Roberto Ierusalimschy | 2024-06-20 | 1 | -16/+8 |
| | | | | | | 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. | ||||
* | utf8.offset returns also final position of character | Roberto Ierusalimschy | 2024-05-27 | 1 | -6/+14 |
| | | | | | 'utf8.offset' returns two values: the initial and the final position of the given character. | ||||
* | Bug: 'utf8.codes' accepts spurious continuation bytes | Roberto Ierusalimschy | 2022-09-23 | 1 | -11/+16 |
| | |||||
* | Avoid overflows when incrementing parameters in C | Roberto Ierusalimschy | 2021-09-22 | 1 | -7/+4 |
| | | | | | | Any C function can receive maxinteger as an integer argument, and therefore cannot increment it without some care (e.g., doing unsigned arithmetic as the core does). | ||||
* | Details (more uniformity in error messages) | Roberto Ierusalimschy | 2020-05-27 | 1 | -5/+5 |
| | |||||
* | Added 'simplesect' sections to the manual | Roberto Ierusalimschy | 2020-04-13 | 1 | -1/+1 |
| | | | | | | | 'simplesect' encloses the introductory text of sections with subsections, so that each section either is all text or is all subsections. (This commit also corrects a small brace error in the manual and extra spaces/tabs in some other files.) | ||||
* | Added macro 'luaL_pushfail' | Roberto Ierusalimschy | 2019-08-16 | 1 | -2/+2 |
| | | | | | | | | 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'. | ||||
* | A few changes in tests about number of bits in integers | Roberto Ierusalimschy | 2019-05-13 | 1 | -1/+1 |
| | | | | | | - The preprocessor must work with at least 'long', and therefore must do shifts of up to 31 bits correctly. - Whenever possible, use unsigned types in shifts. | ||||
* | Some improvements in 'luaconf.h' | Roberto Ierusalimschy | 2019-05-13 | 1 | -1/+1 |
| | | | | | Added '#if !defined' in some definitions to allow external definitions; more comments; other small changes. | ||||
* | Name 'nonstrict' in the UTF-8 library changed to 'lax' | Roberto Ierusalimschy | 2019-03-19 | 1 | -9/+9 |
| | | | | | It is not a good idea to use negative words to describe boolean values. (When we negate that boolean we create a double negative...) | ||||
* | Changes in the validation of UTF-8 | Roberto Ierusalimschy | 2019-03-15 | 1 | -27/+49 |
| | | | | | | | | | | | All UTF-8 encoding functionality (including the escape sequence '\u') accepts all values from the original UTF-8 specification (with sequences of up to six bytes). By default, the decoding functions in the UTF-8 library do not accept invalid Unicode code points, such as surrogates. A new parameter 'nonstrict' makes them accept all code points up to (2^31)-1, as in the original UTF-8 specification. | ||||
* | Avoid using 'int' for UTF-8 values | Roberto Ierusalimschy | 2018-07-12 | 1 | -11/+22 |
| | | | | | | An 'int' may have only 16 bits, so it may not be big enough for UTF-8 values. The new type 'utfint' (in the utf8 library) ensures at least 21 bits for those values. | ||||
* | added 'return' to calls to 'luaL_error' (to signal to the compiler | Roberto Ierusalimschy | 2017-03-14 | 1 | -2/+2 |
| | | | | that the function cannot continue past that call) | ||||
* | detail (removing spaces at end of lines) | Roberto Ierusalimschy | 2016-12-22 | 1 | -2/+2 |
| | |||||
* | details (avoid some 'lint' warnings) | Roberto Ierusalimschy | 2015-03-28 | 1 | -5/+6 |
| | |||||
* | avoid using 'lua_pushliteral' in a non-zero-terminated string | Roberto Ierusalimschy | 2015-03-05 | 1 | -2/+2 |
| | |||||
* | added include for 'lprefix.h', for stuff that must be added before | Roberto Ierusalimschy | 2014-11-02 | 1 | -4/+6 |
| | | | | any other header file | ||||
* | 'charpatt' -> 'charpattern' | Roberto Ierusalimschy | 2014-10-15 | 1 | -3/+3 |
| | |||||
* | better to use 'long' to represent UTF-8 code points | Roberto Ierusalimschy | 2014-10-01 | 1 | -4/+4 |
| | |||||
* | detail (added placeholders for non-function fields to preallocate | Roberto Ierusalimschy | 2014-07-16 | 1 | -1/+3 |
| | | | | space for them) | ||||
* | missing macro 'LUAMOD_API' in function to open library | Roberto Ierusalimschy | 2014-05-14 | 1 | -2/+2 |
| | |||||
* | details in comments | Roberto Ierusalimschy | 2014-04-11 | 1 | -5/+6 |
| | |||||
* | several changes in 'utf8.offset' | Roberto Ierusalimschy | 2014-04-03 | 1 | -22/+27 |
| | |||||
* | new implementation for 'utf8.len' | Roberto Ierusalimschy | 2014-04-02 | 1 | -13/+18 |
| | |||||
* | some details to avoid warnings | Roberto Ierusalimschy | 2014-04-01 | 1 | -2/+2 |
| | |||||
* | detail (to avoid warnings with '-O3') | Roberto Ierusalimschy | 2014-03-20 | 1 | -3/+3 |
| | |||||
* | 'posrelat' -> 'u_posrelat' (to avoid name conflict in 'one.c') | Roberto Ierusalimschy | 2014-03-20 | 1 | -6/+6 |
| | |||||
* | added proper headers for a standard lib file | Roberto Ierusalimschy | 2014-02-06 | 1 | -4/+11 |
| | |||||
* | new library: utf8 | Roberto Ierusalimschy | 2014-02-06 | 1 | -0/+233 |