]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
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>
Sat, 12 Dec 2020 21:25:38 +0000 (21:25 +0000)
commit0a0d522b368b31ec51611b798047a75b52855f39
treed52317fba663529c16271a60e95400ce194a9730
parent3420068a73e554b30a86f9327b1a63f40e3b4568
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.

MFC after: 1 week
stand/common/interp_lua.c
stand/liblua/Makefile
stand/liblua/lpager.c [new file with mode: 0644]
stand/liblua/lutils.h