[Rpm-maint] [rpm-software-management/rpm] Add support for macro-only dependency generators (#1053)
Michael Schroeder
notifications at github.com
Tue Feb 11 09:19:17 UTC 2020
mlschroe commented on this pull request.
> @@ -1784,6 +1784,29 @@ rpmDefineMacro(rpmMacroContext mc, const char * macro, int level)
return rc;
}
+int rpmMacroIsDefined(rpmMacroContext mc, const char *n)
+{
+ int defined = 0;
+ if ((mc = rpmmctxAcquire(mc)) != NULL) {
+ if (findEntry(mc, n, 0, NULL))
+ defined = 1;
+ rpmmctxRelease(mc);
+ }
+ return defined;
+}
+
+int rpmMacroIsCallable(rpmMacroContext mc, const char *n)
+{
Maybe `rpmMacroHasParameters()`?
--
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/1053#discussion_r377514959
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200211/c8ffdcfd/attachment.html>
More information about the Rpm-maint
mailing list