From: Alessio Podda Date: Mon, 17 Feb 2025 12:30:24 +0000 (+0000) Subject: chg: dev: Refactor and simplify isc_symtab X-Git-Tag: ondrej/lock-free-qpzone-reads-v1~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5559539eb013c98f623872d216d3e7d4ce422897;p=thirdparty%2Fbind9.git chg: dev: Refactor and simplify isc_symtab This commit does several changes to isc_symtab: 1. Rewrite the isc_symtab to internally use isc_hashmap instead of hand-stiched hashtable. 2. Create a new isc_symtab_define_and_return() api, which returns the already defined symvalue on ISC_R_EXISTS; this allows users of the API to skip the isc_symtab_lookup()+isc_symtab_define() calls and directly call isc_symtab_define_and_return(). 3. Merge isccc_symtab into isc_symtab - the only missing function was isccc_symtab_foreach() that was merged into isc_symtab API. 4. Add full set of unit tests for the isc_symtab API. Closes #5103 Merge branch '5103-use-isc_hashmap-for-isc_symtab' into 'main' See merge request isc-projects/bind9!9921 --- 5559539eb013c98f623872d216d3e7d4ce422897