]> granicus.if.org Git - yasm/commitdiff
Rename yasm_dvs_destroy() to yasm_dvs_delete() to match the fact it's an
authorPeter Johnson <peter@tortall.net>
Sat, 23 Dec 2006 06:45:14 +0000 (06:45 -0000)
committerPeter Johnson <peter@tortall.net>
Sat, 23 Dec 2006 06:45:14 +0000 (06:45 -0000)
initialized not allocated, so the function doesn't actually free the
provided pointer.

svn path=/trunk/yasm/; revision=1715

libyasm/bc-data.c
libyasm/bytecode.h

index 92b1606083bb391399a0130d8860b32a0a9e17c0..3f3e5533e143adc7bd427b4988687a88e74a13b8 100644 (file)
@@ -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;
 
index 1a4fb6de01a4e99422463f83efd33b94023b03e6..1f1be6aab7401910df2a6cb10aa1113305206269 100644 (file)
@@ -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