summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/ds1302.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-06-11 20:37:50 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-06-11 20:37:50 +0000
commit10f5966ea5b9745b9c8eb7ed1f7d901eaf586865 (patch)
tree5c3f9e329d621341ea885a758adb1c40e3d600f8 /src/emu/machine/ds1302.c
parent6e075a382388de032a1dd3ad8271d70728590a27 (diff)
Split implementation for legacy devices into a separate macro. Updated all
devices to use this macro in their .c file. This greatly reduces the amount of work the linker has to do to combine all the instances, and reduces the final binary size when building with symbols. Unfortunately, in order to do it I had to switch back to macros from templates, but I can live with that for legacy devices.
Diffstat (limited to 'src/emu/machine/ds1302.c')
-rw-r--r--src/emu/machine/ds1302.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/emu/machine/ds1302.c b/src/emu/machine/ds1302.c
index fdad770932f..3ebaab9450c 100644
--- a/src/emu/machine/ds1302.c
+++ b/src/emu/machine/ds1302.c
@@ -225,3 +225,6 @@ static const char DEVTEMPLATE_SOURCE[] = __FILE__;
#define DEVTEMPLATE_NAME "Dallas DS1302 RTC"
#define DEVTEMPLATE_FAMILY "Dallas DS1302 RTC"
#include "devtempl.h"
+
+
+DEFINE_LEGACY_DEVICE(DS1302, ds1302);