[Rpm-maint] [rpm-software-management/rpm] Add preliminary support for dynamic built-in macro registration (#1406)
Panu Matilainen
notifications at github.com
Wed Oct 21 11:42:15 UTC 2020
Add the necessary infra to pass and carry dofoo/parse function pointers
in macro entries, define our basic built-in primitives at macro
initialization and adapt the built-in calling logic in expandMacro()
to look up the info from macro entry instead of the builtin table.
This has various nice benefits, such as allowing simple testing whether
rpm supports a given primitive by testing whether said macro is defined.
It also paves way for later implementing various spec constructs as
actual macros instead of the confusing pseudo-macros they are now.
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/1406
-- Commit Summary --
* Add preliminary support for dynamic built-in macro registration
-- File Changes --
M rpmio/macro.c (110)
M tests/rpmmacro.at (2)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/1406.patch
https://github.com/rpm-software-management/rpm/pull/1406.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/1406
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201021/48e09748/attachment-0001.html>
More information about the Rpm-maint
mailing list