]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
chg: dev: Refactor and simplify isc_symtab
authorAlessio Podda <alessio@isc.org>
Mon, 17 Feb 2025 12:30:24 +0000 (12:30 +0000)
committerAlessio Podda <alessio@isc.org>
Mon, 17 Feb 2025 12:30:24 +0000 (12:30 +0000)
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


Trivial merge