Commit Graph

4350 Commits

Author SHA1 Message Date
Roberto Ierusalimschy
6f6fd96e3b new type lua_KFunction + no more 'lua_getctx' 2014-06-10 14:41:38 -03:00
Roberto Ierusalimschy
35a6aad0d7 added comments 2014-06-09 13:32:18 -03:00
Roberto Ierusalimschy
23f0ff9517 lots of janitor work (including comments) + 'arg' table created
before running any script + changes in the parameters and return
of 'collectargs'
2014-06-05 17:42:06 -03:00
Roberto Ierusalimschy
355037528c 'math.mof' works with integers, too 2014-06-02 20:09:28 -03:00
Roberto Ierusalimschy
9e68c047ae 'assert' does not assume that the error object is a string 2014-06-02 00:06:26 -03:00
Roberto Ierusalimschy
e9d86eddf3 if numeral overflows the reading buffer, signal it as invalid input
(resulting in nil)
2014-06-02 00:00:51 -03:00
Roberto Ierusalimschy
11aefa4478 details (comments) 2014-06-01 21:03:16 -03:00
Roberto Ierusalimschy
5ebdd326b6 detail (to avoid warnings of unused variable) 2014-05-29 16:30:07 -03:00
Roberto Ierusalimschy
84db17b6fc more "religious" definition for 'lua_numtointeger' 2014-05-27 10:59:03 -03:00
Roberto Ierusalimschy
456806f25c no more 'math.ifloor' + new semantics for 'math.floor'/'math.ceil' 2014-05-26 14:13:52 -03:00
Roberto Ierusalimschy
c98f195eb9 function 'luaV_numtointeger' changed to a global macro
'lua_numtointeger' (tricky, small, and useful in several places)
2014-05-26 14:10:22 -03:00
Roberto Ierusalimschy
4d696c45b9 simpler handling of 'GCScallfin' state + more comments 2014-05-25 16:08:32 -03:00
Roberto Ierusalimschy
36715ab7c1 detail (comment) 2014-05-23 15:32:21 -03:00
Roberto Ierusalimschy
e966e53791 no more use of 'scanf' for reading numbers 2014-05-21 12:24:21 -03:00
Roberto Ierusalimschy
c4eff10322 small improvements concerning 'check_next' 2014-05-21 12:22:02 -03:00
Roberto Ierusalimschy
8a0acf0898 comments 2014-05-20 11:12:59 -03:00
Roberto Ierusalimschy
e2be310a85 better(?) implementation for 'pcall'/'xpcall' (regarding the insertion
of the boolean first result)
2014-05-16 15:54:01 -03:00
Roberto Ierusalimschy
17159b491c more direct implementation of 'table.pack' 2014-05-16 15:53:25 -03:00
Roberto Ierusalimschy
0aa32fa0cb small changes in field order in some structs to reduce padding 2014-05-15 17:41:27 -03:00
Roberto Ierusalimschy
8927c14317 removed macro 'luai_checknum' (as NaN trick is not doable now) 2014-05-15 17:28:39 -03:00
Roberto Ierusalimschy
3e977f02ac added a few comments 2014-05-15 17:08:32 -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
6a5d87771f added lots of new comments + small changes in code 2014-05-15 16:27:33 -03:00
Roberto Ierusalimschy
15e8405731 'LUA_COMPAT_ALL' -> 'LUA_COMPAT_5_1'/'LUA_COMPAT_5_2' + "@*" in
comments replaced by "@@". ("@*" is too distracting)
2014-05-15 12:24:32 -03:00
Roberto Ierusalimschy
fd1672ba98 avoid non-conformant pointer arithmetic in api check for 'lua_rotate' 2014-05-15 12:22:45 -03:00
Roberto Ierusalimschy
1ddb251d86 using a more conventional handling of stack space in 'io_readline' 2014-05-15 12:21:06 -03:00
Roberto Ierusalimschy
f8daddba50 added a compat option (although it will be off by default) to
the addition of '.0' to float->string conversions
2014-05-14 16:47:11 -03:00
Roberto Ierusalimschy
e58ef8d0bb missing macro 'LUAMOD_API' in function to open library 2014-05-14 15:33:37 -03:00
Roberto Ierusalimschy
e3b9569e04 function 'reverse' uses appropriate variants of 'setobj' for better
documentation
2014-05-14 15:32:30 -03:00
Roberto Ierusalimschy
8b66040e34 several functions deprecated (cosh, sinh, atanh, pow, frexp, ldexp) 2014-05-14 13:59:27 -03:00
Roberto Ierusalimschy
965993da07 comments added to 'lua_rotate' 2014-05-14 11:20:17 -03:00
Roberto Ierusalimschy
5a5a834975 new API function 'lua_rotate' 2014-05-13 16:40:28 -03:00
Roberto Ierusalimschy
45c430eac0 addition of '.0' to float representation done by the kernel 2014-05-12 18:44:17 -03:00
Roberto Ierusalimschy
27d9219cf3 no more integer exponentiation 2014-05-12 18:22:05 -03:00
Roberto Ierusalimschy
12bd01c567 added comments to several functions 2014-05-12 16:13:32 -03:00
Roberto Ierusalimschy
626124d2d8 old POSIX systems need '<sys/types.h>' for 'off_t' 2014-05-11 11:46:19 -03:00
Roberto Ierusalimschy
5018104a60 better error message for unfinished long strings/comments 2014-05-11 11:45:43 -03:00
Roberto Ierusalimschy
ec11d132db comments 2014-05-11 10:03:48 -03:00
Roberto Ierusalimschy
06dc893f88 in 'for' loops, make the limit an integer whenever initial value and
step are integers
2014-05-09 11:20:52 -03:00
Roberto Ierusalimschy
a09bd59615 'T.totalmem' accepts 0 for unlimited memory 2014-05-08 16:08:46 -03:00
Roberto Ierusalimschy
42ff788e53 comments 2014-05-08 15:58:46 -03:00
Roberto Ierusalimschy
1bd70a8e40 new function 'lua_isyieldable' (and 'coroutine.isyieldable') 2014-05-08 10:52:20 -03:00
Roberto Ierusalimschy
ef83457427 updated several 'fix' fields 2014-05-07 13:57:27 -03:00
Roberto Ierusalimschy
4833fb8273 marks for releases 5.2.2 and 5.2.3 + correction in last bug's description 2014-05-07 13:35:24 -03:00
Roberto Ierusalimschy
77e7ebca0a better alignments (for 64-bit arquitectures) for structures 'Table' and
'TString'
2014-05-07 08:12:51 -03:00
Roberto Ierusalimschy
6d5324f92f 'math.fmod' handles integers as integers 2014-05-02 13:36:51 -03:00
Roberto Ierusalimschy
4fe11ae232 'lua_getuservalue' returns type of user value 2014-05-01 15:21:32 -03:00
Roberto Ierusalimschy
c549d4fe64 'lua_strtonum' (and 'luaO_str2num') now return string size, instead of
receiving it
2014-05-01 15:18:06 -03:00
Roberto Ierusalimschy
ddff6ecf30 function 'limittointeger' no needed (now that 'tointeger_aux' handles
integers too)
2014-04-30 16:29:51 -03:00
Roberto Ierusalimschy
6b630c0fa0 debug.numbits replaced by debug.Csize 2014-04-30 15:59:15 -03:00