]> git.ipfire.org Git - thirdparty/systemd.git/commit
hashmap: Drop debug params 37348/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 4 May 2025 11:31:07 +0000 (13:31 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 6 May 2025 08:14:26 +0000 (10:14 +0200)
commitc09ce222b6379e8f73695e5ce53fce76a44d78c7
tree5f3dc49c3a776bcc8700d15b139a23542f7d6785
parent40a6cdc29e94aa2daa606467466ca9eb92069750
hashmap: Drop debug params

Passing in the func, file and line information complicates the
interface. On top of that, it prevents forward declaring Hashmap in
strv.h, as we need to pass the macros everywhere that we allocate a
hashmap, which means we have to include the hashmap header everywhere
we have a function that allocates a hashmap instead of just having to
forward declare Hashmap.

Let's drop the file, func and line information from the debug information.
Instead, in the future we can add a description field to hashmaps like we
already have in various other structs to describe the purpose of the hashmap
which should be much more useful than having the file, line and function where
the hashmap was allocated.
src/basic/hashmap.c
src/basic/hashmap.h
src/basic/ordered-set.c
src/basic/ordered-set.h
src/basic/set.h
src/basic/strv.c
src/basic/strv.h
tools/gdb-sd_dump_hashmaps.py