Add hw_{malloc,zalloc,free} functions to hw_device. Any memory
[deliverable/binutils-gdb.git] / sim / common / ChangeLog
index 65499fde40d832826398886e83be6b0417fc91eb..e760208f6afba7d8f3d41f4cf126ab4631c970ee 100644 (file)
@@ -1,3 +1,32 @@
+Sun Mar 22 15:23:35 1998  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * hw-device.h (HW_ZALLOC, HW_MALLOC): New macros.
+       (hw_alloc_data): Delcare.
+       (struct hw): Add member alloc_of_hw.
+       
+       * hw-device.c (hw_zalloc, hw_malloc, hw_free, hw_free_all): New
+       functions. Assocate memory with a device.
+       (stdlib.h): Include.
+       
+       * hw-base.h (set_hw_delete): Define.
+       (hw_delete_callback): Declare.
+       (hw_delete): Declare.
+
+       * hw-base.c (hw_delete): Implement function.
+       (struct hw_base_data): Add member to_delete.
+       (ignore_hw_delete): New function, does nothing.
+       (hw_create): Set the hw_delete method.
+       (hw_create): Allocate the base type using HW_ZALLOC before setting
+       any methods.
+
+       * hw-properties.c: Replace zalloc/zfree with hw_zalloc/hw_free.
+       
+       * hw-ports.c: Replace zalloc/zfree with hw_zalloc/hw_free.
+       (attach_hw_port_edge): Add struct hw argument
+
+       * dv-pal.c (hw_pal_finish): Replace zalloc/zfree with
+       hw_zalloc/hw_free.
+
 Sun Mar 22 15:09:52 1998  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * hw-device.h (hw_attach_address_callback,
This page took 0.023522 seconds and 4 git commands to generate.