aboutsummaryrefslogtreecommitdiff
path: root/lmathlib.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-04-11diff for last bug was against wrong versionRoberto Ierusalimschy1-3/+3
2016-04-08'string.format"%q"' now works for all basic types (nil, boolean,Roberto Ierusalimschy1-6/+36
numbers, and strings)
2016-04-07LUA_PACKPADBYTE -> LUAL_PACKPADBYTE (it is an internal libraryRoberto Ierusalimschy1-6/+6
name, not something to be usually configured)
2016-03-31new way to avoid infinite loops in empty matches: "Python rule"Roberto Ierusalimschy1-8/+8
("Empty matches for the pattern are replaced only when not adjacent to a previous match")
2016-03-31do not try to ensure that 'sweepgc' points to a live objectRoberto Ierusalimschy1-18/+11
when entering sweep phase ('entersweep'); that may be too expensive to be done still inside the atomic step. Walking one single object more often than not will work.
2016-03-31detail (comment)Roberto Ierusalimschy1-2/+2
2016-03-23commentsRoberto Ierusalimschy1-12/+12
2016-03-23bug: 'gmatch' iterator fails when called from a coroutine differentRoberto Ierusalimschy2-5/+31
from the one that created it
2016-03-07bug: label between local definitions can mix-up their initializationsRoberto Ierusalimschy2-2/+35
2016-02-29call 'checkGC' *after* creating new objects (this is how 'execute'Roberto Ierusalimschy1-10/+10
does it) (It increases the changes that 'allgc' start with a non-white object, which helps 'entersweep')
2016-02-26When available, use metafield '__name' in error messagesRoberto Ierusalimschy3-8/+25
2016-02-25'\0' is a control character, no need to check it explicitlyRoberto Ierusalimschy1-2/+2
2016-02-25in 'table.move', destination table can be source table even ifRoberto Ierusalimschy1-3/+3
given as an explicit extra argument
2016-02-09simpler yet definition for 'checkoption'Roberto Ierusalimschy1-18/+14
2016-02-08simpler code for 'checkoption' + added conversion specifiers specificRoberto Ierusalimschy1-25/+34
to Windows
2016-02-08details (removed silly use of 'luaL_opt' + better error messagesRoberto Ierusalimschy1-3/+3
in cases of "table expected")
2016-02-05new macro 'vmfetch' to help changing code to computed goto's (macroRoberto Ierusalimschy1-8/+13
abstracts the code to run before each instruction)
2016-01-13new release number + new yearRoberto Ierusalimschy1-4/+4
2016-01-08no more extra space in 'luaL_checkstack'. (It was already uselessRoberto Ierusalimschy1-11/+10
for the first call, and function works ok without that space anyway (just error message misses the 'msg' component)
2016-01-06details (comments + text of error messages)Roberto Ierusalimschy1-5/+5
2016-01-05'getcode' -> 'getinstruction'Roberto Ierusalimschy3-18/+22
2016-01-05'luaV_fastget' only treats the real fast case (table with a non-nilRoberto Ierusalimschy3-55/+67
value at given key, so that it does not need to check metamethods)
2016-01-04bug: Metatable may access its own dealocated field whenRoberto Ierusalimschy1-21/+22
it has a self reference in __newindex + some refactoring
2016-01-04more refactoringRoberto Ierusalimschy1-94/+97
2016-01-04Metatable may access its own dealocated field whenRoberto Ierusalimschy1-1/+48
it has a self reference in __newindex.
2015-12-30more comments + reordeing of union inside 'expdesc' to allowRoberto Ierusalimschy1-13/+16
static initialization of a VKINT value
2015-12-21avoid empty macro arguments (invalid in C89)Roberto Ierusalimschy2-4/+4
2015-12-18comments (*lots* of them) + assertsRoberto Ierusalimschy1-84/+324
2015-12-17comments. (More explanation about kinds of expressions.)Roberto Ierusalimschy1-17/+27
2015-12-17reordering of some functions + 'code_label' renamed to 'code_loadbool'Roberto Ierusalimschy1-61/+61
2015-12-17detail ('while' -> 'for') in 'luaK_patchclose'Roberto Ierusalimschy1-4/+2
2015-12-16comments (about hooks vs signals)Roberto Ierusalimschy2-4/+15
2015-12-16make 'hook' volatile (as it may be changed in signal handling)Roberto Ierusalimschy1-2/+2
2015-12-14comments + small code changes around stack usage when 'luaL_checkstack'Roberto Ierusalimschy1-5/+21
raises an error (and needs the stack to create the error message...)
2015-12-14in 'table.sort': 'typedef' for type of indices + removed stack checkRoberto Ierusalimschy1-16/+17
(recursion is in the C stack, not in the Lua stack!)
2015-12-14using 'sig_atomic_t' for 'hookmask' (as it can be changed insideRoberto Ierusalimschy1-2/+11
a signal)
2015-12-14commentsRoberto Ierusalimschy1-11/+13
2015-12-10detail (removed fixed argument to function 'callallpendingfinalizers')Roberto Ierusalimschy1-4/+4
2015-12-09detail (moving bodies of 'while' to a separate line)Roberto Ierusalimschy1-5/+9
2015-11-25format "%s" in 'string.format' accepts embedded zeros when itv5.3.2Roberto Ierusalimschy1-9/+12
has no modifiers
2015-11-25randomness in 'table.sort' used only when needed (big imbalance inRoberto Ierusalimschy1-38/+73
partition result) + small refactoring
2015-11-24handling 'clock_t' and 'time_t' correctly in ISO C point of viewRoberto Ierusalimschy1-5/+14
2015-11-23easy the way to accept other modifiers for 'mode' in 'io.open'Roberto Ierusalimschy1-7/+13
2015-11-23tiny code refactoring in 'luaS_hash'Roberto Ierusalimschy1-4/+3
2015-11-23ensure argument to 'string.format("%s")' does not contain zerosRoberto Ierusalimschy1-1/+2
2015-11-23details (comments)Roberto Ierusalimschy5-11/+11
2015-11-23using unsigned int (instead of int) in 'table.sort' to avoid overflowsRoberto Ierusalimschy1-17/+23
(when computing the pivot and in original table size)
2015-11-23details (merging declarations with initialization)Roberto Ierusalimschy1-7/+5
2015-11-20randomness in pivot for 'table.sort' done by a macro (easier to change)Roberto Ierusalimschy1-11/+17
2015-11-19details (typos in comments)Roberto Ierusalimschy10-22/+22