Details · lua/lua@d5bbe95 · GitHub
Skip to content

Commit d5bbe95

Browse files
committed
Details
- Some api_checknelems changed to the more restrict api_checkpop. - Added a class to the html for APIs in the manual. - Comments and manual.
1 parent 9130ceb commit d5bbe95

5 files changed

Lines changed: 18 additions & 9 deletions

File tree

‎lapi.c‎

Lines changed: 3 additions & 3 deletions

‎luaconf.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
#if defined(LUA_USE_MACOSX)
8080
#define LUA_USE_POSIX
8181
#define LUA_USE_DLOPEN /* macOS does not need -ldl */
82-
#define LUA_USE_READLINE
82+
#define LUA_USE_READLINE /* needs an extra library: -lreadline */
8383
#endif
8484

8585

‎lvm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ void luaV_finishOp (lua_State *L) {
925925
** Macros for arithmetic/bitwise/comparison opcodes in 'luaV_execute'
926926
**
927927
** All these macros are to be used exclusively inside the main
928-
** iterpreter loop (function luaV_execute) and may access directly
928+
** interpreter loop (function luaV_execute) and may access directly
929929
** the local variables of that function (L, i, pc, ci, etc.).
930930
** ===================================================================
931931
*/

‎manual/2html‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ end
5858

5959
local function compose (f,g)
6060
assert(f and g)
61-
return function (s) return g(f(s)) end
61+
return function (...) return g(f(...)) end
6262
end
6363

6464
local function concat (f, g)
@@ -395,9 +395,10 @@ APIEntry = function (e)
395395
local apiicmd, ne = string.match(e, "^(.-</span>)(.*)")
396396
--io.stderr:write(e)
397397
if not apiicmd then
398-
return antipara(Tag.hr() .. Tag.h3(a)) .. Tag.pre(h) .. e
398+
return antipara(Tag.hr() .. Tag.h3(a)) .. Tag.pre(h, {class="api"}) .. e
399399
else
400-
return antipara(Tag.hr() .. Tag.h3(a)) .. apiicmd .. Tag.pre(h) .. ne
400+
return antipara(Tag.hr() .. Tag.h3(a)) .. apiicmd ..
401+
Tag.pre(h, {class="api"}) .. ne
401402
end
402403
end,
403404

‎manual/manual.of‎

Lines changed: 9 additions & 1 deletion

0 commit comments

Comments
 (0)