Roberto Ierusalimschy
|
c3e9b14d24
'\0' is a control character, no need to check it explicitly
|
9 年 前 |
Roberto Ierusalimschy
|
c25d59a6bd
format "%s" in 'string.format' accepts embedded zeros when it
|
9 年 前 |
Roberto Ierusalimschy
|
3feb702df8
ensure argument to 'string.format("%s")' does not contain zeros
|
9 年 前 |
Roberto Ierusalimschy
|
789e423b32
corrected comparisons of signed (int) with unsigned (size_t)
|
9 年 前 |
Roberto Ierusalimschy
|
cc3a42b190
option 'c' in 'string.pack' accepts any string size (truncating
|
9 年 前 |
Roberto Ierusalimschy
|
880df57e52
detail (removed unreacheable 'break')
|
9 年 前 |
Roberto Ierusalimschy
|
10fffcd80a
'gmatch' keeps its state in a userdata (keeping the same 'MatchState'
|
9 年 前 |
Roberto Ierusalimschy
|
8264dbc2bb
implemented counter to abort non-linear behavior in pattern matching
|
9 年 前 |
Roberto Ierusalimschy
|
5273477cb9
in 'lua_number2strx', use the call to 'l_sprintf' to add exponent
|
10 年 前 |
Roberto Ierusalimschy
|
5aabb7a891
buffer size changed from size_t to int (it is always small) +
|
10 年 前 |
Roberto Ierusalimschy
|
19eb6ae580
using 'snprintf' in C99 (both for documentation of buffer sizes
|
10 年 前 |
Roberto Ierusalimschy
|
99391e24ea
new configuration macro 'l_mathlim' (simplifies some dependencies
|
10 年 前 |
Roberto Ierusalimschy
|
48d0674c2e
more consistent use of locale radix character across Lua
|
10 年 前 |
Roberto Ierusalimschy
|
e723c75c02
details (avoid 'lint' warnings)
|
10 年 前 |
Roberto Ierusalimschy
|
2a57d2346e
detail
|
10 年 前 |
Roberto Ierusalimschy
|
5e8c162b6c
detail
|
10 年 前 |
Roberto Ierusalimschy
|
b7dfd18612
make buffer for format specification a little larger (length modifier
|
10 年 前 |
Roberto Ierusalimschy
|
8efcd411fe
own implementation for 'string.format("%a")' for C89 platforms
|
10 年 前 |
Roberto Ierusalimschy
|
3509914916
BUG (when compiled with long double): buffer overflow when formatting
|
10 年 前 |
Roberto Ierusalimschy
|
57e91b4159
correct computation for limit in 'getnum'
|
10 年 前 |
Roberto Ierusalimschy
|
ef7d29c666
better limits for 'sting.rep' and 'string.packsize'
|
10 年 前 |
Roberto Ierusalimschy
|
5c519a69d3
new function 'string.packsize'
|
10 年 前 |
Roberto Ierusalimschy
|
32a1f54b9a
no more default size for option 'c' in pack/unpack
|
10 年 前 |
Roberto Ierusalimschy
|
b401d37188
detail (to avoid a "to avoid warnings" return)
|
10 年 前 |
Roberto Ierusalimschy
|
74e10b9c3b
details (error messages)
|
10 年 前 |
Roberto Ierusalimschy
|
50b18f60cb
detail
|
10 年 前 |
Roberto Ierusalimschy
|
ad73e5156e
more direct way to fill sign-extension extra bytes when packing
|
10 年 前 |
Roberto Ierusalimschy
|
cfabcbfb17
added macro for configuring padding value in 'string.pack'
|
10 年 前 |
Roberto Ierusalimschy
|
28fdbcf393
added include for 'lprefix.h', for stuff that must be added before
|
10 年 前 |
Roberto Ierusalimschy
|
dcfc3c9405
new option '=' (native endian) for pack/unpack
|
10 年 前 |