]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: stand: liblua: add a pager module
authorKyle Evans <kevans@FreeBSD.org>
Sat, 12 Dec 2020 21:25:38 +0000 (21:25 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Sun, 27 Dec 2020 20:55:03 +0000 (14:55 -0600)
commit4fd8afa474dab1d2389f8b54f7ba1b45bcf62823
tree711f39ae332bf51a8515603523eb6d44d4312674
parent24a8ea4df3426dfce2896e265eb3e0206aa33a21
MFC: stand: liblua: add a pager module

This is nearly a 1:1 mapping of the pager API from libsa.  The only real
difference is that pager.output() will accept any number of arguments and
coerce all of them to strings for output using luaL_tolstring (i.e. the
__tostring metamethod will be used).

The only consumer planned at this time is the upcoming "show-module-options"
implementation.

(cherry picked from commit 0a0d522b368b31ec51611b798047a75b52855f39)
stand/common/interp_lua.c
stand/liblua/Makefile
stand/liblua/lpager.c [new file with mode: 0644]
stand/liblua/lutils.h