summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emu/imagedev/flopdrv.c4
-rw-r--r--src/emu/machine/6525tpi.c2
-rw-r--r--src/emu/machine/68681.c2
-rw-r--r--src/emu/machine/74148.c2
-rw-r--r--src/emu/machine/74153.c2
-rw-r--r--src/emu/machine/adc083x.c4
-rw-r--r--src/emu/machine/adc1038.c2
-rw-r--r--src/emu/machine/adc1213x.c4
-rw-r--r--src/emu/machine/idectrl.c2
-rw-r--r--src/emu/machine/k053252.c2
-rw-r--r--src/emu/machine/latch8.c2
-rw-r--r--src/emu/machine/mb14241.c2
-rw-r--r--src/emu/machine/mb87078.c2
-rw-r--r--src/emu/machine/pd4990a.c2
-rw-r--r--src/emu/machine/pic8259.c2
-rw-r--r--src/emu/machine/pit8253.c4
-rw-r--r--src/emu/machine/rp5h01.c2
-rw-r--r--src/emu/machine/s3c2400.c2
-rw-r--r--src/emu/machine/s3c2410.c2
-rw-r--r--src/emu/machine/s3c2440.c2
-rw-r--r--src/emu/machine/smc91c9x.c2
-rw-r--r--src/emu/machine/tms6100.c4
-rw-r--r--src/emu/machine/upd4701.c2
-rw-r--r--src/emu/machine/wd17xx.c4
-rw-r--r--src/emu/sound/2151intf.c2
-rw-r--r--src/emu/sound/2203intf.c2
-rw-r--r--src/emu/sound/2413intf.c2
-rw-r--r--src/emu/sound/2608intf.c2
-rw-r--r--src/emu/sound/2610intf.c4
-rw-r--r--src/emu/sound/2612intf.c4
-rw-r--r--src/emu/sound/262intf.c2
-rw-r--r--src/emu/sound/3526intf.c2
-rw-r--r--src/emu/sound/3812intf.c2
-rw-r--r--src/emu/sound/8950intf.c2
-rw-r--r--src/emu/sound/aica.c2
-rw-r--r--src/emu/sound/astrocde.c2
-rw-r--r--src/emu/sound/ay8910.c4
-rw-r--r--src/emu/sound/beep.c2
-rw-r--r--src/emu/sound/c140.c2
-rw-r--r--src/emu/sound/c6280.c2
-rw-r--r--src/emu/sound/cdda.c2
-rw-r--r--src/emu/sound/cem3394.c2
-rw-r--r--src/emu/sound/digitalk.c2
-rw-r--r--src/emu/sound/dmadac.c2
-rw-r--r--src/emu/sound/es5506.c4
-rw-r--r--src/emu/sound/es8712.c2
-rw-r--r--src/emu/sound/flt_rc.c2
-rw-r--r--src/emu/sound/flt_vol.c2
-rw-r--r--src/emu/sound/gaelco.c4
-rw-r--r--src/emu/sound/hc55516.c4
-rw-r--r--src/emu/sound/iremga20.c2
-rw-r--r--src/emu/sound/k005289.c2
-rw-r--r--src/emu/sound/k007232.c2
-rw-r--r--src/emu/sound/k051649.c2
-rw-r--r--src/emu/sound/k053260.c2
-rw-r--r--src/emu/sound/k056800.c2
-rw-r--r--src/emu/sound/msm5205.c4
-rw-r--r--src/emu/sound/msm5232.c2
-rw-r--r--src/emu/sound/multipcm.c2
-rw-r--r--src/emu/sound/n63701x.c2
-rw-r--r--src/emu/sound/namco.c4
-rw-r--r--src/emu/sound/nes_apu.c2
-rw-r--r--src/emu/sound/nile.c2
-rw-r--r--src/emu/sound/okim6258.c2
-rw-r--r--src/emu/sound/okim6376.c2
-rw-r--r--src/emu/sound/qsound.c2
-rw-r--r--src/emu/sound/rf5c400.c2
-rw-r--r--src/emu/sound/rf5c68.c2
-rw-r--r--src/emu/sound/s14001a.c2
-rw-r--r--src/emu/sound/s2636.c2
-rw-r--r--src/emu/sound/saa1099.c2
-rw-r--r--src/emu/sound/scsp.c2
-rw-r--r--src/emu/sound/segapcm.c2
-rw-r--r--src/emu/sound/sn76477.c2
-rw-r--r--src/emu/sound/sn76496.c4
-rw-r--r--src/emu/sound/snkwave.c2
-rw-r--r--src/emu/sound/sp0250.c2
-rw-r--r--src/emu/sound/sp0256.c2
-rw-r--r--src/emu/sound/speaker.c2
-rw-r--r--src/emu/sound/st0016.c2
-rw-r--r--src/emu/sound/t6w28.c2
-rw-r--r--src/emu/sound/tiaintf.c2
-rw-r--r--src/emu/sound/tms3615.c2
-rw-r--r--src/emu/sound/tms36xx.c2
-rw-r--r--src/emu/sound/tms5110.c6
-rw-r--r--src/emu/sound/tms5220.c4
-rw-r--r--src/emu/sound/upd7759.c4
-rw-r--r--src/emu/sound/vlm5030.c2
-rw-r--r--src/emu/sound/vrender0.c2
-rw-r--r--src/emu/sound/x1_010.c2
-rw-r--r--src/emu/sound/ymf271.c2
-rw-r--r--src/emu/sound/ymf278b.c2
-rw-r--r--src/emu/sound/ymz280b.c2
-rw-r--r--src/emu/sound/zsg2.c2
-rw-r--r--src/emu/video/hd63484.c2
-rw-r--r--src/emu/video/i8275.c2
-rw-r--r--src/emu/video/s2636.c2
-rw-r--r--src/emu/video/tlc34076.c2
-rw-r--r--src/emu/video/tms9927.c4
-rw-r--r--src/emu/video/voodoo.c2
-rw-r--r--src/mame/audio/amiga.c2
-rw-r--r--src/mame/audio/beezer.c2
-rw-r--r--src/mame/audio/cps3.c2
-rw-r--r--src/mame/audio/exidy.c4
-rw-r--r--src/mame/audio/exidy440.c2
-rw-r--r--src/mame/audio/flower.c2
-rw-r--r--src/mame/audio/geebee.c2
-rw-r--r--src/mame/audio/gomoku.c2
-rw-r--r--src/mame/audio/gridlee.c2
-rw-r--r--src/mame/audio/hyprolyb.c2
-rw-r--r--src/mame/audio/irem.c2
-rw-r--r--src/mame/audio/leland.c4
-rw-r--r--src/mame/audio/m72.c2
-rw-r--r--src/mame/audio/micro3d.c2
-rw-r--r--src/mame/audio/namco52.c2
-rw-r--r--src/mame/audio/namco54.c2
-rw-r--r--src/mame/audio/phoenix.c2
-rw-r--r--src/mame/audio/pleiads.c4
-rw-r--r--src/mame/audio/polepos.c2
-rw-r--r--src/mame/audio/redbaron.c2
-rw-r--r--src/mame/audio/segasnd.c4
-rw-r--r--src/mame/audio/seibu.c2
-rw-r--r--src/mame/audio/snes_snd.c2
-rw-r--r--src/mame/audio/snk6502.c2
-rw-r--r--src/mame/audio/taitosnd.c2
-rw-r--r--src/mame/audio/tiamc1.c2
-rw-r--r--src/mame/audio/timeplt.c2
-rw-r--r--src/mame/audio/trackfld.c2
-rw-r--r--src/mame/audio/tx1.c4
-rw-r--r--src/mame/audio/warpwarp.c2
-rw-r--r--src/mame/audio/wiping.c2
-rw-r--r--src/mame/drivers/mjkjidai.c2
-rw-r--r--src/mame/drivers/renegade.c2
-rw-r--r--src/mame/machine/buggychl.c2
-rw-r--r--src/mame/machine/cd32.c2
-rw-r--r--src/mame/machine/decocass.c2
-rw-r--r--src/mame/machine/gaelco3d.c2
-rw-r--r--src/mame/machine/mathbox.c2
-rw-r--r--src/mame/machine/namco06.c2
-rw-r--r--src/mame/machine/namco50.c2
-rw-r--r--src/mame/machine/namco51.c2
-rw-r--r--src/mame/machine/namco53.c2
-rw-r--r--src/mame/machine/namco62.c2
-rw-r--r--src/mame/machine/namcoio.c2
-rw-r--r--src/mame/machine/nmk112.c2
-rw-r--r--src/mame/machine/taitoio.c6
-rw-r--r--src/mame/video/atarirle.c2
-rw-r--r--src/mame/video/deco16ic.c2
-rw-r--r--src/mame/video/decocomn.c2
-rw-r--r--src/mame/video/kan_pand.c2
-rw-r--r--src/mame/video/konicdev.c40
-rw-r--r--src/mame/video/taitoic.c20
-rw-r--r--src/mame/video/vrender0.c2
-rw-r--r--src/mess/audio/channelf.c2
-rw-r--r--src/mess/audio/dave.c2
-rw-r--r--src/mess/audio/gb.c2
-rw-r--r--src/mess/audio/gmaster.c2
-rw-r--r--src/mess/audio/lynx.c4
-rw-r--r--src/mess/audio/mac.c2
-rw-r--r--src/mess/audio/mea8000.c2
-rw-r--r--src/mess/audio/socrates.c2
-rw-r--r--src/mess/audio/special.c2
-rw-r--r--src/mess/audio/svision.c2
-rw-r--r--src/mess/audio/t6721.c2
-rw-r--r--src/mess/audio/upd1771.c2
-rw-r--r--src/mess/audio/vc4000.c2
-rw-r--r--src/mess/audio/wswan.c2
-rw-r--r--src/mess/machine/990_tap.c2
-rw-r--r--src/mess/machine/applefdc.c2
-rw-r--r--src/mess/machine/at45dbxx.c4
-rw-r--r--src/mess/machine/atarifdc.c2
-rw-r--r--src/mess/machine/ay31015.c2
-rw-r--r--src/mess/machine/beta.c2
-rw-r--r--src/mess/machine/ds1315.c2
-rw-r--r--src/mess/machine/e05a03.c2
-rw-r--r--src/mess/machine/er59256.c2
-rw-r--r--src/mess/machine/hd63450.c2
-rw-r--r--src/mess/machine/i8271.c2
-rw-r--r--src/mess/machine/kr2376.c2
-rw-r--r--src/mess/machine/mc68328.c2
-rw-r--r--src/mess/machine/mc6843.c2
-rw-r--r--src/mess/machine/mc6846.c2
-rw-r--r--src/mess/machine/mc6854.c2
-rw-r--r--src/mess/machine/micropolis.c2
-rw-r--r--src/mess/machine/mm58274c.c2
-rw-r--r--src/mess/machine/mos6530.c2
-rw-r--r--src/mess/machine/omti8621.c2
-rw-r--r--src/mess/machine/pc_lpt.c2
-rw-r--r--src/mess/machine/pcf8593.c2
-rw-r--r--src/mess/machine/pf10.c2
-rw-r--r--src/mess/machine/s3c44b0.c2
-rw-r--r--src/mess/machine/sst39vfx.c4
-rw-r--r--src/mess/machine/strata.c2
-rw-r--r--src/mess/machine/tf20.c2
-rw-r--r--src/mess/machine/upd7002.c2
-rw-r--r--src/mess/machine/upd71071.c2
-rw-r--r--src/mess/machine/upd765.c4
-rw-r--r--src/mess/video/733_asr.c2
-rw-r--r--src/mess/video/911_vdt.c2
-rw-r--r--src/mess/video/apollo.c2
-rw-r--r--src/mess/video/crt.c2
-rw-r--r--src/mess/video/dl1416.c2
-rw-r--r--src/mess/video/k1ge.c4
-rw-r--r--src/mess/video/vdc8563.c2
-rw-r--r--src/mess/video/vic4567.c2
-rw-r--r--src/mess/video/vic6567.c2
-rw-r--r--src/mess/video/vtvideo.c2
207 files changed, 267 insertions, 267 deletions
diff --git a/src/emu/imagedev/flopdrv.c b/src/emu/imagedev/flopdrv.c
index b678c6c5edf..a9d7679f8d5 100644
--- a/src/emu/imagedev/flopdrv.c
+++ b/src/emu/imagedev/flopdrv.c
@@ -868,7 +868,7 @@ legacy_floppy_image_device::legacy_floppy_image_device(const machine_config &mco
device_image_interface(mconfig, *this),
m_token(NULL)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(floppy_drive));
+ m_token = global_alloc_clear(floppy_drive);
}
legacy_floppy_image_device::legacy_floppy_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
@@ -876,7 +876,7 @@ legacy_floppy_image_device::legacy_floppy_image_device(const machine_config &mco
device_image_interface(mconfig, *this),
m_token(NULL)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(floppy_drive));
+ m_token = global_alloc_clear(floppy_drive);
}
//-------------------------------------------------
diff --git a/src/emu/machine/6525tpi.c b/src/emu/machine/6525tpi.c
index 98ce60c6679..79fc8051a37 100644
--- a/src/emu/machine/6525tpi.c
+++ b/src/emu/machine/6525tpi.c
@@ -600,7 +600,7 @@ const device_type TPI6525 = &device_creator<tpi6525_device>;
tpi6525_device::tpi6525_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TPI6525, "6525 TPI", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tpi6525_state));
+ m_token = global_alloc_clear(tpi6525_state);
}
//-------------------------------------------------
diff --git a/src/emu/machine/68681.c b/src/emu/machine/68681.c
index 8257d562294..f764fe95933 100644
--- a/src/emu/machine/68681.c
+++ b/src/emu/machine/68681.c
@@ -908,7 +908,7 @@ const device_type DUART68681 = &device_creator<duart68681_device>;
duart68681_device::duart68681_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, DUART68681, "DUART 68681", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(duart68681_state));
+ m_token = global_alloc_clear(duart68681_state);
}
//-------------------------------------------------
diff --git a/src/emu/machine/74148.c b/src/emu/machine/74148.c
index 1979e9e8ce2..7d57344ad1e 100644
--- a/src/emu/machine/74148.c
+++ b/src/emu/machine/74148.c
@@ -218,7 +218,7 @@ const device_type TTL74148 = &device_creator<ttl74148_device>;
ttl74148_device::ttl74148_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TTL74148, "74148", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ttl74148_state));
+ m_token = global_alloc_clear(ttl74148_state);
}
//-------------------------------------------------
diff --git a/src/emu/machine/74153.c b/src/emu/machine/74153.c
index 3d161c8f6c1..a78b6ebac31 100644
--- a/src/emu/machine/74153.c
+++ b/src/emu/machine/74153.c
@@ -180,7 +180,7 @@ const device_type TTL74153 = &device_creator<ttl74153_device>;
ttl74153_device::ttl74153_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TTL74153, "74153", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ttl74153_state));
+ m_token = global_alloc_clear(ttl74153_state);
}
//-------------------------------------------------
diff --git a/src/emu/machine/adc083x.c b/src/emu/machine/adc083x.c
index d8486ab028d..edd29573ccf 100644
--- a/src/emu/machine/adc083x.c
+++ b/src/emu/machine/adc083x.c
@@ -509,12 +509,12 @@ const device_type ADC0831 = &device_creator<adc0831_device>;
adc0831_device::adc0831_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, ADC0831, "A/D Converters 0831", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(adc0831_state));
+ m_token = global_alloc_clear(adc0831_state);
}
adc0831_device::adc0831_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(adc0831_state));
+ m_token = global_alloc_clear(adc0831_state);
}
//-------------------------------------------------
diff --git a/src/emu/machine/adc1038.c b/src/emu/machine/adc1038.c
index 7a8e248a8db..558c4bb6f83 100644
--- a/src/emu/machine/adc1038.c
+++ b/src/emu/machine/adc1038.c
@@ -162,7 +162,7 @@ const device_type ADC1038 = &device_creator<adc1038_device>;
adc1038_device::adc1038_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, ADC1038, "A/D Converters 1038", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(adc1038_state));
+ m_token = global_alloc_clear(adc1038_state);
}
//-------------------------------------------------
diff --git a/src/emu/machine/adc1213x.c b/src/emu/machine/adc1213x.c
index 8633d7305c0..312f003bc34 100644
--- a/src/emu/machine/adc1213x.c
+++ b/src/emu/machine/adc1213x.c
@@ -374,12 +374,12 @@ const device_type ADC12138 = &device_creator<adc12138_device>;
adc12138_device::adc12138_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, ADC12138, "A/D Converter 12138", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(adc12138_state));
+ m_token = global_alloc_clear(adc12138_state);
}
adc12138_device::adc12138_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(adc12138_state));
+ m_token = global_alloc_clear(adc12138_state);
}
//-------------------------------------------------
diff --git a/src/emu/machine/idectrl.c b/src/emu/machine/idectrl.c
index 19f42d76d0b..03f0dde9d70 100644
--- a/src/emu/machine/idectrl.c
+++ b/src/emu/machine/idectrl.c
@@ -1948,7 +1948,7 @@ const device_type IDE_CONTROLLER = &device_creator<ide_controller_device>;
ide_controller_device::ide_controller_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, IDE_CONTROLLER, "IDE Controller", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ide_state));
+ m_token = global_alloc_clear(ide_state);
}
//-------------------------------------------------
diff --git a/src/emu/machine/k053252.c b/src/emu/machine/k053252.c
index cd81fff253c..1e6a432444f 100644
--- a/src/emu/machine/k053252.c
+++ b/src/emu/machine/k053252.c
@@ -235,7 +235,7 @@ const device_type K053252 = &device_creator<k053252_device>;
k053252_device::k053252_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K053252, "Konami 053252", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k053252_state));
+ m_token = global_alloc_clear(k053252_state);
}
//-------------------------------------------------
diff --git a/src/emu/machine/latch8.c b/src/emu/machine/latch8.c
index c3c34652d76..32912fd2ed6 100644
--- a/src/emu/machine/latch8.c
+++ b/src/emu/machine/latch8.c
@@ -236,7 +236,7 @@ const device_type LATCH8 = &device_creator<latch8_device>;
latch8_device::latch8_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, LATCH8, "8 bit latch", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(latch8_t));
+ m_token = global_alloc_clear(latch8_t);
memset((void*)&m_inline_config,0,sizeof(m_inline_config));
}
diff --git a/src/emu/machine/mb14241.c b/src/emu/machine/mb14241.c
index e1fd7fe6e2a..0f88a51c1c8 100644
--- a/src/emu/machine/mb14241.c
+++ b/src/emu/machine/mb14241.c
@@ -72,7 +72,7 @@ const device_type MB14241 = &device_creator<mb14241_device>;
mb14241_device::mb14241_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, MB14241, "MB14241", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(mb14241_state));
+ m_token = global_alloc_clear(mb14241_state);
}
//-------------------------------------------------
diff --git a/src/emu/machine/mb87078.c b/src/emu/machine/mb87078.c
index 234296d08b1..a681a5c2bd5 100644
--- a/src/emu/machine/mb87078.c
+++ b/src/emu/machine/mb87078.c
@@ -270,7 +270,7 @@ const device_type MB87078 = &device_creator<mb87078_device>;
mb87078_device::mb87078_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, MB87078, "Fujitsu MB87078", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(mb87078_state));
+ m_token = global_alloc_clear(mb87078_state);
}
//-------------------------------------------------
diff --git a/src/emu/machine/pd4990a.c b/src/emu/machine/pd4990a.c
index c34a5f273ea..8ac4d3764a6 100644
--- a/src/emu/machine/pd4990a.c
+++ b/src/emu/machine/pd4990a.c
@@ -525,7 +525,7 @@ const device_type UPD4990A = &device_creator<upd4990a_device>;
upd4990a_device::upd4990a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, UPD4990A, "NEC uPD4990A", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(upd4990a_state));
+ m_token = global_alloc_clear(upd4990a_state);
}
//-------------------------------------------------
diff --git a/src/emu/machine/pic8259.c b/src/emu/machine/pic8259.c
index d48f527d516..382e95d8438 100644
--- a/src/emu/machine/pic8259.c
+++ b/src/emu/machine/pic8259.c
@@ -451,7 +451,7 @@ const device_type PIC8259 = &device_creator<pic8259_device>;
pic8259_device::pic8259_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, PIC8259, "Intel PIC8259", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(pic8259_t));
+ m_token = global_alloc_clear(pic8259_t);
}
//-------------------------------------------------
diff --git a/src/emu/machine/pit8253.c b/src/emu/machine/pit8253.c
index d4ba1b2ebaa..e3360a6a59f 100644
--- a/src/emu/machine/pit8253.c
+++ b/src/emu/machine/pit8253.c
@@ -1158,12 +1158,12 @@ const device_type PIT8253 = &device_creator<pit8253_device>;
pit8253_device::pit8253_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, PIT8253, "Intel PIT8253", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(pit8253_t));
+ m_token = global_alloc_clear(pit8253_t);
}
pit8253_device::pit8253_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(pit8253_t));
+ m_token = global_alloc_clear(pit8253_t);
}
//-------------------------------------------------
diff --git a/src/emu/machine/rp5h01.c b/src/emu/machine/rp5h01.c
index 6a5bb9e2d63..47e9cc6eb02 100644
--- a/src/emu/machine/rp5h01.c
+++ b/src/emu/machine/rp5h01.c
@@ -226,7 +226,7 @@ const device_type RP5H01 = &device_creator<rp5h01_device>;
rp5h01_device::rp5h01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, RP5H01, "RP5H01", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(rp5h01_state));
+ m_token = global_alloc_clear(rp5h01_state);
}
//-------------------------------------------------
diff --git a/src/emu/machine/s3c2400.c b/src/emu/machine/s3c2400.c
index 7c190a973bf..6b222481689 100644
--- a/src/emu/machine/s3c2400.c
+++ b/src/emu/machine/s3c2400.c
@@ -71,7 +71,7 @@ const device_type S3C2400 = &device_creator<s3c2400_device>;
s3c2400_device::s3c2400_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, S3C2400, "Samsung S3C2400", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(s3c24xx_t));
+ m_token = global_alloc_clear(s3c24xx_t);
}
//-------------------------------------------------
diff --git a/src/emu/machine/s3c2410.c b/src/emu/machine/s3c2410.c
index 28dc0e2ad84..be7895d919d 100644
--- a/src/emu/machine/s3c2410.c
+++ b/src/emu/machine/s3c2410.c
@@ -74,7 +74,7 @@ const device_type S3C2410 = &device_creator<s3c2410_device>;
s3c2410_device::s3c2410_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, S3C2410, "Samsung S3C2410", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(s3c24xx_t));
+ m_token = global_alloc_clear(s3c24xx_t);
}
//-------------------------------------------------
diff --git a/src/emu/machine/s3c2440.c b/src/emu/machine/s3c2440.c
index a6f3e5fe538..9539931ae6a 100644
--- a/src/emu/machine/s3c2440.c
+++ b/src/emu/machine/s3c2440.c
@@ -76,7 +76,7 @@ const device_type S3C2440 = &device_creator<s3c2440_device>;
s3c2440_device::s3c2440_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, S3C2440, "Samsung S3C2440", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(s3c24xx_t));
+ m_token = global_alloc_clear(s3c24xx_t);
}
//-------------------------------------------------
diff --git a/src/emu/machine/smc91c9x.c b/src/emu/machine/smc91c9x.c
index e8084aefdde..ea6cae8090a 100644
--- a/src/emu/machine/smc91c9x.c
+++ b/src/emu/machine/smc91c9x.c
@@ -586,7 +586,7 @@ static DEVICE_RESET( smc91c9x )
smc91c9x_device::smc91c9x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(smc91c9x_state));
+ m_token = global_alloc_clear(smc91c9x_state);
}
//-------------------------------------------------
diff --git a/src/emu/machine/tms6100.c b/src/emu/machine/tms6100.c
index d003fd799c3..b595a84eb1d 100644
--- a/src/emu/machine/tms6100.c
+++ b/src/emu/machine/tms6100.c
@@ -264,12 +264,12 @@ const device_type TMS6100 = &device_creator<tms6100_device>;
tms6100_device::tms6100_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TMS6100, "TMS6100", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tms6100_state));
+ m_token = global_alloc_clear(tms6100_state);
}
tms6100_device::tms6100_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tms6100_state));
+ m_token = global_alloc_clear(tms6100_state);
}
//-------------------------------------------------
diff --git a/src/emu/machine/upd4701.c b/src/emu/machine/upd4701.c
index f7894d87799..a82c509bbcc 100644
--- a/src/emu/machine/upd4701.c
+++ b/src/emu/machine/upd4701.c
@@ -305,7 +305,7 @@ const device_type UPD4701 = &device_creator<upd4701_device>;
upd4701_device::upd4701_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, UPD4701, "NEC uPD4701 Encoder", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(upd4701_state));
+ m_token = global_alloc_clear(upd4701_state);
}
//-------------------------------------------------
diff --git a/src/emu/machine/wd17xx.c b/src/emu/machine/wd17xx.c
index db50eccc2c6..0e465862098 100644
--- a/src/emu/machine/wd17xx.c
+++ b/src/emu/machine/wd17xx.c
@@ -2247,12 +2247,12 @@ const device_type WD1770 = &device_creator<wd1770_device>;
wd1770_device::wd1770_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, WD1770, "WD1770", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(wd1770_state));
+ m_token = global_alloc_clear(wd1770_state);
}
wd1770_device::wd1770_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(wd1770_state));
+ m_token = global_alloc_clear(wd1770_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/2151intf.c b/src/emu/sound/2151intf.c
index 13e563ccb6b..d8099b174b0 100644
--- a/src/emu/sound/2151intf.c
+++ b/src/emu/sound/2151intf.c
@@ -124,7 +124,7 @@ ym2151_device::ym2151_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, YM2151, "YM2151", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ym2151_state));
+ m_token = global_alloc_clear(ym2151_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/2203intf.c b/src/emu/sound/2203intf.c
index 584035ccb8e..b939142ae13 100644
--- a/src/emu/sound/2203intf.c
+++ b/src/emu/sound/2203intf.c
@@ -186,7 +186,7 @@ ym2203_device::ym2203_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, YM2203, "YM2203", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ym2203_state));
+ m_token = global_alloc_clear(ym2203_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/2413intf.c b/src/emu/sound/2413intf.c
index 0c7ec87d84b..67706464e8c 100644
--- a/src/emu/sound/2413intf.c
+++ b/src/emu/sound/2413intf.c
@@ -120,7 +120,7 @@ ym2413_device::ym2413_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, YM2413, "YM2413", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ym2413_state));
+ m_token = global_alloc_clear(ym2413_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/2608intf.c b/src/emu/sound/2608intf.c
index d51cf322919..300344badf0 100644
--- a/src/emu/sound/2608intf.c
+++ b/src/emu/sound/2608intf.c
@@ -209,7 +209,7 @@ ym2608_device::ym2608_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, YM2608, "YM2608", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ym2608_state));
+ m_token = global_alloc_clear(ym2608_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/2610intf.c b/src/emu/sound/2610intf.c
index aed83966303..f5d520dd220 100644
--- a/src/emu/sound/2610intf.c
+++ b/src/emu/sound/2610intf.c
@@ -222,13 +222,13 @@ ym2610_device::ym2610_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, YM2610, "YM2610", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ym2610_state));
+ m_token = global_alloc_clear(ym2610_state);
}
ym2610_device::ym2610_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ym2610_state));
+ m_token = global_alloc_clear(ym2610_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/2612intf.c b/src/emu/sound/2612intf.c
index 55afd66f4f0..aac1b52af9a 100644
--- a/src/emu/sound/2612intf.c
+++ b/src/emu/sound/2612intf.c
@@ -162,13 +162,13 @@ ym2612_device::ym2612_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, YM2612, "YM2612", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ym2612_state));
+ m_token = global_alloc_clear(ym2612_state);
}
ym2612_device::ym2612_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ym2612_state));
+ m_token = global_alloc_clear(ym2612_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/262intf.c b/src/emu/sound/262intf.c
index b9ef593c123..17eb1c1b86e 100644
--- a/src/emu/sound/262intf.c
+++ b/src/emu/sound/262intf.c
@@ -136,7 +136,7 @@ ymf262_device::ymf262_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, YMF262, "YMF262", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ymf262_state));
+ m_token = global_alloc_clear(ymf262_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/3526intf.c b/src/emu/sound/3526intf.c
index 4a905b0b086..d3c064b009e 100644
--- a/src/emu/sound/3526intf.c
+++ b/src/emu/sound/3526intf.c
@@ -150,7 +150,7 @@ ym3526_device::ym3526_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, YM3526, "YM3526", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ym3526_state));
+ m_token = global_alloc_clear(ym3526_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/3812intf.c b/src/emu/sound/3812intf.c
index 5a484fa5637..0a7de119ca2 100644
--- a/src/emu/sound/3812intf.c
+++ b/src/emu/sound/3812intf.c
@@ -146,7 +146,7 @@ ym3812_device::ym3812_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, YM3812, "YM3812", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ym3812_state));
+ m_token = global_alloc_clear(ym3812_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/8950intf.c b/src/emu/sound/8950intf.c
index 738ed362621..911d0cdd7d6 100644
--- a/src/emu/sound/8950intf.c
+++ b/src/emu/sound/8950intf.c
@@ -179,7 +179,7 @@ y8950_device::y8950_device(const machine_config &mconfig, const char *tag, devic
: device_t(mconfig, Y8950, "Y8950", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(y8950_state));
+ m_token = global_alloc_clear(y8950_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/aica.c b/src/emu/sound/aica.c
index 81894065b6b..78b9bd8e77d 100644
--- a/src/emu/sound/aica.c
+++ b/src/emu/sound/aica.c
@@ -1359,7 +1359,7 @@ aica_device::aica_device(const machine_config &mconfig, const char *tag, device_
: device_t(mconfig, AICA, "AICA", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(aica_state));
+ m_token = global_alloc_clear(aica_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/astrocde.c b/src/emu/sound/astrocde.c
index f8518b452a6..4977ff84c3e 100644
--- a/src/emu/sound/astrocde.c
+++ b/src/emu/sound/astrocde.c
@@ -307,7 +307,7 @@ astrocade_device::astrocade_device(const machine_config &mconfig, const char *ta
: device_t(mconfig, ASTROCADE, "Astrocade", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(astrocade_state));
+ m_token = global_alloc_clear(astrocade_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/ay8910.c b/src/emu/sound/ay8910.c
index 752cc08b188..e0ecde275b1 100644
--- a/src/emu/sound/ay8910.c
+++ b/src/emu/sound/ay8910.c
@@ -1042,13 +1042,13 @@ ay8910_device::ay8910_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, AY8910, "AY-3-8910A", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ay8910_context));
+ m_token = global_alloc_clear(ay8910_context);
}
ay8910_device::ay8910_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ay8910_context));
+ m_token = global_alloc_clear(ay8910_context);
}
//-------------------------------------------------
diff --git a/src/emu/sound/beep.c b/src/emu/sound/beep.c
index f5eefa37748..6eed349fc18 100644
--- a/src/emu/sound/beep.c
+++ b/src/emu/sound/beep.c
@@ -168,7 +168,7 @@ beep_device::beep_device(const machine_config &mconfig, const char *tag, device_
: device_t(mconfig, BEEP, "Beep", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(beep_state));
+ m_token = global_alloc_clear(beep_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/c140.c b/src/emu/sound/c140.c
index a3fbbe2a03a..d2853f19324 100644
--- a/src/emu/sound/c140.c
+++ b/src/emu/sound/c140.c
@@ -480,7 +480,7 @@ c140_device::c140_device(const machine_config &mconfig, const char *tag, device_
: device_t(mconfig, C140, "C140", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(c140_state));
+ m_token = global_alloc_clear(c140_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/c6280.c b/src/emu/sound/c6280.c
index 42244662734..978b5f7be6b 100644
--- a/src/emu/sound/c6280.c
+++ b/src/emu/sound/c6280.c
@@ -350,7 +350,7 @@ c6280_device::c6280_device(const machine_config &mconfig, const char *tag, devic
: device_t(mconfig, C6280, "HuC6280", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(c6280_t));
+ m_token = global_alloc_clear(c6280_t);
}
//-------------------------------------------------
diff --git a/src/emu/sound/cdda.c b/src/emu/sound/cdda.c
index 64cf49a3573..202975fcb6f 100644
--- a/src/emu/sound/cdda.c
+++ b/src/emu/sound/cdda.c
@@ -318,7 +318,7 @@ cdda_device::cdda_device(const machine_config &mconfig, const char *tag, device_
: device_t(mconfig, CDDA, "CD/DA", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(cdda_info));
+ m_token = global_alloc_clear(cdda_info);
}
//-------------------------------------------------
diff --git a/src/emu/sound/cem3394.c b/src/emu/sound/cem3394.c
index 0b1eb89ccb6..880400f2da6 100644
--- a/src/emu/sound/cem3394.c
+++ b/src/emu/sound/cem3394.c
@@ -562,7 +562,7 @@ cem3394_device::cem3394_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, CEM3394, "CEM3394", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(cem3394_state));
+ m_token = global_alloc_clear(cem3394_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/digitalk.c b/src/emu/sound/digitalk.c
index 776eaacb611..eddca381229 100644
--- a/src/emu/sound/digitalk.c
+++ b/src/emu/sound/digitalk.c
@@ -696,7 +696,7 @@ digitalker_device::digitalker_device(const machine_config &mconfig, const char *
: device_t(mconfig, DIGITALKER, "Digitalker", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(digitalker));
+ m_token = global_alloc_clear(digitalker);
}
//-------------------------------------------------
diff --git a/src/emu/sound/dmadac.c b/src/emu/sound/dmadac.c
index b941f6c237d..cd7ea095d1b 100644
--- a/src/emu/sound/dmadac.c
+++ b/src/emu/sound/dmadac.c
@@ -239,7 +239,7 @@ dmadac_sound_device::dmadac_sound_device(const machine_config &mconfig, const ch
: device_t(mconfig, DMADAC, "DMA-driven DAC", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(dmadac_state));
+ m_token = global_alloc_clear(dmadac_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/es5506.c b/src/emu/sound/es5506.c
index 9a2c1b9a6aa..40875d9530e 100644
--- a/src/emu/sound/es5506.c
+++ b/src/emu/sound/es5506.c
@@ -2137,14 +2137,14 @@ es5506_device::es5506_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, ES5506, "ES5506", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(es5506_state));
+ m_token = global_alloc_clear(es5506_state);
}
es5506_device::es5506_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(es5506_state));
+ m_token = global_alloc_clear(es5506_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/es8712.c b/src/emu/sound/es8712.c
index e5cdfb2178b..2464837cfc0 100644
--- a/src/emu/sound/es8712.c
+++ b/src/emu/sound/es8712.c
@@ -384,7 +384,7 @@ es8712_device::es8712_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, ES8712, "ES8712", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(es8712_state));
+ m_token = global_alloc_clear(es8712_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/flt_rc.c b/src/emu/sound/flt_rc.c
index 9d2d621e12f..1b67f1e2a01 100644
--- a/src/emu/sound/flt_rc.c
+++ b/src/emu/sound/flt_rc.c
@@ -116,7 +116,7 @@ filter_rc_device::filter_rc_device(const machine_config &mconfig, const char *ta
: device_t(mconfig, FILTER_RC, "RC Filter", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(filter_rc_state));
+ m_token = global_alloc_clear(filter_rc_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/flt_vol.c b/src/emu/sound/flt_vol.c
index 5b58fb8af85..276de57d29c 100644
--- a/src/emu/sound/flt_vol.c
+++ b/src/emu/sound/flt_vol.c
@@ -49,7 +49,7 @@ filter_volume_device::filter_volume_device(const machine_config &mconfig, const
: device_t(mconfig, FILTER_VOLUME, "Volume Filter", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(filter_volume_state));
+ m_token = global_alloc_clear(filter_volume_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/gaelco.c b/src/emu/sound/gaelco.c
index 0713347635c..0fa01c919fb 100644
--- a/src/emu/sound/gaelco.c
+++ b/src/emu/sound/gaelco.c
@@ -288,14 +288,14 @@ gaelco_gae1_device::gaelco_gae1_device(const machine_config &mconfig, const char
: device_t(mconfig, GAELCO_GAE1, "Gaelco GAE1", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(gaelco_sound_state));
+ m_token = global_alloc_clear(gaelco_sound_state);
}
gaelco_gae1_device::gaelco_gae1_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(gaelco_sound_state));
+ m_token = global_alloc_clear(gaelco_sound_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/hc55516.c b/src/emu/sound/hc55516.c
index 07905fe6e7d..d8cb1061c01 100644
--- a/src/emu/sound/hc55516.c
+++ b/src/emu/sound/hc55516.c
@@ -299,13 +299,13 @@ hc55516_device::hc55516_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, HC55516, "HC-55516", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(hc55516_state));
+ m_token = global_alloc_clear(hc55516_state);
}
hc55516_device::hc55516_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(hc55516_state));
+ m_token = global_alloc_clear(hc55516_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/iremga20.c b/src/emu/sound/iremga20.c
index b63ea7f3b38..aeddb877248 100644
--- a/src/emu/sound/iremga20.c
+++ b/src/emu/sound/iremga20.c
@@ -269,7 +269,7 @@ iremga20_device::iremga20_device(const machine_config &mconfig, const char *tag,
: device_t(mconfig, IREMGA20, "Irem GA20", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ga20_state));
+ m_token = global_alloc_clear(ga20_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/k005289.c b/src/emu/sound/k005289.c
index 94025526d6a..8f9fc6b6768 100644
--- a/src/emu/sound/k005289.c
+++ b/src/emu/sound/k005289.c
@@ -250,7 +250,7 @@ k005289_device::k005289_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, K005289, "K005289", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k005289_state));
+ m_token = global_alloc_clear(k005289_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/k007232.c b/src/emu/sound/k007232.c
index 08c2653d55d..7c520aed508 100644
--- a/src/emu/sound/k007232.c
+++ b/src/emu/sound/k007232.c
@@ -449,7 +449,7 @@ k007232_device::k007232_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, K007232, "K007232", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(KDAC_A_PCM));
+ m_token = global_alloc_clear(KDAC_A_PCM);
}
//-------------------------------------------------
diff --git a/src/emu/sound/k051649.c b/src/emu/sound/k051649.c
index faef40078de..ed9e2b9b059 100644
--- a/src/emu/sound/k051649.c
+++ b/src/emu/sound/k051649.c
@@ -286,7 +286,7 @@ k051649_device::k051649_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, K051649, "K051649", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k051649_state));
+ m_token = global_alloc_clear(k051649_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/k053260.c b/src/emu/sound/k053260.c
index 46718e65789..3707102c227 100644
--- a/src/emu/sound/k053260.c
+++ b/src/emu/sound/k053260.c
@@ -441,7 +441,7 @@ k053260_device::k053260_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, K053260, "K053260", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k053260_state));
+ m_token = global_alloc_clear(k053260_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/k056800.c b/src/emu/sound/k056800.c
index a8355619dab..df037f37e74 100644
--- a/src/emu/sound/k056800.c
+++ b/src/emu/sound/k056800.c
@@ -168,7 +168,7 @@ const device_type K056800 = &device_creator<k056800_device>;
k056800_device::k056800_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K056800, "Konami 056800 MIRAC", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k056800_state));
+ m_token = global_alloc_clear(k056800_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/msm5205.c b/src/emu/sound/msm5205.c
index c50a3035dcc..0271d9b4e16 100644
--- a/src/emu/sound/msm5205.c
+++ b/src/emu/sound/msm5205.c
@@ -346,13 +346,13 @@ msm5205_device::msm5205_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, MSM5205, "MSM5205", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(msm5205_state));
+ m_token = global_alloc_clear(msm5205_state);
}
msm5205_device::msm5205_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(msm5205_state));
+ m_token = global_alloc_clear(msm5205_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/msm5232.c b/src/emu/sound/msm5232.c
index b780bdd8ab1..4bc06d28404 100644
--- a/src/emu/sound/msm5232.c
+++ b/src/emu/sound/msm5232.c
@@ -856,7 +856,7 @@ msm5232_device::msm5232_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, MSM5232, "MSM5232", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(msm5232_state));
+ m_token = global_alloc_clear(msm5232_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/multipcm.c b/src/emu/sound/multipcm.c
index 5a2f036229e..a8d1dd01c76 100644
--- a/src/emu/sound/multipcm.c
+++ b/src/emu/sound/multipcm.c
@@ -678,7 +678,7 @@ multipcm_device::multipcm_device(const machine_config &mconfig, const char *tag,
: device_t(mconfig, MULTIPCM, "Sega/Yamaha 315-5560", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(MultiPCM));
+ m_token = global_alloc_clear(MultiPCM);
}
//-------------------------------------------------
diff --git a/src/emu/sound/n63701x.c b/src/emu/sound/n63701x.c
index 3c60e7a284c..da44b0b0bd2 100644
--- a/src/emu/sound/n63701x.c
+++ b/src/emu/sound/n63701x.c
@@ -159,7 +159,7 @@ namco_63701x_device::namco_63701x_device(const machine_config &mconfig, const ch
: device_t(mconfig, NAMCO_63701X, "Namco 63701X", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(namco_63701x));
+ m_token = global_alloc_clear(namco_63701x);
}
//-------------------------------------------------
diff --git a/src/emu/sound/namco.c b/src/emu/sound/namco.c
index cccd569b686..5656b0649e7 100644
--- a/src/emu/sound/namco.c
+++ b/src/emu/sound/namco.c
@@ -819,14 +819,14 @@ namco_device::namco_device(const machine_config &mconfig, const char *tag, devic
: device_t(mconfig, NAMCO, "Namco", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(namco_sound));
+ m_token = global_alloc_clear(namco_sound);
}
namco_device::namco_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(namco_sound));
+ m_token = global_alloc_clear(namco_sound);
}
//-------------------------------------------------
diff --git a/src/emu/sound/nes_apu.c b/src/emu/sound/nes_apu.c
index 84b6ab03ceb..49586758a91 100644
--- a/src/emu/sound/nes_apu.c
+++ b/src/emu/sound/nes_apu.c
@@ -770,7 +770,7 @@ nesapu_device::nesapu_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, NES, "N2A03", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(nesapu_state));
+ m_token = global_alloc_clear(nesapu_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/nile.c b/src/emu/sound/nile.c
index 8f58f480177..483a7cbf879 100644
--- a/src/emu/sound/nile.c
+++ b/src/emu/sound/nile.c
@@ -235,7 +235,7 @@ nile_device::nile_device(const machine_config &mconfig, const char *tag, device_
: device_t(mconfig, NILE, "NiLe", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(nile_state));
+ m_token = global_alloc_clear(nile_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/okim6258.c b/src/emu/sound/okim6258.c
index 8b0160777c7..2ba9862ba11 100644
--- a/src/emu/sound/okim6258.c
+++ b/src/emu/sound/okim6258.c
@@ -358,7 +358,7 @@ okim6258_device::okim6258_device(const machine_config &mconfig, const char *tag,
: device_t(mconfig, OKIM6258, "OKI6258", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(okim6258_state));
+ m_token = global_alloc_clear(okim6258_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/okim6376.c b/src/emu/sound/okim6376.c
index 8b88c33ff5d..3c8c3b24da0 100644
--- a/src/emu/sound/okim6376.c
+++ b/src/emu/sound/okim6376.c
@@ -624,7 +624,7 @@ okim6376_device::okim6376_device(const machine_config &mconfig, const char *tag,
: device_t(mconfig, OKIM6376, "OKI6376", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(okim6376_state));
+ m_token = global_alloc_clear(okim6376_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/qsound.c b/src/emu/sound/qsound.c
index 1d89ac5cdb1..0e37d44fdac 100644
--- a/src/emu/sound/qsound.c
+++ b/src/emu/sound/qsound.c
@@ -375,7 +375,7 @@ qsound_device::qsound_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, QSOUND, "Q-Sound", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(qsound_state));
+ m_token = global_alloc_clear(qsound_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/rf5c400.c b/src/emu/sound/rf5c400.c
index c776ab65875..4543ea03b01 100644
--- a/src/emu/sound/rf5c400.c
+++ b/src/emu/sound/rf5c400.c
@@ -562,7 +562,7 @@ rf5c400_device::rf5c400_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, RF5C400, "RF5C400", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(rf5c400_state));
+ m_token = global_alloc_clear(rf5c400_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/rf5c68.c b/src/emu/sound/rf5c68.c
index a2516dc4323..f01591e7ad7 100644
--- a/src/emu/sound/rf5c68.c
+++ b/src/emu/sound/rf5c68.c
@@ -262,7 +262,7 @@ rf5c68_device::rf5c68_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, RF5C68, "RF5C68", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(rf5c68_state));
+ m_token = global_alloc_clear(rf5c68_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/s14001a.c b/src/emu/sound/s14001a.c
index caa29f74195..31f7bb3e1b9 100644
--- a/src/emu/sound/s14001a.c
+++ b/src/emu/sound/s14001a.c
@@ -635,7 +635,7 @@ s14001a_device::s14001a_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, S14001A, "S14001A", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(S14001AChip));
+ m_token = global_alloc_clear(S14001AChip);
}
//-------------------------------------------------
diff --git a/src/emu/sound/s2636.c b/src/emu/sound/s2636.c
index 6a877d5bd0c..81ab168fad8 100644
--- a/src/emu/sound/s2636.c
+++ b/src/emu/sound/s2636.c
@@ -87,7 +87,7 @@ s2636_sound_device::s2636_sound_device(const machine_config &mconfig, const char
: device_t(mconfig, S2636_SOUND, "S2636", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(s2636_sound));
+ m_token = global_alloc_clear(s2636_sound);
}
//-------------------------------------------------
diff --git a/src/emu/sound/saa1099.c b/src/emu/sound/saa1099.c
index 8f2a185cf6e..52771ee267b 100644
--- a/src/emu/sound/saa1099.c
+++ b/src/emu/sound/saa1099.c
@@ -441,7 +441,7 @@ saa1099_device::saa1099_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, SAA1099, "SAA1099", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(saa1099_state));
+ m_token = global_alloc_clear(saa1099_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/scsp.c b/src/emu/sound/scsp.c
index f830ba2e630..84daeb0658d 100644
--- a/src/emu/sound/scsp.c
+++ b/src/emu/sound/scsp.c
@@ -1361,7 +1361,7 @@ scsp_device::scsp_device(const machine_config &mconfig, const char *tag, device_
: device_t(mconfig, SCSP, "SCSP", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(scsp_state));
+ m_token = global_alloc_clear(scsp_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/segapcm.c b/src/emu/sound/segapcm.c
index d16e9c44020..ee9a1595307 100644
--- a/src/emu/sound/segapcm.c
+++ b/src/emu/sound/segapcm.c
@@ -153,7 +153,7 @@ segapcm_device::segapcm_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, SEGAPCM, "Sega PCM", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(segapcm_state));
+ m_token = global_alloc_clear(segapcm_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/sn76477.c b/src/emu/sound/sn76477.c
index e65cb636634..31b545b0179 100644
--- a/src/emu/sound/sn76477.c
+++ b/src/emu/sound/sn76477.c
@@ -2472,7 +2472,7 @@ sn76477_device::sn76477_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, SN76477, "SN76477", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(sn76477_state));
+ m_token = global_alloc_clear(sn76477_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/sn76496.c b/src/emu/sound/sn76496.c
index 6cf452c789c..0b43a08f291 100644
--- a/src/emu/sound/sn76496.c
+++ b/src/emu/sound/sn76496.c
@@ -491,13 +491,13 @@ sn76496_device::sn76496_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, SN76496, "SN76496", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(sn76496_state));
+ m_token = global_alloc_clear(sn76496_state);
}
sn76496_device::sn76496_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(sn76496_state));
+ m_token = global_alloc_clear(sn76496_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/snkwave.c b/src/emu/sound/snkwave.c
index 767f4502ebe..c15089341b5 100644
--- a/src/emu/sound/snkwave.c
+++ b/src/emu/sound/snkwave.c
@@ -164,7 +164,7 @@ snkwave_device::snkwave_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, SNKWAVE, "SNK Wave", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(snkwave_state));
+ m_token = global_alloc_clear(snkwave_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/sp0250.c b/src/emu/sound/sp0250.c
index 2da5c889f72..6eda5e6b7d3 100644
--- a/src/emu/sound/sp0250.c
+++ b/src/emu/sound/sp0250.c
@@ -243,7 +243,7 @@ sp0250_device::sp0250_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, SP0250, "SP0250", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(sp0250_state));
+ m_token = global_alloc_clear(sp0250_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/sp0256.c b/src/emu/sound/sp0256.c
index 77ca2989f99..83cfe5be02f 100644
--- a/src/emu/sound/sp0256.c
+++ b/src/emu/sound/sp0256.c
@@ -1370,7 +1370,7 @@ sp0256_device::sp0256_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, SP0256, "SP0256", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(sp0256_state));
+ m_token = global_alloc_clear(sp0256_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/speaker.c b/src/emu/sound/speaker.c
index 62689bb25df..3f12872eab6 100644
--- a/src/emu/sound/speaker.c
+++ b/src/emu/sound/speaker.c
@@ -423,7 +423,7 @@ speaker_sound_device::speaker_sound_device(const machine_config &mconfig, const
: device_t(mconfig, SPEAKER_SOUND, "Speaker", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(speaker_state));
+ m_token = global_alloc_clear(speaker_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/st0016.c b/src/emu/sound/st0016.c
index 9f17d469f31..64faa39f232 100644
--- a/src/emu/sound/st0016.c
+++ b/src/emu/sound/st0016.c
@@ -150,7 +150,7 @@ st0016_device::st0016_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, ST0016, "ST0016", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(st0016_state));
+ m_token = global_alloc_clear(st0016_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/t6w28.c b/src/emu/sound/t6w28.c
index 437fbf24fd0..ad83a948593 100644
--- a/src/emu/sound/t6w28.c
+++ b/src/emu/sound/t6w28.c
@@ -370,7 +370,7 @@ t6w28_device::t6w28_device(const machine_config &mconfig, const char *tag, devic
: device_t(mconfig, T6W28, "T6W28", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(t6w28_state));
+ m_token = global_alloc_clear(t6w28_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/tiaintf.c b/src/emu/sound/tiaintf.c
index 0fcce138016..ffe1ed56943 100644
--- a/src/emu/sound/tiaintf.c
+++ b/src/emu/sound/tiaintf.c
@@ -52,7 +52,7 @@ tia_device::tia_device(const machine_config &mconfig, const char *tag, device_t
: device_t(mconfig, TIA, "TIA", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tia_state));
+ m_token = global_alloc_clear(tia_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/tms3615.c b/src/emu/sound/tms3615.c
index 62d0e3967e6..07152772a7f 100644
--- a/src/emu/sound/tms3615.c
+++ b/src/emu/sound/tms3615.c
@@ -99,7 +99,7 @@ tms3615_device::tms3615_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, TMS3615, "TMS3615", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tms_state));
+ m_token = global_alloc_clear(tms_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/tms36xx.c b/src/emu/sound/tms36xx.c
index 75de84d0cef..ad9e0c62569 100644
--- a/src/emu/sound/tms36xx.c
+++ b/src/emu/sound/tms36xx.c
@@ -529,7 +529,7 @@ tms36xx_device::tms36xx_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, TMS36XX, "TMS36XX", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tms_state));
+ m_token = global_alloc_clear(tms_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/tms5110.c b/src/emu/sound/tms5110.c
index 7f554169f61..f25d1125618 100644
--- a/src/emu/sound/tms5110.c
+++ b/src/emu/sound/tms5110.c
@@ -1501,13 +1501,13 @@ tms5110_device::tms5110_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, TMS5110, "TMS5110", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tms5110_state));
+ m_token = global_alloc_clear(tms5110_state);
}
tms5110_device::tms5110_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tms5110_state));
+ m_token = global_alloc_clear(tms5110_state);
}
//-------------------------------------------------
@@ -1717,7 +1717,7 @@ const device_type TMSPROM = &device_creator<tmsprom_device>;
tmsprom_device::tmsprom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TMSPROM, "TMSPROM", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tmsprom_state));
+ m_token = global_alloc_clear(tmsprom_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/tms5220.c b/src/emu/sound/tms5220.c
index dabe1633b28..e8f8f937dd3 100644
--- a/src/emu/sound/tms5220.c
+++ b/src/emu/sound/tms5220.c
@@ -2036,13 +2036,13 @@ tms5220_device::tms5220_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, TMS5220, "TMS5220", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tms5220_state));
+ m_token = global_alloc_clear(tms5220_state);
}
tms5220_device::tms5220_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tms5220_state));
+ m_token = global_alloc_clear(tms5220_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/upd7759.c b/src/emu/sound/upd7759.c
index 23a43ab722f..329278a278f 100644
--- a/src/emu/sound/upd7759.c
+++ b/src/emu/sound/upd7759.c
@@ -791,13 +791,13 @@ upd7759_device::upd7759_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, UPD7759, "uPD7759", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(upd7759_state));
+ m_token = global_alloc_clear(upd7759_state);
}
upd7759_device::upd7759_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(upd7759_state));
+ m_token = global_alloc_clear(upd7759_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/vlm5030.c b/src/emu/sound/vlm5030.c
index 298a90f37c7..024ea6acf06 100644
--- a/src/emu/sound/vlm5030.c
+++ b/src/emu/sound/vlm5030.c
@@ -693,7 +693,7 @@ vlm5030_device::vlm5030_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, VLM5030, "VLM5030", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(vlm5030_state));
+ m_token = global_alloc_clear(vlm5030_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/vrender0.c b/src/emu/sound/vrender0.c
index ef3e267aea8..23cc7ba0b76 100644
--- a/src/emu/sound/vrender0.c
+++ b/src/emu/sound/vrender0.c
@@ -244,7 +244,7 @@ vrender0_device::vrender0_device(const machine_config &mconfig, const char *tag,
: device_t(mconfig, VRENDER0, "VRender0", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(vr0_state));
+ m_token = global_alloc_clear(vr0_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/x1_010.c b/src/emu/sound/x1_010.c
index 7a486e49a97..8f118a86803 100644
--- a/src/emu/sound/x1_010.c
+++ b/src/emu/sound/x1_010.c
@@ -289,7 +289,7 @@ x1_010_device::x1_010_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, X1_010, "X1-010", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(x1_010_state));
+ m_token = global_alloc_clear(x1_010_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/ymf271.c b/src/emu/sound/ymf271.c
index 35a278ac1f5..309fbfa122e 100644
--- a/src/emu/sound/ymf271.c
+++ b/src/emu/sound/ymf271.c
@@ -1816,7 +1816,7 @@ ymf271_device::ymf271_device(const machine_config &mconfig, const char *tag, dev
: device_t(mconfig, YMF271, "YMF271", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(YMF271Chip));
+ m_token = global_alloc_clear(YMF271Chip);
}
//-------------------------------------------------
diff --git a/src/emu/sound/ymf278b.c b/src/emu/sound/ymf278b.c
index 6ea6dbde17e..f23992bdf1a 100644
--- a/src/emu/sound/ymf278b.c
+++ b/src/emu/sound/ymf278b.c
@@ -1093,7 +1093,7 @@ ymf278b_device::ymf278b_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, YMF278B, "YMF278B", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(YMF278BChip));
+ m_token = global_alloc_clear(YMF278BChip);
}
//-------------------------------------------------
diff --git a/src/emu/sound/ymz280b.c b/src/emu/sound/ymz280b.c
index 5be471486f5..ebd8e3afd69 100644
--- a/src/emu/sound/ymz280b.c
+++ b/src/emu/sound/ymz280b.c
@@ -1051,7 +1051,7 @@ ymz280b_device::ymz280b_device(const machine_config &mconfig, const char *tag, d
: device_t(mconfig, YMZ280B, "YMZ280B", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ymz280b_state));
+ m_token = global_alloc_clear(ymz280b_state);
}
//-------------------------------------------------
diff --git a/src/emu/sound/zsg2.c b/src/emu/sound/zsg2.c
index 4a52c245b84..11e3dde704f 100644
--- a/src/emu/sound/zsg2.c
+++ b/src/emu/sound/zsg2.c
@@ -235,7 +235,7 @@ zsg2_device::zsg2_device(const machine_config &mconfig, const char *tag, device_
: device_t(mconfig, ZSG2, "ZSG-2", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(zsg2_state));
+ m_token = global_alloc_clear(zsg2_state);
}
//-------------------------------------------------
diff --git a/src/emu/video/hd63484.c b/src/emu/video/hd63484.c
index 1d683aefd20..1c6705186d9 100644
--- a/src/emu/video/hd63484.c
+++ b/src/emu/video/hd63484.c
@@ -1581,7 +1581,7 @@ const device_type HD63484 = &device_creator<hd63484_device>;
hd63484_device::hd63484_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, HD63484, "HD63484", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(hd63484_state));
+ m_token = global_alloc_clear(hd63484_state);
}
//-------------------------------------------------
diff --git a/src/emu/video/i8275.c b/src/emu/video/i8275.c
index 73a82976353..73e4f6beb0b 100644
--- a/src/emu/video/i8275.c
+++ b/src/emu/video/i8275.c
@@ -591,7 +591,7 @@ const device_type I8275 = &device_creator<i8275_device>;
i8275_device::i8275_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, I8275, "Intel 8275", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(i8275_t));
+ m_token = global_alloc_clear(i8275_t);
}
//-------------------------------------------------
diff --git a/src/emu/video/s2636.c b/src/emu/video/s2636.c
index 82a16e82d9b..a9fe538974c 100644
--- a/src/emu/video/s2636.c
+++ b/src/emu/video/s2636.c
@@ -369,7 +369,7 @@ const device_type S2636 = &device_creator<s2636_device>;
s2636_device::s2636_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, S2636, "Signetics 2636", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(s2636_state));
+ m_token = global_alloc_clear(s2636_state);
}
//-------------------------------------------------
diff --git a/src/emu/video/tlc34076.c b/src/emu/video/tlc34076.c
index 00799fcbe74..34bb369d8e0 100644
--- a/src/emu/video/tlc34076.c
+++ b/src/emu/video/tlc34076.c
@@ -285,7 +285,7 @@ const device_type TLC34076 = &device_creator<tlc34076_device>;
tlc34076_device::tlc34076_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TLC34076, "TLC34076", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tlc34076_state));
+ m_token = global_alloc_clear(tlc34076_state);
}
//-------------------------------------------------
diff --git a/src/emu/video/tms9927.c b/src/emu/video/tms9927.c
index d8b43665474..96abe95c6ec 100644
--- a/src/emu/video/tms9927.c
+++ b/src/emu/video/tms9927.c
@@ -311,12 +311,12 @@ const device_type TMS9927 = &device_creator<tms9927_device>;
tms9927_device::tms9927_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TMS9927, "TMS9927", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tms9927_state));
+ m_token = global_alloc_clear(tms9927_state);
}
tms9927_device::tms9927_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tms9927_state));
+ m_token = global_alloc_clear(tms9927_state);
}
//-------------------------------------------------
diff --git a/src/emu/video/voodoo.c b/src/emu/video/voodoo.c
index abf53c2b3b5..8643a9e835d 100644
--- a/src/emu/video/voodoo.c
+++ b/src/emu/video/voodoo.c
@@ -5658,7 +5658,7 @@ static void dump_rasterizer_stats(voodoo_state *v)
voodoo_device::voodoo_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(voodoo_state));
+ m_token = global_alloc_clear(voodoo_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/amiga.c b/src/mame/audio/amiga.c
index bf2f61ef889..c66c754952a 100644
--- a/src/mame/audio/amiga.c
+++ b/src/mame/audio/amiga.c
@@ -282,7 +282,7 @@ amiga_sound_device::amiga_sound_device(const machine_config &mconfig, const char
: device_t(mconfig, AMIGA, "Amiga Paula", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(amiga_audio));
+ m_token = global_alloc_clear(amiga_audio);
}
//-------------------------------------------------
diff --git a/src/mame/audio/beezer.c b/src/mame/audio/beezer.c
index dabe2664f94..69a5326f5d2 100644
--- a/src/mame/audio/beezer.c
+++ b/src/mame/audio/beezer.c
@@ -400,7 +400,7 @@ beezer_sound_device::beezer_sound_device(const machine_config &mconfig, const ch
: device_t(mconfig, BEEZER, "beezer SFX", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(beezer_sound_state));
+ m_token = global_alloc_clear(beezer_sound_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/cps3.c b/src/mame/audio/cps3.c
index f5e1da64d91..38b8b4396f5 100644
--- a/src/mame/audio/cps3.c
+++ b/src/mame/audio/cps3.c
@@ -175,7 +175,7 @@ cps3_sound_device::cps3_sound_device(const machine_config &mconfig, const char *
: device_t(mconfig, CPS3, "CPS3 Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(cps3_sound_state));
+ m_token = global_alloc_clear(cps3_sound_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/exidy.c b/src/mame/audio/exidy.c
index 5cbb742892f..56b0913ad2a 100644
--- a/src/mame/audio/exidy.c
+++ b/src/mame/audio/exidy.c
@@ -424,14 +424,14 @@ exidy_sound_device::exidy_sound_device(const machine_config &mconfig, const char
: device_t(mconfig, EXIDY, "Exidy SFX", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(exidy_sound_state));
+ m_token = global_alloc_clear(exidy_sound_state);
}
exidy_sound_device::exidy_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(exidy_sound_state));
+ m_token = global_alloc_clear(exidy_sound_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/exidy440.c b/src/mame/audio/exidy440.c
index ba636af2071..62479ec9fda 100644
--- a/src/mame/audio/exidy440.c
+++ b/src/mame/audio/exidy440.c
@@ -995,7 +995,7 @@ exidy440_sound_device::exidy440_sound_device(const machine_config &mconfig, cons
: device_t(mconfig, EXIDY440, "Exidy 440 CVSD", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(exidy440_audio_state));
+ m_token = global_alloc_clear(exidy440_audio_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/flower.c b/src/mame/audio/flower.c
index 53986a4b1d4..480553ecc93 100644
--- a/src/mame/audio/flower.c
+++ b/src/mame/audio/flower.c
@@ -360,7 +360,7 @@ flower_sound_device::flower_sound_device(const machine_config &mconfig, const ch
: device_t(mconfig, FLOWER, "Flower Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(flower_sound_state));
+ m_token = global_alloc_clear(flower_sound_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/geebee.c b/src/mame/audio/geebee.c
index 535ec7a970f..a30cb82cc94 100644
--- a/src/mame/audio/geebee.c
+++ b/src/mame/audio/geebee.c
@@ -149,7 +149,7 @@ geebee_sound_device::geebee_sound_device(const machine_config &mconfig, const ch
: device_t(mconfig, GEEBEE, "Gee Bee Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(geebee_sound_state));
+ m_token = global_alloc_clear(geebee_sound_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/gomoku.c b/src/mame/audio/gomoku.c
index 45be0d123fa..d940fef71ff 100644
--- a/src/mame/audio/gomoku.c
+++ b/src/mame/audio/gomoku.c
@@ -282,7 +282,7 @@ gomoku_sound_device::gomoku_sound_device(const machine_config &mconfig, const ch
: device_t(mconfig, GOMOKU, "Gomoku Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(gomoku_sound_state));
+ m_token = global_alloc_clear(gomoku_sound_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/gridlee.c b/src/mame/audio/gridlee.c
index 433d21be805..f06536e6aed 100644
--- a/src/mame/audio/gridlee.c
+++ b/src/mame/audio/gridlee.c
@@ -185,7 +185,7 @@ gridlee_sound_device::gridlee_sound_device(const machine_config &mconfig, const
: device_t(mconfig, GRIDLEE, "Gridlee Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(gridlee_sound_state));
+ m_token = global_alloc_clear(gridlee_sound_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/hyprolyb.c b/src/mame/audio/hyprolyb.c
index d763b82a687..8ed7102f7aa 100644
--- a/src/mame/audio/hyprolyb.c
+++ b/src/mame/audio/hyprolyb.c
@@ -141,7 +141,7 @@ hyprolyb_adpcm_device::hyprolyb_adpcm_device(const machine_config &mconfig, cons
: device_t(mconfig, HYPROLYB_ADPCM, "Hyper Olympics Audio", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(hyprolyb_adpcm_state));
+ m_token = global_alloc_clear(hyprolyb_adpcm_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/irem.c b/src/mame/audio/irem.c
index 3a1bd93021b..318e685e9bb 100644
--- a/src/mame/audio/irem.c
+++ b/src/mame/audio/irem.c
@@ -491,7 +491,7 @@ irem_audio_device::irem_audio_device(const machine_config &mconfig, const char *
: device_t(mconfig, IREM_AUDIO, "Irem Audio", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(irem_audio_state));
+ m_token = global_alloc_clear(irem_audio_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/leland.c b/src/mame/audio/leland.c
index 6e365ab4d63..fd842def0ad 100644
--- a/src/mame/audio/leland.c
+++ b/src/mame/audio/leland.c
@@ -576,14 +576,14 @@ leland_sound_device::leland_sound_device(const machine_config &mconfig, const ch
: device_t(mconfig, LELAND, "Leland DAC", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(leland_sound_state));
+ m_token = global_alloc_clear(leland_sound_state);
}
leland_sound_device::leland_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(leland_sound_state));
+ m_token = global_alloc_clear(leland_sound_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/m72.c b/src/mame/audio/m72.c
index 6ce6caa431d..21e392b4382 100644
--- a/src/mame/audio/m72.c
+++ b/src/mame/audio/m72.c
@@ -259,7 +259,7 @@ m72_audio_device::m72_audio_device(const machine_config &mconfig, const char *ta
: device_t(mconfig, M72, "M72 Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(m72_audio_state));
+ m_token = global_alloc_clear(m72_audio_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/micro3d.c b/src/mame/audio/micro3d.c
index f900cbce67a..223964ed72d 100644
--- a/src/mame/audio/micro3d.c
+++ b/src/mame/audio/micro3d.c
@@ -407,7 +407,7 @@ micro3d_sound_device::micro3d_sound_device(const machine_config &mconfig, const
: device_t(mconfig, MICRO3D, "Microprose Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(noise_state));
+ m_token = global_alloc_clear(noise_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/namco52.c b/src/mame/audio/namco52.c
index 3049c523b42..62debf8e664 100644
--- a/src/mame/audio/namco52.c
+++ b/src/mame/audio/namco52.c
@@ -228,7 +228,7 @@ const device_type NAMCO_52XX = &device_creator<namco_52xx_device>;
namco_52xx_device::namco_52xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, NAMCO_52XX, "Namco 52xx", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(namco_52xx_state));
+ m_token = global_alloc_clear(namco_52xx_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/namco54.c b/src/mame/audio/namco54.c
index 01ca6c0a4fb..5b056d80697 100644
--- a/src/mame/audio/namco54.c
+++ b/src/mame/audio/namco54.c
@@ -184,7 +184,7 @@ const device_type NAMCO_54XX = &device_creator<namco_54xx_device>;
namco_54xx_device::namco_54xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, NAMCO_54XX, "Namco 54xx", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(namco_54xx_state));
+ m_token = global_alloc_clear(namco_54xx_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/phoenix.c b/src/mame/audio/phoenix.c
index 12c6cf559f8..1cfdcef015b 100644
--- a/src/mame/audio/phoenix.c
+++ b/src/mame/audio/phoenix.c
@@ -576,7 +576,7 @@ phoenix_sound_device::phoenix_sound_device(const machine_config &mconfig, const
: device_t(mconfig, PHOENIX, "Phoenix Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(phoenix_sound_state));
+ m_token = global_alloc_clear(phoenix_sound_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/pleiads.c b/src/mame/audio/pleiads.c
index e78fa1bd372..1ea38250e8d 100644
--- a/src/mame/audio/pleiads.c
+++ b/src/mame/audio/pleiads.c
@@ -685,14 +685,14 @@ pleiads_sound_device::pleiads_sound_device(const machine_config &mconfig, const
: device_t(mconfig, PLEIADS, "Pleiads Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(pleiads_sound_state));
+ m_token = global_alloc_clear(pleiads_sound_state);
}
pleiads_sound_device::pleiads_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(pleiads_sound_state));
+ m_token = global_alloc_clear(pleiads_sound_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/polepos.c b/src/mame/audio/polepos.c
index d1e62c60bcc..421508cab6e 100644
--- a/src/mame/audio/polepos.c
+++ b/src/mame/audio/polepos.c
@@ -356,7 +356,7 @@ polepos_sound_device::polepos_sound_device(const machine_config &mconfig, const
: device_t(mconfig, POLEPOS, "Pole Position Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(polepos_sound_state));
+ m_token = global_alloc_clear(polepos_sound_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/redbaron.c b/src/mame/audio/redbaron.c
index 0e15a3ddf48..5bbf69e5796 100644
--- a/src/mame/audio/redbaron.c
+++ b/src/mame/audio/redbaron.c
@@ -231,7 +231,7 @@ redbaron_sound_device::redbaron_sound_device(const machine_config &mconfig, cons
: device_t(mconfig, REDBARON, "Red Baron Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(redbaron_sound_state));
+ m_token = global_alloc_clear(redbaron_sound_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/segasnd.c b/src/mame/audio/segasnd.c
index 3656261275b..7de521c7202 100644
--- a/src/mame/audio/segasnd.c
+++ b/src/mame/audio/segasnd.c
@@ -182,7 +182,7 @@ speech_sound_device::speech_sound_device(const machine_config &mconfig, const ch
: device_t(mconfig, SEGASPEECH, "Sega Speech Sound Board", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(speech_state));
+ m_token = global_alloc_clear(speech_state);
}
//-------------------------------------------------
@@ -885,7 +885,7 @@ usb_sound_device::usb_sound_device(const machine_config &mconfig, const char *ta
: device_t(mconfig, SEGAUSB, "Sega Universal Sound Board", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(usb_state));
+ m_token = global_alloc_clear(usb_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/seibu.c b/src/mame/audio/seibu.c
index 9f11923d629..a17a2953f25 100644
--- a/src/mame/audio/seibu.c
+++ b/src/mame/audio/seibu.c
@@ -607,7 +607,7 @@ seibu_adpcm_device::seibu_adpcm_device(const machine_config &mconfig, const char
: device_t(mconfig, SEIBU_ADPCM, "Seibu ADPCM", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(seibu_adpcm_state));
+ m_token = global_alloc_clear(seibu_adpcm_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/snes_snd.c b/src/mame/audio/snes_snd.c
index 6218b675f2c..98a5efe33fe 100644
--- a/src/mame/audio/snes_snd.c
+++ b/src/mame/audio/snes_snd.c
@@ -1366,7 +1366,7 @@ snes_sound_device::snes_sound_device(const machine_config &mconfig, const char *
: device_t(mconfig, SNES, "SNES Custom DSP (SPC700)", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(snes_sound_state));
+ m_token = global_alloc_clear(snes_sound_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/snk6502.c b/src/mame/audio/snk6502.c
index 755925a14bd..6f91a28fa29 100644
--- a/src/mame/audio/snk6502.c
+++ b/src/mame/audio/snk6502.c
@@ -1255,7 +1255,7 @@ snk6502_sound_device::snk6502_sound_device(const machine_config &mconfig, const
: device_t(mconfig, SNK6502, "snk6502 Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(snk6502_sound_state));
+ m_token = global_alloc_clear(snk6502_sound_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/taitosnd.c b/src/mame/audio/taitosnd.c
index cbebae68734..bfd3de5a818 100644
--- a/src/mame/audio/taitosnd.c
+++ b/src/mame/audio/taitosnd.c
@@ -317,7 +317,7 @@ const device_type TC0140SYT = &device_creator<tc0140syt_device>;
tc0140syt_device::tc0140syt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0140SYT, "Taito TC0140SYT", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tc0140syt_state));
+ m_token = global_alloc_clear(tc0140syt_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/tiamc1.c b/src/mame/audio/tiamc1.c
index f5f2ba7a1bf..80b10bb3623 100644
--- a/src/mame/audio/tiamc1.c
+++ b/src/mame/audio/tiamc1.c
@@ -335,7 +335,7 @@ tiamc1_sound_device::tiamc1_sound_device(const machine_config &mconfig, const ch
: device_t(mconfig, TIAMC1, "TIA-MC1 Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tiamc1_sound_state));
+ m_token = global_alloc_clear(tiamc1_sound_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/timeplt.c b/src/mame/audio/timeplt.c
index 929f51fa13e..406b6b3fc84 100644
--- a/src/mame/audio/timeplt.c
+++ b/src/mame/audio/timeplt.c
@@ -266,7 +266,7 @@ timeplt_audio_device::timeplt_audio_device(const machine_config &mconfig, const
: device_t(mconfig, TIMEPLT_AUDIO, "Time Pilot Audio", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(timeplt_audio_state));
+ m_token = global_alloc_clear(timeplt_audio_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/trackfld.c b/src/mame/audio/trackfld.c
index 986c53b50ff..b475e321b19 100644
--- a/src/mame/audio/trackfld.c
+++ b/src/mame/audio/trackfld.c
@@ -166,7 +166,7 @@ trackfld_audio_device::trackfld_audio_device(const machine_config &mconfig, cons
: device_t(mconfig, TRACKFLD_AUDIO, "Track And Field Audio", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(trackfld_audio_state));
+ m_token = global_alloc_clear(trackfld_audio_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/tx1.c b/src/mame/audio/tx1.c
index e2208c93167..97e11229a36 100644
--- a/src/mame/audio/tx1.c
+++ b/src/mame/audio/tx1.c
@@ -624,14 +624,14 @@ tx1_sound_device::tx1_sound_device(const machine_config &mconfig, const char *ta
: device_t(mconfig, TX1, "TX-1 Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tx1_sound_state));
+ m_token = global_alloc_clear(tx1_sound_state);
}
tx1_sound_device::tx1_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tx1_sound_state));
+ m_token = global_alloc_clear(tx1_sound_state);
}
//-------------------------------------------------
// device_config_complete - perform any
diff --git a/src/mame/audio/warpwarp.c b/src/mame/audio/warpwarp.c
index 925c688cbb0..a0095c32453 100644
--- a/src/mame/audio/warpwarp.c
+++ b/src/mame/audio/warpwarp.c
@@ -247,7 +247,7 @@ warpwarp_sound_device::warpwarp_sound_device(const machine_config &mconfig, cons
: device_t(mconfig, WARPWARP, "Warp Warp Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(warpwarp_sound_state));
+ m_token = global_alloc_clear(warpwarp_sound_state);
}
//-------------------------------------------------
diff --git a/src/mame/audio/wiping.c b/src/mame/audio/wiping.c
index 84d2a1a5195..ac04144598a 100644
--- a/src/mame/audio/wiping.c
+++ b/src/mame/audio/wiping.c
@@ -265,7 +265,7 @@ wiping_sound_device::wiping_sound_device(const machine_config &mconfig, const ch
: device_t(mconfig, WIPING, "Wiping Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(wiping_sound_state));
+ m_token = global_alloc_clear(wiping_sound_state);
}
//-------------------------------------------------
diff --git a/src/mame/drivers/mjkjidai.c b/src/mame/drivers/mjkjidai.c
index 7cc699b15cd..04659ec9ccd 100644
--- a/src/mame/drivers/mjkjidai.c
+++ b/src/mame/drivers/mjkjidai.c
@@ -106,7 +106,7 @@ mjkjidai_adpcm_device::mjkjidai_adpcm_device(const machine_config &mconfig, cons
: device_t(mconfig, MJKJIDAI, "Custom ADPCM", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(mjkjidai_adpcm_state));
+ m_token = global_alloc_clear(mjkjidai_adpcm_state);
}
//-------------------------------------------------
diff --git a/src/mame/drivers/renegade.c b/src/mame/drivers/renegade.c
index cad46273909..2ddd6e1a6d1 100644
--- a/src/mame/drivers/renegade.c
+++ b/src/mame/drivers/renegade.c
@@ -196,7 +196,7 @@ renegade_adpcm_device::renegade_adpcm_device(const machine_config &mconfig, cons
: device_t(mconfig, RENEGADE_ADPCM, "Renegade Custom ADPCM", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(renegade_adpcm_state));
+ m_token = global_alloc_clear(renegade_adpcm_state);
}
//-------------------------------------------------
diff --git a/src/mame/machine/buggychl.c b/src/mame/machine/buggychl.c
index fcab30b3058..3883e6ee8f1 100644
--- a/src/mame/machine/buggychl.c
+++ b/src/mame/machine/buggychl.c
@@ -239,7 +239,7 @@ const device_type BUGGYCHL_MCU = &device_creator<buggychl_mcu_device>;
buggychl_mcu_device::buggychl_mcu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, BUGGYCHL_MCU, "BuggyChl MCU", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(buggychl_mcu_state));
+ m_token = global_alloc_clear(buggychl_mcu_state);
}
//-------------------------------------------------
diff --git a/src/mame/machine/cd32.c b/src/mame/machine/cd32.c
index 966d9cd6314..68694bb6301 100644
--- a/src/mame/machine/cd32.c
+++ b/src/mame/machine/cd32.c
@@ -916,7 +916,7 @@ const device_type AKIKO = &device_creator<akiko_device>;
akiko_device::akiko_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, AKIKO, "Akiko", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(akiko_state));
+ m_token = global_alloc_clear(akiko_state);
}
//-------------------------------------------------
diff --git a/src/mame/machine/decocass.c b/src/mame/machine/decocass.c
index d6e08f74838..98d2b7a0f7f 100644
--- a/src/mame/machine/decocass.c
+++ b/src/mame/machine/decocass.c
@@ -2248,7 +2248,7 @@ const device_type DECOCASS_TAPE = &device_creator<decocass_tape_device>;
decocass_tape_device::decocass_tape_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, DECOCASS_TAPE, "DECO Cassette Tape", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tape_state));
+ m_token = global_alloc_clear(tape_state);
}
//-------------------------------------------------
diff --git a/src/mame/machine/gaelco3d.c b/src/mame/machine/gaelco3d.c
index 4d03d4920d4..8a09fc31ab7 100644
--- a/src/mame/machine/gaelco3d.c
+++ b/src/mame/machine/gaelco3d.c
@@ -500,7 +500,7 @@ const device_type GAELCO_SERIAL = &device_creator<gaelco_serial_device>;
gaelco_serial_device::gaelco_serial_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, GAELCO_SERIAL, "gaelco_serial", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(gaelco_serial_state));
+ m_token = global_alloc_clear(gaelco_serial_state);
}
//-------------------------------------------------
diff --git a/src/mame/machine/mathbox.c b/src/mame/machine/mathbox.c
index 8123d631372..5dfb4c8faba 100644
--- a/src/mame/machine/mathbox.c
+++ b/src/mame/machine/mathbox.c
@@ -342,7 +342,7 @@ const device_type MATHBOX = &device_creator<mathbox_device>;
mathbox_device::mathbox_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, MATHBOX, "MATHBOX", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(mathbox_state));
+ m_token = global_alloc_clear(mathbox_state);
}
//-------------------------------------------------
diff --git a/src/mame/machine/namco06.c b/src/mame/machine/namco06.c
index 675e62ae059..b0844525f43 100644
--- a/src/mame/machine/namco06.c
+++ b/src/mame/machine/namco06.c
@@ -292,7 +292,7 @@ const device_type NAMCO_06XX = &device_creator<namco_06xx_device>;
namco_06xx_device::namco_06xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, NAMCO_06XX, "Namco 06xx", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(namco_06xx_state));
+ m_token = global_alloc_clear(namco_06xx_state);
}
//-------------------------------------------------
diff --git a/src/mame/machine/namco50.c b/src/mame/machine/namco50.c
index 64588ca61c0..f697358d837 100644
--- a/src/mame/machine/namco50.c
+++ b/src/mame/machine/namco50.c
@@ -296,7 +296,7 @@ const device_type NAMCO_50XX = &device_creator<namco_50xx_device>;
namco_50xx_device::namco_50xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, NAMCO_50XX, "Namco 50xx", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(namco_50xx_state));
+ m_token = global_alloc_clear(namco_50xx_state);
}
//-------------------------------------------------
diff --git a/src/mame/machine/namco51.c b/src/mame/machine/namco51.c
index 026a6ce8cf6..f9ef2ecf4c9 100644
--- a/src/mame/machine/namco51.c
+++ b/src/mame/machine/namco51.c
@@ -444,7 +444,7 @@ const device_type NAMCO_51XX = &device_creator<namco_51xx_device>;
namco_51xx_device::namco_51xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, NAMCO_51XX, "Namco 51xx", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(namco_51xx_state));
+ m_token = global_alloc_clear(namco_51xx_state);
}
//-------------------------------------------------
diff --git a/src/mame/machine/namco53.c b/src/mame/machine/namco53.c
index cc4a21e8193..9c11ff6974c 100644
--- a/src/mame/machine/namco53.c
+++ b/src/mame/machine/namco53.c
@@ -196,7 +196,7 @@ const device_type NAMCO_53XX = &device_creator<namco_53xx_device>;
namco_53xx_device::namco_53xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, NAMCO_53XX, "Namco 53xx", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(namco_53xx_state));
+ m_token = global_alloc_clear(namco_53xx_state);
}
//-------------------------------------------------
diff --git a/src/mame/machine/namco62.c b/src/mame/machine/namco62.c
index ead4f335f34..d45591b5425 100644
--- a/src/mame/machine/namco62.c
+++ b/src/mame/machine/namco62.c
@@ -89,7 +89,7 @@ const device_type NAMCO_62XX = &device_creator<namco_62xx_device>;
namco_62xx_device::namco_62xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, NAMCO_62XX, "Namco 62xx", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(namco_62xx_state));
+ m_token = global_alloc_clear(namco_62xx_state);
}
//-------------------------------------------------
diff --git a/src/mame/machine/namcoio.c b/src/mame/machine/namcoio.c
index 6a8fe528e21..55c6c2c5ccf 100644
--- a/src/mame/machine/namcoio.c
+++ b/src/mame/machine/namcoio.c
@@ -548,7 +548,7 @@ const device_type NAMCO56XX = &device_creator<namcoio_device>;
namcoio_device::namcoio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, NAMCO56XX, "Namco 56xx, 58xx & 59xx", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(namcoio_state));
+ m_token = global_alloc_clear(namcoio_state);
}
//-------------------------------------------------
diff --git a/src/mame/machine/nmk112.c b/src/mame/machine/nmk112.c
index 64299583b93..590de08cba0 100644
--- a/src/mame/machine/nmk112.c
+++ b/src/mame/machine/nmk112.c
@@ -156,7 +156,7 @@ const device_type NMK112 = &device_creator<nmk112_device>;
nmk112_device::nmk112_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, NMK112, "NMK 112", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(nmk112_state));
+ m_token = global_alloc_clear(nmk112_state);
}
//-------------------------------------------------
diff --git a/src/mame/machine/taitoio.c b/src/mame/machine/taitoio.c
index aa0481a8004..6e8298933ed 100644
--- a/src/mame/machine/taitoio.c
+++ b/src/mame/machine/taitoio.c
@@ -512,7 +512,7 @@ const device_type TC0220IOC = &device_creator<tc0220ioc_device>;
tc0220ioc_device::tc0220ioc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0220IOC, "Taito TC0220IOC", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tc0220ioc_state));
+ m_token = global_alloc_clear(tc0220ioc_state);
}
//-------------------------------------------------
@@ -549,7 +549,7 @@ const device_type TC0510NIO = &device_creator<tc0510nio_device>;
tc0510nio_device::tc0510nio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0510NIO, "Taito TC0510NIO", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tc0510nio_state));
+ m_token = global_alloc_clear(tc0510nio_state);
}
//-------------------------------------------------
@@ -586,7 +586,7 @@ const device_type TC0640FIO = &device_creator<tc0640fio_device>;
tc0640fio_device::tc0640fio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0640FIO, "Taito TC0640FIO", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tc0640fio_state));
+ m_token = global_alloc_clear(tc0640fio_state);
}
//-------------------------------------------------
diff --git a/src/mame/video/atarirle.c b/src/mame/video/atarirle.c
index 5daefeb7f13..d8504afd355 100644
--- a/src/mame/video/atarirle.c
+++ b/src/mame/video/atarirle.c
@@ -372,7 +372,7 @@ const device_type ATARIRLE = &device_creator<atarirle_device>;
atarirle_device::atarirle_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, ATARIRLE, "Atari RLE", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(atarirle_data));
+ m_token = global_alloc_clear(atarirle_data);
}
//-------------------------------------------------
diff --git a/src/mame/video/deco16ic.c b/src/mame/video/deco16ic.c
index 099d2975bb7..1044e81abc2 100644
--- a/src/mame/video/deco16ic.c
+++ b/src/mame/video/deco16ic.c
@@ -903,7 +903,7 @@ const device_type DECO16IC = &device_creator<deco16ic_device>;
deco16ic_device::deco16ic_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, DECO16IC, "Data East IC 55 / 56 / 74 / 141", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(deco16ic_state));
+ m_token = global_alloc_clear(deco16ic_state);
}
//-------------------------------------------------
diff --git a/src/mame/video/decocomn.c b/src/mame/video/decocomn.c
index 2e1dad4707e..242d94c88ef 100644
--- a/src/mame/video/decocomn.c
+++ b/src/mame/video/decocomn.c
@@ -144,7 +144,7 @@ const device_type DECOCOMN = &device_creator<decocomn_device>;
decocomn_device::decocomn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, DECOCOMN, "Data East Common Video Functions", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(decocomn_state));
+ m_token = global_alloc_clear(decocomn_state);
}
//-------------------------------------------------
diff --git a/src/mame/video/kan_pand.c b/src/mame/video/kan_pand.c
index a40acece6ad..b5f035ef938 100644
--- a/src/mame/video/kan_pand.c
+++ b/src/mame/video/kan_pand.c
@@ -329,7 +329,7 @@ const device_type KANEKO_PANDORA = &device_creator<kaneko_pandora_device>;
kaneko_pandora_device::kaneko_pandora_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, KANEKO_PANDORA, "Kaneko Pandora - PX79C480FP-3", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(kaneko_pandora_state));
+ m_token = global_alloc_clear(kaneko_pandora_state);
}
//-------------------------------------------------
diff --git a/src/mame/video/konicdev.c b/src/mame/video/konicdev.c
index f3f3c5deecf..d6999235212 100644
--- a/src/mame/video/konicdev.c
+++ b/src/mame/video/konicdev.c
@@ -1581,7 +1581,7 @@ const device_type K007121 = &device_creator<k007121_device>;
k007121_device::k007121_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K007121, "Konami 007121", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k007121_state));
+ m_token = global_alloc_clear(k007121_state);
}
//-------------------------------------------------
@@ -1854,7 +1854,7 @@ const device_type K007342 = &device_creator<k007342_device>;
k007342_device::k007342_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K007342, "Konami 007342", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k007342_state));
+ m_token = global_alloc_clear(k007342_state);
}
//-------------------------------------------------
@@ -2187,7 +2187,7 @@ const device_type K007420 = &device_creator<k007420_device>;
k007420_device::k007420_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K007420, "Konami 007420", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k007420_state));
+ m_token = global_alloc_clear(k007420_state);
}
//-------------------------------------------------
@@ -2758,7 +2758,7 @@ const device_type K052109 = &device_creator<k052109_device>;
k052109_device::k052109_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K052109, "Konami 052109", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k052109_state));
+ m_token = global_alloc_clear(k052109_state);
}
//-------------------------------------------------
@@ -3429,7 +3429,7 @@ const device_type K051960 = &device_creator<k051960_device>;
k051960_device::k051960_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K051960, "Konami 051960", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k051960_state));
+ m_token = global_alloc_clear(k051960_state);
}
//-------------------------------------------------
@@ -4260,7 +4260,7 @@ const device_type K053244 = &device_creator<k05324x_device>;
k05324x_device::k05324x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K053244, "Konami 053244 & 053245", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k05324x_state));
+ m_token = global_alloc_clear(k05324x_state);
}
//-------------------------------------------------
@@ -5272,7 +5272,7 @@ const device_type K055673 = &device_creator<k055673_device>;
k055673_device::k055673_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K055673, "Konami 055673", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k053247_state));
+ m_token = global_alloc_clear(k053247_state);
}
//-------------------------------------------------
@@ -5308,7 +5308,7 @@ const device_type K053246 = &device_creator<k053247_device>;
k053247_device::k053247_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K053246, "Konami 053246 & 053247", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k053247_state));
+ m_token = global_alloc_clear(k053247_state);
}
//-------------------------------------------------
@@ -5541,7 +5541,7 @@ const device_type K051316 = &device_creator<k051316_device>;
k051316_device::k051316_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K051316, "Konami 051316", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k051316_state));
+ m_token = global_alloc_clear(k051316_state);
}
//-------------------------------------------------
@@ -5914,7 +5914,7 @@ const device_type K053936 = &device_creator<k053936_device>;
k053936_device::k053936_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K053936, "Konami 053936", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k053936_state));
+ m_token = global_alloc_clear(k053936_state);
}
//-------------------------------------------------
@@ -6105,7 +6105,7 @@ const device_type K053251 = &device_creator<k053251_device>;
k053251_device::k053251_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K053251, "Konami 053251", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k053251_state));
+ m_token = global_alloc_clear(k053251_state);
}
//-------------------------------------------------
@@ -6250,7 +6250,7 @@ const device_type K054000 = &device_creator<k054000_device>;
k054000_device::k054000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K054000, "Konami 054000", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k054000_state));
+ m_token = global_alloc_clear(k054000_state);
}
//-------------------------------------------------
@@ -6438,7 +6438,7 @@ const device_type K051733 = &device_creator<k051733_device>;
k051733_device::k051733_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K051733, "Konami 051733", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k051733_state));
+ m_token = global_alloc_clear(k051733_state);
}
//-------------------------------------------------
@@ -8186,7 +8186,7 @@ const device_type K056832 = &device_creator<k056832_device>;
k056832_device::k056832_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K056832, "Konami 056832", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k056832_state));
+ m_token = global_alloc_clear(k056832_state);
}
//-------------------------------------------------
@@ -8577,7 +8577,7 @@ const device_type K055555 = &device_creator<k055555_device>;
k055555_device::k055555_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K055555, "Konami 055555", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k055555_state));
+ m_token = global_alloc_clear(k055555_state);
}
//-------------------------------------------------
@@ -8915,7 +8915,7 @@ const device_type K054338 = &device_creator<k054338_device>;
k054338_device::k054338_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K054338, "Konami 054338", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k054338_state));
+ m_token = global_alloc_clear(k054338_state);
}
//-------------------------------------------------
@@ -9126,7 +9126,7 @@ const device_type K001006 = &device_creator<k001006_device>;
k001006_device::k001006_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K001006, "Konami 001006", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k001006_state));
+ m_token = global_alloc_clear(k001006_state);
}
//-------------------------------------------------
@@ -10089,7 +10089,7 @@ const device_type K001005 = &device_creator<k001005_device>;
k001005_device::k001005_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K001005, "Konami 001005", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k001005_state));
+ m_token = global_alloc_clear(k001005_state);
}
//-------------------------------------------------
@@ -10487,7 +10487,7 @@ const device_type K001604 = &device_creator<k001604_device>;
k001604_device::k001604_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K001604, "Konami 001604", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k001604_state));
+ m_token = global_alloc_clear(k001604_state);
}
//-------------------------------------------------
@@ -10783,7 +10783,7 @@ const device_type K037122 = &device_creator<k037122_device>;
k037122_device::k037122_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K037122, "Konami 0371222", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(k037122_state));
+ m_token = global_alloc_clear(k037122_state);
}
//-------------------------------------------------
diff --git a/src/mame/video/taitoic.c b/src/mame/video/taitoic.c
index 8d0a01e23fe..31b47171d65 100644
--- a/src/mame/video/taitoic.c
+++ b/src/mame/video/taitoic.c
@@ -973,7 +973,7 @@ const device_type PC080SN = &device_creator<pc080sn_device>;
pc080sn_device::pc080sn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, PC080SN, "Taito PC080SN", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(pc080sn_state));
+ m_token = global_alloc_clear(pc080sn_state);
}
//-------------------------------------------------
@@ -1238,7 +1238,7 @@ const device_type PC090OJ = &device_creator<pc090oj_device>;
pc090oj_device::pc090oj_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, PC090OJ, "Taito PC090OJ", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(pc090oj_state));
+ m_token = global_alloc_clear(pc090oj_state);
}
//-------------------------------------------------
@@ -1904,7 +1904,7 @@ const device_type TC0080VCO = &device_creator<tc0080vco_device>;
tc0080vco_device::tc0080vco_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0080VCO, "Taito TC0080VCO", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tc0080vco_state));
+ m_token = global_alloc_clear(tc0080vco_state);
}
//-------------------------------------------------
@@ -2489,7 +2489,7 @@ const device_type TC0100SCN = &device_creator<tc0100scn_device>;
tc0100scn_device::tc0100scn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0100SCN, "Taito TC0100SCN", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tc0100scn_state));
+ m_token = global_alloc_clear(tc0100scn_state);
}
//-------------------------------------------------
@@ -2777,7 +2777,7 @@ const device_type TC0280GRD = &device_creator<tc0280grd_device>;
tc0280grd_device::tc0280grd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0280GRD, "Taito TC0280GRD & TC0430GRW", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tc0280grd_state));
+ m_token = global_alloc_clear(tc0280grd_state);
}
//-------------------------------------------------
@@ -2898,7 +2898,7 @@ const device_type TC0360PRI = &device_creator<tc0360pri_device>;
tc0360pri_device::tc0360pri_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0360PRI, "Taito TC0360PRI", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tc0360pri_state));
+ m_token = global_alloc_clear(tc0360pri_state);
}
//-------------------------------------------------
@@ -3780,7 +3780,7 @@ const device_type TC0480SCP = &device_creator<tc0480scp_device>;
tc0480scp_device::tc0480scp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0480SCP, "Taito TC0480SCP", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tc0480scp_state));
+ m_token = global_alloc_clear(tc0480scp_state);
}
//-------------------------------------------------
@@ -4724,7 +4724,7 @@ const device_type TC0150ROD = &device_creator<tc0150rod_device>;
tc0150rod_device::tc0150rod_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0150ROD, "Taito TC0150ROD", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tc0150rod_state));
+ m_token = global_alloc_clear(tc0150rod_state);
}
//-------------------------------------------------
@@ -4972,7 +4972,7 @@ const device_type TC0110PCR = &device_creator<tc0110pcr_device>;
tc0110pcr_device::tc0110pcr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0110PCR, "Taito TC0110PCR", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tc0110pcr_state));
+ m_token = global_alloc_clear(tc0110pcr_state);
}
//-------------------------------------------------
@@ -5304,7 +5304,7 @@ const device_type TC0180VCU = &device_creator<tc0180vcu_device>;
tc0180vcu_device::tc0180vcu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TC0180VCU, "Taito TC0180VCU", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tc0180vcu_state));
+ m_token = global_alloc_clear(tc0180vcu_state);
}
//-------------------------------------------------
diff --git a/src/mame/video/vrender0.c b/src/mame/video/vrender0.c
index 7df7ec692c4..c34313d7dc0 100644
--- a/src/mame/video/vrender0.c
+++ b/src/mame/video/vrender0.c
@@ -605,7 +605,7 @@ const device_type VIDEO_VRENDER0 = &device_creator<vr0video_device>;
vr0video_device::vr0video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, VIDEO_VRENDER0, "VRender0", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(vr0video_state));
+ m_token = global_alloc_clear(vr0video_state);
}
//-------------------------------------------------
diff --git a/src/mess/audio/channelf.c b/src/mess/audio/channelf.c
index d9c5f5385b2..73db1dc87fb 100644
--- a/src/mess/audio/channelf.c
+++ b/src/mess/audio/channelf.c
@@ -137,7 +137,7 @@ channelf_sound_device::channelf_sound_device(const machine_config &mconfig, cons
: device_t(mconfig, CHANNELF, "Channel F", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(channelf_sound_state));
+ m_token = global_alloc_clear(channelf_sound_state);
}
//-------------------------------------------------
diff --git a/src/mess/audio/dave.c b/src/mess/audio/dave.c
index c2ed1729c1a..66ac2059602 100644
--- a/src/mess/audio/dave.c
+++ b/src/mess/audio/dave.c
@@ -823,7 +823,7 @@ dave_sound_device::dave_sound_device(const machine_config &mconfig, const char *
: device_t(mconfig, DAVE, "Dave", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(dave_t));
+ m_token = global_alloc_clear(dave_t);
}
//-------------------------------------------------
diff --git a/src/mess/audio/gb.c b/src/mess/audio/gb.c
index bb5b80ddb75..d014e6614c3 100644
--- a/src/mess/audio/gb.c
+++ b/src/mess/audio/gb.c
@@ -761,7 +761,7 @@ gameboy_sound_device::gameboy_sound_device(const machine_config &mconfig, const
: device_t(mconfig, GAMEBOY, "LR35902", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(gb_sound_t));
+ m_token = global_alloc_clear(gb_sound_t);
}
//-------------------------------------------------
diff --git a/src/mess/audio/gmaster.c b/src/mess/audio/gmaster.c
index cdc3ff8b4b6..250df2e6946 100644
--- a/src/mess/audio/gmaster.c
+++ b/src/mess/audio/gmaster.c
@@ -71,7 +71,7 @@ gmaster_sound_device::gmaster_sound_device(const machine_config &mconfig, const
: device_t(mconfig, GMASTER, "Game Master Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(gmaster_sound));
+ m_token = global_alloc_clear(gmaster_sound);
}
//-------------------------------------------------
diff --git a/src/mess/audio/lynx.c b/src/mess/audio/lynx.c
index 4bfd1e3ece8..ebc3a7f8943 100644
--- a/src/mess/audio/lynx.c
+++ b/src/mess/audio/lynx.c
@@ -506,14 +506,14 @@ lynx_sound_device::lynx_sound_device(const machine_config &mconfig, const char *
: device_t(mconfig, LYNX, "Mikey", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(lynx_sound_state));
+ m_token = global_alloc_clear(lynx_sound_state);
}
lynx_sound_device::lynx_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(lynx_sound_state));
+ m_token = global_alloc_clear(lynx_sound_state);
}
//-------------------------------------------------
diff --git a/src/mess/audio/mac.c b/src/mess/audio/mac.c
index d216bfc1b5f..52e803fb0b6 100644
--- a/src/mess/audio/mac.c
+++ b/src/mess/audio/mac.c
@@ -193,7 +193,7 @@ mac_sound_device::mac_sound_device(const machine_config &mconfig, const char *ta
: device_t(mconfig, MAC_SOUND, "Mac Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(mac_sound));
+ m_token = global_alloc_clear(mac_sound);
}
//-------------------------------------------------
diff --git a/src/mess/audio/mea8000.c b/src/mess/audio/mea8000.c
index 859818a3d87..fa5fa1ec350 100644
--- a/src/mess/audio/mea8000.c
+++ b/src/mess/audio/mea8000.c
@@ -708,7 +708,7 @@ const device_type MEA8000 = &device_creator<mea8000_device>;
mea8000_device::mea8000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, MEA8000, "Philips / Signetics MEA 8000 speech synthesizer", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(mea8000_t));
+ m_token = global_alloc_clear(mea8000_t);
}
//-------------------------------------------------
diff --git a/src/mess/audio/socrates.c b/src/mess/audio/socrates.c
index e7eac40f0a5..5e5957ba3df 100644
--- a/src/mess/audio/socrates.c
+++ b/src/mess/audio/socrates.c
@@ -149,7 +149,7 @@ socrates_snd_device::socrates_snd_device(const machine_config &mconfig, const ch
: device_t(mconfig, SOCRATES, "Socrates Sound", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(SocratesASIC));
+ m_token = global_alloc_clear(SocratesASIC);
}
//-------------------------------------------------
diff --git a/src/mess/audio/special.c b/src/mess/audio/special.c
index 80282624740..72fb7e59191 100644
--- a/src/mess/audio/special.c
+++ b/src/mess/audio/special.c
@@ -77,7 +77,7 @@ specimx_sound_device::specimx_sound_device(const machine_config &mconfig, const
: device_t(mconfig, SPECIMX, "Specialist MX Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(specimx_sound_state));
+ m_token = global_alloc_clear(specimx_sound_state);
}
//-------------------------------------------------
diff --git a/src/mess/audio/svision.c b/src/mess/audio/svision.c
index 8c9298e5166..ae699e45047 100644
--- a/src/mess/audio/svision.c
+++ b/src/mess/audio/svision.c
@@ -303,7 +303,7 @@ svision_sound_device::svision_sound_device(const machine_config &mconfig, const
: device_t(mconfig, SVISION, "Super Vision Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(svision_sound_state));
+ m_token = global_alloc_clear(svision_sound_state);
}
//-------------------------------------------------
diff --git a/src/mess/audio/t6721.c b/src/mess/audio/t6721.c
index 3245fe8ab5a..5ab6854ed5c 100644
--- a/src/mess/audio/t6721.c
+++ b/src/mess/audio/t6721.c
@@ -288,7 +288,7 @@ const device_type T6721 = &device_creator<t6721_device>;
t6721_device::t6721_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, T6721, "Toshiba 6721A", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(t6721_state));
+ m_token = global_alloc_clear(t6721_state);
}
//-------------------------------------------------
diff --git a/src/mess/audio/upd1771.c b/src/mess/audio/upd1771.c
index aa6a0ebb2ec..d420fc5205f 100644
--- a/src/mess/audio/upd1771.c
+++ b/src/mess/audio/upd1771.c
@@ -464,7 +464,7 @@ upd1771c_device::upd1771c_device(const machine_config &mconfig, const char *tag,
: device_t(mconfig, UPD1771C, "NEC uPD1771C 017", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(upd1771_state));
+ m_token = global_alloc_clear(upd1771_state);
}
//-------------------------------------------------
diff --git a/src/mess/audio/vc4000.c b/src/mess/audio/vc4000.c
index fea630a92fc..a1df2c2c8a5 100644
--- a/src/mess/audio/vc4000.c
+++ b/src/mess/audio/vc4000.c
@@ -87,7 +87,7 @@ vc4000_sound_device::vc4000_sound_device(const machine_config &mconfig, const ch
: device_t(mconfig, VC4000, "VC 4000 Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(vc4000_sound));
+ m_token = global_alloc_clear(vc4000_sound);
}
//-------------------------------------------------
diff --git a/src/mess/audio/wswan.c b/src/mess/audio/wswan.c
index 4fe4684ee67..2f0631b0337 100644
--- a/src/mess/audio/wswan.c
+++ b/src/mess/audio/wswan.c
@@ -254,7 +254,7 @@ wswan_sound_device::wswan_sound_device(const machine_config &mconfig, const char
: device_t(mconfig, WSWAN, "WonderSwan Custom", tag, owner, clock),
device_sound_interface(mconfig, *this)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(wswan_sound_state));
+ m_token = global_alloc_clear(wswan_sound_state);
}
//-------------------------------------------------
diff --git a/src/mess/machine/990_tap.c b/src/mess/machine/990_tap.c
index ad47cdc98e2..92b50150873 100644
--- a/src/mess/machine/990_tap.c
+++ b/src/mess/machine/990_tap.c
@@ -1069,7 +1069,7 @@ const device_type TI990_TAPE_CTRL = &device_creator<tap_990_device>;
tap_990_device::tap_990_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TI990_TAPE_CTRL, "Generic TI990 Tape Controller", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tap_990_t));
+ m_token = global_alloc_clear(tap_990_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/applefdc.c b/src/mess/machine/applefdc.c
index f7401326636..e681fcdf4c7 100644
--- a/src/mess/machine/applefdc.c
+++ b/src/mess/machine/applefdc.c
@@ -770,7 +770,7 @@ static DEVICE_START(swim)
applefdc_base_device::applefdc_base_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(applefdc_token));
+ m_token = global_alloc_clear(applefdc_token);
}
//-------------------------------------------------
diff --git a/src/mess/machine/at45dbxx.c b/src/mess/machine/at45dbxx.c
index d9c1c67921f..0ec7acb814e 100644
--- a/src/mess/machine/at45dbxx.c
+++ b/src/mess/machine/at45dbxx.c
@@ -418,12 +418,12 @@ const device_type AT45DB041 = &device_creator<at45db041_device>;
at45db041_device::at45db041_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, AT45DB041, "AT45DB041", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(at45dbxx_t));
+ m_token = global_alloc_clear(at45dbxx_t);
}
at45db041_device::at45db041_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(at45dbxx_t));
+ m_token = global_alloc_clear(at45dbxx_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/atarifdc.c b/src/mess/machine/atarifdc.c
index 97017a4601f..d165a45e963 100644
--- a/src/mess/machine/atarifdc.c
+++ b/src/mess/machine/atarifdc.c
@@ -817,7 +817,7 @@ const device_type ATARI_FDC = &device_creator<atari_fdc_device>;
atari_fdc_device::atari_fdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, ATARI_FDC, "Atari FDC", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(atari_fdc_t));
+ m_token = global_alloc_clear(atari_fdc_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/ay31015.c b/src/mess/machine/ay31015.c
index 323525edf88..9bd8399d6cc 100644
--- a/src/mess/machine/ay31015.c
+++ b/src/mess/machine/ay31015.c
@@ -728,7 +728,7 @@ const device_type AY31015 = &device_creator<ay31015_device>;
ay31015_device::ay31015_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, AY31015, "AY-3-1015", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ay31015_t));
+ m_token = global_alloc_clear(ay31015_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/beta.c b/src/mess/machine/beta.c
index 1207732f86f..5a6c4e8a5a0 100644
--- a/src/mess/machine/beta.c
+++ b/src/mess/machine/beta.c
@@ -332,7 +332,7 @@ const device_type BETA_DISK = &device_creator<beta_disk_device>;
beta_disk_device::beta_disk_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, BETA_DISK, "Beta Disk Interface", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(beta_disk_state));
+ m_token = global_alloc_clear(beta_disk_state);
}
//-------------------------------------------------
diff --git a/src/mess/machine/ds1315.c b/src/mess/machine/ds1315.c
index 1faf507def5..d26dac5933d 100644
--- a/src/mess/machine/ds1315.c
+++ b/src/mess/machine/ds1315.c
@@ -243,7 +243,7 @@ const device_type DS1315 = &device_creator<ds1315_device>;
ds1315_device::ds1315_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, DS1315, "Dallas Semiconductor DS1315", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(ds1315_t));
+ m_token = global_alloc_clear(ds1315_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/e05a03.c b/src/mess/machine/e05a03.c
index e2c86c9e46a..ff54a738634 100644
--- a/src/mess/machine/e05a03.c
+++ b/src/mess/machine/e05a03.c
@@ -220,7 +220,7 @@ const device_type E05A03 = &device_creator<e05a03_device>;
e05a03_device::e05a03_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, E05A03, "E05A03", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(e05a03_state));
+ m_token = global_alloc_clear(e05a03_state);
}
//-------------------------------------------------
diff --git a/src/mess/machine/er59256.c b/src/mess/machine/er59256.c
index 0dd06b49699..6ec0c7cfc48 100644
--- a/src/mess/machine/er59256.c
+++ b/src/mess/machine/er59256.c
@@ -227,7 +227,7 @@ const device_type ER59256 = &device_creator<er59256_device>;
er59256_device::er59256_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, ER59256, "Microchip ER59256 serial eeprom.", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(er59256_t));
+ m_token = global_alloc_clear(er59256_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/hd63450.c b/src/mess/machine/hd63450.c
index 0e4c5c35b25..ce163aeabf9 100644
--- a/src/mess/machine/hd63450.c
+++ b/src/mess/machine/hd63450.c
@@ -467,7 +467,7 @@ const device_type HD63450 = &device_creator<hd63450_device>;
hd63450_device::hd63450_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, HD63450, "Hitachi HD63450", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(hd63450_t));
+ m_token = global_alloc_clear(hd63450_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/i8271.c b/src/mess/machine/i8271.c
index cdaa3e72b8b..3c7d91e9919 100644
--- a/src/mess/machine/i8271.c
+++ b/src/mess/machine/i8271.c
@@ -1579,7 +1579,7 @@ const device_type I8271 = &device_creator<i8271_device>;
i8271_device::i8271_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, I8271, "Intel 8271", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(i8271_t));
+ m_token = global_alloc_clear(i8271_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/kr2376.c b/src/mess/machine/kr2376.c
index 7f8667ab61a..8115e92cc0d 100644
--- a/src/mess/machine/kr2376.c
+++ b/src/mess/machine/kr2376.c
@@ -379,7 +379,7 @@ const device_type KR2376 = &device_creator<kr2376_device>;
kr2376_device::kr2376_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, KR2376, "SMC KR2376", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(kr2376_t));
+ m_token = global_alloc_clear(kr2376_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/mc68328.c b/src/mess/machine/mc68328.c
index 9ca94931ff6..51d559e9945 100644
--- a/src/mess/machine/mc68328.c
+++ b/src/mess/machine/mc68328.c
@@ -2840,7 +2840,7 @@ const device_type MC68328 = &device_creator<mc68328_device>;
mc68328_device::mc68328_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, MC68328, "Motorola MC68328 (DragonBall) Integrated Processor", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(mc68328_t));
+ m_token = global_alloc_clear(mc68328_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/mc6843.c b/src/mess/machine/mc6843.c
index d5788a07b33..f196456d45e 100644
--- a/src/mess/machine/mc6843.c
+++ b/src/mess/machine/mc6843.c
@@ -835,7 +835,7 @@ const device_type MC6843 = &device_creator<mc6843_device>;
mc6843_device::mc6843_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, MC6843, "Motorola MC6843 floppy controller", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(mc6843_t));
+ m_token = global_alloc_clear(mc6843_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/mc6846.c b/src/mess/machine/mc6846.c
index 7baf943fbdc..dae252320e9 100644
--- a/src/mess/machine/mc6846.c
+++ b/src/mess/machine/mc6846.c
@@ -641,7 +641,7 @@ const device_type MC6846 = &device_creator<mc6846_device>;
mc6846_device::mc6846_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, MC6846, "Motorola MC6846 programmable timer", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(mc6846_t));
+ m_token = global_alloc_clear(mc6846_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/mc6854.c b/src/mess/machine/mc6854.c
index 918ac72c583..9edea56de16 100644
--- a/src/mess/machine/mc6854.c
+++ b/src/mess/machine/mc6854.c
@@ -1044,7 +1044,7 @@ const device_type MC6854 = &device_creator<mc6854_device>;
mc6854_device::mc6854_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, MC6854, "Motorola MC6854 ADLC", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(mc6854_t));
+ m_token = global_alloc_clear(mc6854_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/micropolis.c b/src/mess/machine/micropolis.c
index 5919694ab65..4a026859dd3 100644
--- a/src/mess/machine/micropolis.c
+++ b/src/mess/machine/micropolis.c
@@ -381,7 +381,7 @@ const device_type MICROPOLIS = &device_creator<micropolis_device>;
micropolis_device::micropolis_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, MICROPOLIS, "MICROPOLIS", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(micropolis_state));
+ m_token = global_alloc_clear(micropolis_state);
}
//-------------------------------------------------
diff --git a/src/mess/machine/mm58274c.c b/src/mess/machine/mm58274c.c
index c5277dac462..0c65d7ee218 100644
--- a/src/mess/machine/mm58274c.c
+++ b/src/mess/machine/mm58274c.c
@@ -520,7 +520,7 @@ const device_type MM58274C = &device_creator<mm58274c_device>;
mm58274c_device::mm58274c_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, MM58274C, "National Semiconductor MM58274C", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(mm58274c_t));
+ m_token = global_alloc_clear(mm58274c_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/mos6530.c b/src/mess/machine/mos6530.c
index 00cd119475e..07ab62aa2bb 100644
--- a/src/mess/machine/mos6530.c
+++ b/src/mess/machine/mos6530.c
@@ -437,7 +437,7 @@ const device_type MOS6530 = &device_creator<mos6530_device>;
mos6530_device::mos6530_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, MOS6530, "MOS6530", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(mos6530_state));
+ m_token = global_alloc_clear(mos6530_state);
}
//-------------------------------------------------
diff --git a/src/mess/machine/omti8621.c b/src/mess/machine/omti8621.c
index 64fa2891abc..e32e2481c3e 100644
--- a/src/mess/machine/omti8621.c
+++ b/src/mess/machine/omti8621.c
@@ -1337,7 +1337,7 @@ const device_type OMTI8621 = &device_creator<omti8621_device>;
omti8621_device::omti8621_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, OMTI8621, "OMTI 8621", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(omti8621_state));
+ m_token = global_alloc_clear(omti8621_state);
}
//-------------------------------------------------
diff --git a/src/mess/machine/pc_lpt.c b/src/mess/machine/pc_lpt.c
index 5abda63561c..8b0951352a3 100644
--- a/src/mess/machine/pc_lpt.c
+++ b/src/mess/machine/pc_lpt.c
@@ -231,7 +231,7 @@ const device_type PC_LPT = &device_creator<pc_lpt_device>;
pc_lpt_device::pc_lpt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, PC_LPT, "PC-LPT", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(pc_lpt_state));
+ m_token = global_alloc_clear(pc_lpt_state);
}
//-------------------------------------------------
diff --git a/src/mess/machine/pcf8593.c b/src/mess/machine/pcf8593.c
index 25a8c85fa81..374f530baf6 100644
--- a/src/mess/machine/pcf8593.c
+++ b/src/mess/machine/pcf8593.c
@@ -449,7 +449,7 @@ const device_type PCF8593 = &device_creator<pcf8593_device>;
pcf8593_device::pcf8593_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, PCF8593, "PCF8593 RTC", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(pcf8593_t));
+ m_token = global_alloc_clear(pcf8593_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/pf10.c b/src/mess/machine/pf10.c
index f187e246e08..532b22bb444 100644
--- a/src/mess/machine/pf10.c
+++ b/src/mess/machine/pf10.c
@@ -136,7 +136,7 @@ const device_type PF10 = &device_creator<pf10_device>;
pf10_device::pf10_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, PF10, "PF-10", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(pf10_state));
+ m_token = global_alloc_clear(pf10_state);
}
//-------------------------------------------------
diff --git a/src/mess/machine/s3c44b0.c b/src/mess/machine/s3c44b0.c
index c27f92e5170..db2927b84d7 100644
--- a/src/mess/machine/s3c44b0.c
+++ b/src/mess/machine/s3c44b0.c
@@ -2040,7 +2040,7 @@ const device_type S3C44B0 = &device_creator<s3c44b0_device>;
s3c44b0_device::s3c44b0_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, S3C44B0, "Samsung S3C44B0", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(s3c44b0_t));
+ m_token = global_alloc_clear(s3c44b0_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/sst39vfx.c b/src/mess/machine/sst39vfx.c
index d9057fadc9b..46ce80144c6 100644
--- a/src/mess/machine/sst39vfx.c
+++ b/src/mess/machine/sst39vfx.c
@@ -182,12 +182,12 @@ const device_type SST39VF020 = &device_creator<sst39vf020_device>;
sst39vf020_device::sst39vf020_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, SST39VF020, "SST39VF020", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(sst39vfx_t));
+ m_token = global_alloc_clear(sst39vfx_t);
}
sst39vf020_device::sst39vf020_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(sst39vfx_t));
+ m_token = global_alloc_clear(sst39vfx_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/strata.c b/src/mess/machine/strata.c
index 772eee3368b..f3383cdda22 100644
--- a/src/mess/machine/strata.c
+++ b/src/mess/machine/strata.c
@@ -104,7 +104,7 @@ const device_type STRATAFLASH = &device_creator<strataflash_device>;
strataflash_device::strataflash_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, STRATAFLASH, "Intel 28F640J5", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(strata_t));
+ m_token = global_alloc_clear(strata_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/tf20.c b/src/mess/machine/tf20.c
index d1cc7fe9a17..0f402078cfa 100644
--- a/src/mess/machine/tf20.c
+++ b/src/mess/machine/tf20.c
@@ -362,7 +362,7 @@ const device_type TF20 = &device_creator<tf20_device>;
tf20_device::tf20_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, TF20, "TF-20", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(tf20_state));
+ m_token = global_alloc_clear(tf20_state);
}
//-------------------------------------------------
diff --git a/src/mess/machine/upd7002.c b/src/mess/machine/upd7002.c
index 087be183fd0..0e05c5bbe53 100644
--- a/src/mess/machine/upd7002.c
+++ b/src/mess/machine/upd7002.c
@@ -213,7 +213,7 @@ const device_type UPD7002 = &device_creator<uPD7002_device>;
uPD7002_device::uPD7002_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, UPD7002, "uPD7002", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(uPD7002_t));
+ m_token = global_alloc_clear(uPD7002_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/upd71071.c b/src/mess/machine/upd71071.c
index 4259cdee307..acf8dd1fef3 100644
--- a/src/mess/machine/upd71071.c
+++ b/src/mess/machine/upd71071.c
@@ -424,7 +424,7 @@ const device_type UPD71071 = &device_creator<upd71071_device>;
upd71071_device::upd71071_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, UPD71071, "NEC uPD71071", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(upd71071_t));
+ m_token = global_alloc_clear(upd71071_t);
}
//-------------------------------------------------
diff --git a/src/mess/machine/upd765.c b/src/mess/machine/upd765.c
index fc86eaf441d..ad31afc7415 100644
--- a/src/mess/machine/upd765.c
+++ b/src/mess/machine/upd765.c
@@ -2480,12 +2480,12 @@ const device_type UPD765A = &device_creator<upd765a_device>;
upd765a_device::upd765a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, UPD765A, "UPD765A", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(upd765_t));
+ m_token = global_alloc_clear(upd765_t);
}
upd765a_device::upd765a_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(upd765_t));
+ m_token = global_alloc_clear(upd765_t);
}
//-------------------------------------------------
diff --git a/src/mess/video/733_asr.c b/src/mess/video/733_asr.c
index f3361311f99..2113a989779 100644
--- a/src/mess/video/733_asr.c
+++ b/src/mess/video/733_asr.c
@@ -221,7 +221,7 @@ const device_type ASR733 = &device_creator<asr733_device>;
asr733_device::asr733_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, ASR733, "733 ASR", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(asr_t));
+ m_token = global_alloc_clear(asr_t);
}
//-------------------------------------------------
diff --git a/src/mess/video/911_vdt.c b/src/mess/video/911_vdt.c
index 0fd88bdc19f..c168f37163f 100644
--- a/src/mess/video/911_vdt.c
+++ b/src/mess/video/911_vdt.c
@@ -273,7 +273,7 @@ const device_type VDT911 = &device_creator<vdt911_device>;
vdt911_device::vdt911_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, VDT911, "911 VDT", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(vdt_t));
+ m_token = global_alloc_clear(vdt_t);
}
//-------------------------------------------------
diff --git a/src/mess/video/apollo.c b/src/mess/video/apollo.c
index 3b4e0f10a63..9cd51834b3e 100644
--- a/src/mess/video/apollo.c
+++ b/src/mess/video/apollo.c
@@ -836,7 +836,7 @@ static DEVICE_RESET( apollo_mono15i ) {
apollo_mono_device::apollo_mono_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(screen_data_t));
+ m_token = global_alloc_clear(screen_data_t);
}
const device_type APOLLO_MONO19I = &device_creator<apollo_mono19i_device>;
diff --git a/src/mess/video/crt.c b/src/mess/video/crt.c
index 48b4798dd29..1447b619b46 100644
--- a/src/mess/video/crt.c
+++ b/src/mess/video/crt.c
@@ -104,7 +104,7 @@ const device_type CRT = &device_creator<crt_device>;
crt_device::crt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, CRT, "CRT Video", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(crt_t));
+ m_token = global_alloc_clear(crt_t);
}
//-------------------------------------------------
diff --git a/src/mess/video/dl1416.c b/src/mess/video/dl1416.c
index f9e0a1dccd1..15e5f7868c9 100644
--- a/src/mess/video/dl1416.c
+++ b/src/mess/video/dl1416.c
@@ -296,7 +296,7 @@ WRITE8_DEVICE_HANDLER( dl1416_data_w )
dl1416_device::dl1416_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(dl1416_state));
+ m_token = global_alloc_clear(dl1416_state);
}
//-------------------------------------------------
diff --git a/src/mess/video/k1ge.c b/src/mess/video/k1ge.c
index fcc3d817130..cdcd0a509cd 100644
--- a/src/mess/video/k1ge.c
+++ b/src/mess/video/k1ge.c
@@ -896,13 +896,13 @@ const device_type K1GE = &device_creator<k1ge_device>;
k1ge_device::k1ge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, K1GE, "", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof( k1ge_t ));
+ m_token = global_alloc_clear(k1ge_t);
}
k1ge_device::k1ge_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, type, name, tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof( k1ge_t ));
+ m_token = global_alloc_clear(k1ge_t);
}
//-------------------------------------------------
diff --git a/src/mess/video/vdc8563.c b/src/mess/video/vdc8563.c
index 38ca0c94e37..69457293d72 100644
--- a/src/mess/video/vdc8563.c
+++ b/src/mess/video/vdc8563.c
@@ -662,7 +662,7 @@ const device_type VDC8563 = &device_creator<vdc8563_device>;
vdc8563_device::vdc8563_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, VDC8563, "8563 / 8568 VDC", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(vdc8563_state));
+ m_token = global_alloc_clear(vdc8563_state);
}
//-------------------------------------------------
diff --git a/src/mess/video/vic4567.c b/src/mess/video/vic4567.c
index c74c689fe53..6da46553f1e 100644
--- a/src/mess/video/vic4567.c
+++ b/src/mess/video/vic4567.c
@@ -2154,7 +2154,7 @@ const device_type VIC3 = &device_creator<vic3_device>;
vic3_device::vic3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, VIC3, "4567 VIC III", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(vic3_state));
+ m_token = global_alloc_clear(vic3_state);
}
//-------------------------------------------------
diff --git a/src/mess/video/vic6567.c b/src/mess/video/vic6567.c
index 39f48b4a062..e86db6e6b8e 100644
--- a/src/mess/video/vic6567.c
+++ b/src/mess/video/vic6567.c
@@ -2804,7 +2804,7 @@ const device_type VIC2 = &device_creator<vic2_device>;
vic2_device::vic2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, VIC2, "6567 / 6569 VIC II", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(vic2_state));
+ m_token = global_alloc_clear(vic2_state);
}
//-------------------------------------------------
diff --git a/src/mess/video/vtvideo.c b/src/mess/video/vtvideo.c
index 0fa10e2c4b8..3ddeec0cf2e 100644
--- a/src/mess/video/vtvideo.c
+++ b/src/mess/video/vtvideo.c
@@ -452,7 +452,7 @@ const device_type VT100_VIDEO = &device_creator<vt100_video_device>;
vt100_video_device::vt100_video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, VT100_VIDEO, "VT100 Video", tag, owner, clock)
{
- m_token = global_alloc_array_clear(UINT8, sizeof(vt_video_t));
+ m_token = global_alloc_clear(vt_video_t);
}
//-------------------------------------------------