forked from Imagelibrary/binutils-gdb
libctf: create: fix vlen / vbytes confusion
The initial_vlen parameter to ctf_add_generic is misnamed: it's not the initial vlen (the initial number of members of a struct, etc), but rather the initial size of the vlen region. We have a term for that, vbytes: use it. Amazingly this doesn't seem to have caused any bugs to creep in.
This commit is contained in:
@@ -179,7 +179,7 @@ typedef struct ctf_dtdef
|
||||
ctf_list_t dtd_list; /* List forward/back pointers. */
|
||||
ctf_id_t dtd_type; /* Type identifier for this definition. */
|
||||
ctf_type_t dtd_data; /* Type node, including name. */
|
||||
size_t dtd_vlen_alloc; /* Total vlen space allocated. */
|
||||
size_t dtd_vlen_alloc; /* Total vlen space allocated (vbytes). */
|
||||
unsigned char *dtd_vlen; /* Variable-length data for this type. */
|
||||
} ctf_dtdef_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user