Roberto Ierusalimschy
|
1aa5262634
do not assume numbers are coercible to strings
|
преди 11 години |
Roberto Ierusalimschy
|
3ccbae84d2
added some casts between integral types (to avoid warnings)
|
преди 11 години |
Roberto Ierusalimschy
|
68616c6669
using lua_Unsigned (instead of lua_Integer) for bit manipulation
|
преди 11 години |
Roberto Ierusalimschy
|
3d4913f703
back to larger sizes for 'dumpint/undumpint' (small Lua should
|
преди 11 години |
Roberto Ierusalimschy
|
a2c094fe2d
size of strings in 'string.rep' should be limited by the size of
|
преди 11 години |
Roberto Ierusalimschy
|
ef789d4161
new global macro 'LUA_MAXUNSIGNED'
|
преди 11 години |
Roberto Ierusalimschy
|
115fa77009
maximum size for dump of integers is size of lua_Integer (which
|
преди 11 години |
Roberto Ierusalimschy
|
561030c211
pack/unpack functions renamed dump/undump
|
преди 11 години |
Roberto Ierusalimschy
|
48c745a611
avoid constant overflow when shifting left signed integers until
|
преди 11 години |
Roberto Ierusalimschy
|
8ef9117924
fancier way to do sign extension
|
преди 11 години |
Roberto Ierusalimschy
|
420cc62fac
missplelling in comments/function names (endianess -> endianness)
|
преди 11 години |
Roberto Ierusalimschy
|
2d5e2212d4
native lua_Number may be neither float nor double (in pack/unpackfloat)
|
преди 11 години |
Roberto Ierusalimschy
|
da4811238a
details (typos in comments)
|
преди 11 години |
Roberto Ierusalimschy
|
ad40bb1181
detail in string.rep: allow large repetitions of the empty string (no
|
преди 11 години |
Roberto Ierusalimschy
|
6318de80d3
added 'strip' parameter to lua_dump/string.dump
|
преди 11 години |
Roberto Ierusalimschy
|
916bd874ad
added explicit default options to string.pack/unpack functions
|
преди 11 години |
Roberto Ierusalimschy
|
cd848cab6b
first implementation for string.pack/unpackfloat + try not to assume
|
преди 11 години |
Roberto Ierusalimschy
|
29256e8960
first implementation of string.packint/string.unpackint
|
преди 11 години |
Roberto Ierusalimschy
|
7c4cc505db
added "reasonable" limit for 'string.rep' (otherwise it is too easy
|
преди 12 години |
Roberto Ierusalimschy
|
55f566bd22
use lua_Integer for integer parameters to avoid truncation
|
преди 12 години |
Roberto Ierusalimschy
|
c5069528e1
details ('Type* id' -> 'Type *id')
|
преди 12 години |
Roberto Ierusalimschy
|
944709c77b
more definitions to support integer formatting
|
преди 12 години |
Roberto Ierusalimschy
|
53480f1163
details (remove of some extra spaces)
|
преди 13 години |
Roberto Ierusalimschy
|
6625cbecd1
Bug: Some patterns can overflow the C stack, due to recursion
|
преди 13 години |
Roberto Ierusalimschy
|
054c20cd5b
spaces -> tabs in #defines
|
преди 13 години |
Roberto Ierusalimschy
|
048be9cf27
different scheme to check arguments to '%d', '%x', etc. Old scheme
|
преди 13 години |
Roberto Ierusalimschy
|
462375ba47
'if' to avoid empty 'memcpy' (may be expensive)
|
преди 13 години |
Roberto Ierusalimschy
|
f1d2ac3a98
allow non-integer arguments to integer formats (%d, %x, etc.),
|
преди 13 години |
Roberto Ierusalimschy
|
5a568a3b01
detail (comment)
|
преди 13 години |
Roberto Ierusalimschy
|
b5bf7d9ef4
'string.format' checks whether values for integer formats are
|
преди 14 години |