]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: de-macroize LCTF_TYPE_TO_INDEX / LCTF_INDEX_TO_TYPE
authorNick Alcock <nick.alcock@oracle.com>
Tue, 4 Feb 2025 12:57:17 +0000 (12:57 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 28 Feb 2025 15:13:24 +0000 (15:13 +0000)
commitdc93d01ff286fd5711be25a534d30aacc6164c81
tree00ad493a82e93054fb16f392b8e16cabb4703e03
parent003f19bfa7f487ebe65823c899aed8a19a333a05
libctf: de-macroize LCTF_TYPE_TO_INDEX / LCTF_INDEX_TO_TYPE

Making these functions is unnecessary right now, but will become much
clearer shortly.

While we're at it, we can drop the third child argument to
LCTF_INDEX_TO_TYPE: it's only used for nontrivial purposes that aren't
literally the same as getting the result from the fp in one place,
in ctf_lookup_by_name_internal, and that place is easily fixed by just
looking in the right dictionary in the first place.
libctf/ctf-create.c
libctf/ctf-impl.h
libctf/ctf-lookup.c
libctf/ctf-open.c
libctf/ctf-types.c