]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand: liblua: add a pager module
authorkevans <kevans@FreeBSD.org>
Sat, 12 Dec 2020 21:25:38 +0000 (21:25 +0000)
committerkevans <kevans@FreeBSD.org>
Sat, 12 Dec 2020 21:25:38 +0000 (21:25 +0000)
commitf28c6e6f2224cd92eb8fd2265146ad5cee163737
treed52317fba663529c16271a60e95400ce194a9730
parenta303ab6289038c44fed242a9d7f22b5a291a84ab
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