From: Nick Alcock Date: Sun, 16 Feb 2025 19:37:54 +0000 (+0000) Subject: libctf: document parameters to ctf_import X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=06f77d49f62ff039d5fbd45afd259678455b448b;p=thirdparty%2Fbinutils-gdb.git libctf: document parameters to ctf_import One is a parent dict, one is a child: you shouldn't have to look at the source to tell which is which. include/ * ctf-api.h (ctf_import): Name parameters. --- diff --git a/include/ctf-api.h b/include/ctf-api.h index fd77953e193..fa55a71ae2d 100644 --- a/include/ctf-api.h +++ b/include/ctf-api.h @@ -475,7 +475,7 @@ extern ctf_dict_t *ctf_parent_dict (ctf_dict_t *); extern const char *ctf_parent_name (ctf_dict_t *); extern int ctf_type_isparent (const ctf_dict_t *, ctf_id_t); extern int ctf_type_ischild (const ctf_dict_t *, ctf_id_t); -extern int ctf_import (ctf_dict_t *, ctf_dict_t *); +extern int ctf_import (ctf_dict_t *child, ctf_dict_t *parent); /* Set these names (used when creating dicts). */