]> git.ipfire.org Git - thirdparty/bind9.git/commit
[9.20] new: dev: Add MOVE_OWNERSHIP() macro for transferring pointer ownership
authorOndřej Surý <ondrej@isc.org>
Mon, 23 Mar 2026 11:05:40 +0000 (12:05 +0100)
committerOndřej Surý <ondrej@isc.org>
Mon, 23 Mar 2026 11:05:40 +0000 (12:05 +0100)
commit13a656f79aa4359429048df5699546cc0b65aa81
treeba54e40f5cbd8346271a760573a8d3e18adf0332
parent208f1fcfec7fd575cfc26dff49e22a39b864748a
parent8feefb9874a1e05da863c312a78bb68981160b2a
[9.20] new: dev: Add MOVE_OWNERSHIP() macro for transferring pointer ownership

A helper macro that returns the current value of a pointer and sets
it to NULL in one expression, useful for transferring ownership in
designated initializers.

Backport of MR !11724

Merge branch 'backport-ondrej/TAKE_OWNERSHIP-macro-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!11736