Commit Graph

31 Commits

Author SHA1 Message Date
Roberto Ierusalimschy
063d4e4543 Lua 5.3.5 ported to git
This is the first commit for the branch Lua 5.3. All source files
were copied from the official distribution of 5.3.5 in the Lua site.
The test files are the same of 5.3.4. The manual came from the
previous RCS repository, revision 1.167.1.2.
2018-12-17 14:46:37 -02:00
Roberto Ierusalimschy
330d426ffd avoid the use of deprecated functions 'luaL_checkunsigned'/
'lua_pushunsigned'
2015-11-11 17:08:09 -02:00
Roberto Ierusalimschy
1a741157cb avoid (undefined behavior) integer 'overflow' in left shift 2015-10-08 12:55:35 -03:00
Roberto Ierusalimschy
28fdbcf393 added include for 'lprefix.h', for stuff that must be added before
any other header file
2014-11-02 17:19:04 -02:00
Roberto Ierusalimschy
798660c9cd deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.) 2014-10-01 08:54:56 -03:00
Roberto Ierusalimschy
a73da6112d deprecated library throws an error if called (instead of silently
not loading itself)
2014-05-15 16:28:34 -03:00
Roberto Ierusalimschy
363b525c23 does not create library when it is deprecated 2014-03-20 16:22:16 -03:00
Roberto Ierusalimschy
282d67d8fc bitlib has been deprecated 2014-03-18 15:27:08 -03:00
Roberto Ierusalimschy
5c9cb5f0b1 detail (comment) 2014-02-26 09:38:18 -03:00
Roberto Ierusalimschy
2ef9bcfd11 avoid undefined shift of LUA_NBITS in rotate operation 2013-07-09 15:31:01 -03:00
Roberto Ierusalimschy
5fa680d47f no need for type 'b_uint' (lua_Unsigned must have at least 32 bits) 2013-07-09 14:49:50 -03:00
Roberto Ierusalimschy
de6e5a5919 small bugs uncovered in a 64-bit machine (where 'long' has 64 bits) 2013-06-21 14:27:24 -03:00
Roberto Ierusalimschy
44358e0206 extra trim applied to 'replace' argument (in case lua_Unsigned is
larger than 32 bits)
2013-04-16 15:39:37 -03:00
Roberto Ierusalimschy
e3a7104b40 detail (avoiding warnings) 2013-03-19 10:19:12 -03:00
Roberto Ierusalimschy
a83ed55f1e added 'return' (when possible) to calls to error functions 2013-02-21 10:44:53 -03:00
Roberto Ierusalimschy
f90a130b07 typo in message 2011-06-20 13:35:23 -03:00
Roberto Ierusalimschy
1a92c2b354 allows number of bits used by the library to be changed from outside 2010-12-17 11:26:38 -02:00
Roberto Ierusalimschy
7ca1bd639f new functions 'extract' and 'replace' 2010-11-29 13:19:28 -02:00
Roberto Ierusalimschy
a64cf8fac9 'test' -> 'btest' 2010-11-22 16:06:33 -02:00
Roberto Ierusalimschy
092fa71ddd conventional names for bitwise operators 2010-11-22 14:39:20 -02:00
Roberto Ierusalimschy
c7d4da8746 correction to allow lua_Unsigned larger than usigned int 2010-11-08 14:31:22 -02:00
Roberto Ierusalimschy
f39034889d stricter control over number of bits in each operation 2010-10-28 13:17:29 -02:00
Roberto Ierusalimschy
572e5e6b28 new names for bit functions (mimicking assembler) 2010-10-27 14:50:32 -02:00
Roberto Ierusalimschy
c6b64ffe65 new type lua_Unsigned and corresponding projection/injection functions 2010-10-25 18:31:11 -02:00
Roberto Ierusalimschy
9e8e60dd5f bitlib renamed to 'bit32' + new function for arithmetic shift 2010-10-25 12:32:36 -02:00
Roberto Ierusalimschy
a9dc7c8828 functions lua_tonumber/lua_tointeger replaced by lua_tonumberx/lua_tointegerx
that have an extra out parameter with conversion status
2010-07-02 14:35:06 -03:00
Roberto Ierusalimschy
7192afafee new module policy: C modules do not create globals and do not register
themselves with 'require' (let 'require' do its work); new auxiliary
functions luaL_newlib/luaL_newlibtable/luaL_setfuncs/luaL_requiref.
Old luaL_register will be deprecated.
2010-07-02 08:38:13 -03:00
Roberto Ierusalimschy
af512ad6da use of 'conventional' names for shift and rotate operations +
right/left versions for them
2010-02-11 13:55:29 -02:00
Roberto Ierusalimschy
91f0b20a0e missing standard defines 2010-01-12 17:40:02 -02:00
Roberto Ierusalimschy
a6f465f558 new mark LUAMOD_API for all luaopen_* functions 2009-11-24 10:05:44 -02:00
Roberto Ierusalimschy
88564c3aec Standard library for bitwise operations 2009-07-01 13:17:08 -03:00