[Rpm-maint] [rpm-software-management/rpm] RFE: use exceptions within macro expansion to deliver errors out of band (#495)

Jeff Johnson notifications at github.com
Fri Aug 3 19:40:28 UTC 2018


RPM macro expansion (and queries and rpmlog, but those aren't this RFE) would benefit from being able to deliver errors to callers out-of-band through an exception, rather than in-band by writing error messages into the returned buffer or relying on stdout/stderr.

There are 2 approaches:

* in C using setjmp/longjmp to copy an error message back to the caller from deep within a calling stack

* in C++ using the exception framework provided by the language

There is also a need to impedance match popen(3) and lua  (or other embedded interpreter) exceptions into whichever framework is chosen to handle macro expansion exceptions (but those should be separate RFEs as well)

-- 
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/issues/495
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180803/923c47fa/attachment-0001.html>


More information about the Rpm-maint mailing list