]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
copy mempattern files from Knot DNS as they are
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 22 Dec 2020 11:44:39 +0000 (12:44 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 13 Jan 2021 08:49:11 +0000 (09:49 +0100)
commit4efb69d36ab069b544f0d809e29936db9c064610
treed34dd42ef3e070dc812f5c9325239420b7d98911
parentf4ca45dc1e32ef19e18b6010071ac2a4ffd0a78a
copy mempattern files from Knot DNS as they are

It seems just easier than having the copies in the current way.
I don't think the `static inline` were helping us anyway,
except for avoiding KR_EXPORT in some cases.

Still, differences when copying:
 - we use plain memset() in the implementation
   (no motivation here to use the complex memzero() approach)
 - we expose mm_malloc(), as we've been referring to it
 - we KR_EXPORT some of the functions (for lua and modules)
contrib/mempattern.c [new file with mode: 0644]
contrib/mempattern.h [new file with mode: 0644]
contrib/meson.build
lib/utils.c
lib/utils.h