diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-05-25 08:18:03 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-05-25 08:18:03 +0000 |
commit | 69be0d4cb816ba39cbe29091d8579b661f57d3fc (patch) | |
tree | 4ab56c60c4aae652609f72a2031d57fd9ad54355 /sim/common/hw-device.h | |
parent | 39e953a72287cfa9335871478f27258989a22a66 (diff) | |
download | gdb-69be0d4cb816ba39cbe29091d8579b661f57d3fc.zip gdb-69be0d4cb816ba39cbe29091d8579b661f57d3fc.tar.gz gdb-69be0d4cb816ba39cbe29091d8579b661f57d3fc.tar.bz2 |
Split out hw-alloc code. Add constructor and destructor for hw-alloc.
Diffstat (limited to 'sim/common/hw-device.h')
-rw-r--r-- | sim/common/hw-device.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sim/common/hw-device.h b/sim/common/hw-device.h index 558c41d..a787089 100644 --- a/sim/common/hw-device.h +++ b/sim/common/hw-device.h @@ -351,23 +351,6 @@ typedef int (hw_unit_size_to_attach_size_callback) -/* Memory allocator / de-allocator. - - All memory allocated using the below will be automatically - reclaimed when the device is deleted. - - A device implementation can either use these functions when - allocating memory or use malloc/zalloc/free an co-ordinate its own - garbage collection. */ - -#define HW_ZALLOC(me,type) (type*) hw_zalloc (me, sizeof (type)) -#define HW_MALLOC(me,type) (type*) hw_malloc (me, sizeof (type)) - -extern void *hw_zalloc (struct hw *me, unsigned long size); -extern void *hw_malloc (struct hw *me, unsigned long size); -extern void hw_free (struct hw *me, void *); -extern void hw_free_all (struct hw *me); - extern char *hw_strdup (struct hw *me, const char *str); |