[Rpm-maint] [rpm-software-management/rpm] Convert a bunch of librpmio stuff to native C++ (PR #3054)
Panu Matilainen
notifications at github.com
Mon Apr 22 12:19:13 UTC 2024
Convert a bunch of dynamic allocations in librpmio to native C++ new/delete to enable use of native structures in those structs and then take advantage of it. Misc other string/vector conversions too.
This is a pretty random stuff, the primary points being to bring the number of raw C allocations down, and to make the first real step into the C++ land.
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/3054
-- Commit Summary --
* Minimally convert digest code to native c++ allocation
* Natively allocate rpmio structs
* Natively allocate internal rpmlua structs
* Replace internal Lua print buffer with a C++ string
* Replace internal Lua printing stack with a C++ stack
* Use C++ constructs for rpmlog internal storage
* Use a c++ string for macro expansion buffer
* Use c++ string for rpmExpand() helper buffer
* Natively allocate keyring + pubkey structs
* Natively allocate keyring and pubkey structs
* Natively allocate expression most parser structs
-- File Changes --
M include/rpm/rpmtypes.h (2)
M rpmio/digest.c (5)
M rpmio/digest_libgcrypt.c (6)
M rpmio/digest_openssl.c (19)
M rpmio/expression.c (53)
M rpmio/macro.c (120)
M rpmio/rpmio.c (38)
M rpmio/rpmkeyring.c (30)
M rpmio/rpmlog.c (51)
M rpmio/rpmlua.c (78)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/3054.patch
https://github.com/rpm-software-management/rpm/pull/3054.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3054
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3054 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240422/354dd027/attachment.html>
More information about the Rpm-maint
mailing list