From 06f77d49f62ff039d5fbd45afd259678455b448b Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Sun, 16 Feb 2025 19:37:54 +0000 Subject: [PATCH] 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. --- include/ctf-api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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). */ -- 2.47.2