[Rpm-maint] [rpm-software-management/rpm] Implement a table-like shortcut to rpm macros in Lua (#1398)
Panu Matilainen
notifications at github.com
Tue Oct 13 09:36:11 UTC 2020
Add rpm macro context as a global table-like entity named 'm' for
typing convenience into the Lua environment.
Support basic access with table indexing syntaxes (m[k] and m.k),
undefined macros return nil here. As a specialty, parametric macros
are returned as native callable variadic Lua functions, arguments
are converted to strings.
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/1398
-- Commit Summary --
* Implement a table-like shortcut to rpm macros in Lua
-- File Changes --
M doc/manual/lua.md (22)
M rpmio/rpmlua.c (72)
M tests/rpmmacro.at (18)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/1398.patch
https://github.com/rpm-software-management/rpm/pull/1398.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1398
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201013/ad0b5202/attachment.html>
More information about the Rpm-maint
mailing list