mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
Rename yasm_dvs_destroy() to yasm_dvs_delete() to match the fact it's an
initialized not allocated, so the function doesn't actually free the provided pointer. svn path=/trunk/yasm/; revision=1715
This commit is contained in:
parent
0b54266d14
commit
9593bcf56b
2 changed files with 3 additions and 3 deletions
|
|
@ -84,7 +84,7 @@ static void
|
|||
bc_data_destroy(void *contents)
|
||||
{
|
||||
bytecode_data *bc_data = (bytecode_data *)contents;
|
||||
yasm_dvs_destroy(&bc_data->datahead);
|
||||
yasm_dvs_delete(&bc_data->datahead);
|
||||
yasm_xfree(contents);
|
||||
}
|
||||
|
||||
|
|
@ -381,7 +381,7 @@ yasm_dv_create_raw(unsigned char *contents, unsigned long len)
|
|||
}
|
||||
|
||||
void
|
||||
yasm_dvs_destroy(yasm_datavalhead *headp)
|
||||
yasm_dvs_delete(yasm_datavalhead *headp)
|
||||
{
|
||||
yasm_dataval *cur, *next;
|
||||
|
||||
|
|
|
|||
|
|
@ -438,7 +438,7 @@ void yasm_dvs_initialize(yasm_datavalhead *headp);
|
|||
/** Delete (free allocated memory for) a list of data values.
|
||||
* \param headp list of data values
|
||||
*/
|
||||
void yasm_dvs_destroy(yasm_datavalhead *headp);
|
||||
void yasm_dvs_delete(yasm_datavalhead *headp);
|
||||
|
||||
/** Add data value to the end of a list of data values.
|
||||
* \note Does not make a copy of the data value; so don't pass this function
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue