diff options
author | Vas Crabb <vas@vastheman.com> | 2017-02-27 22:16:07 +1100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2017-02-27 22:57:14 +1100 |
commit | 6c23897483a0201dd0b65b450253fd9bf8fb8723 (patch) | |
tree | 62a083b4801f63b09bed57ae0c9e8f646aaa3200 /src/mame/drivers/pdp1.cpp | |
parent | b07c572f709e95dcd1e2e4b9d4c696e122f67655 (diff) |
Self-registering devices prep:
* Make device_creator a variable template and get rid of the ampersands
* Remove screen.h and speaker.h from emu.h and add where necessary
* Centralise instantiations of screen and speaker finder templates
* Add/standardise #include guards in many hearers
* Remove many redundant #includes
* Order #includesr to help catch headers that can't be #included alone
(nw) This changes #include order to be prefix, unit header if applicable
then other stuff roughly in order from most dependent to least dependent
library. This helps catch headers that don't #include things that they
use.
Diffstat (limited to 'src/mame/drivers/pdp1.cpp')
-rw-r--r-- | src/mame/drivers/pdp1.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/mame/drivers/pdp1.cpp b/src/mame/drivers/pdp1.cpp index 6fcb5a367e7..25576561e5f 100644 --- a/src/mame/drivers/pdp1.cpp +++ b/src/mame/drivers/pdp1.cpp @@ -56,9 +56,12 @@ To load and play a game: */ #include "emu.h" -#include "cpu/pdp1/pdp1.h" #include "includes/pdp1.h" + +#include "cpu/pdp1/pdp1.h" #include "video/crt.h" +#include "screen.h" + /* * @@ -687,7 +690,7 @@ protected: virtual void device_start() override { } }; -const device_type PDP1_READTAPE = &device_creator<pdp1_readtape_image_device>; +const device_type PDP1_READTAPE = device_creator<pdp1_readtape_image_device>; pdp1_readtape_image_device::pdp1_readtape_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, PDP1_READTAPE, "PDP1 Tape Reader", tag, owner, clock, "pdp1_readtape_image", __FILE__), @@ -720,7 +723,7 @@ protected: virtual void device_start() override { } }; -const device_type PDP1_PUNCHTAPE = &device_creator<pdp1_punchtape_image_device>; +const device_type PDP1_PUNCHTAPE = device_creator<pdp1_punchtape_image_device>; pdp1_punchtape_image_device::pdp1_punchtape_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, PDP1_PUNCHTAPE, "PDP1 Tape Puncher", tag, owner, clock, "pdp1_punchtape_image", __FILE__), @@ -754,7 +757,7 @@ protected: virtual void device_start() override { } }; -const device_type PDP1_PRINTER = &device_creator<pdp1_printer_image_device>; +const device_type PDP1_PRINTER = device_creator<pdp1_printer_image_device>; pdp1_printer_image_device::pdp1_printer_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, PDP1_PRINTER, "PDP1 Typewriter", tag, owner, clock, "pdp1_printer_image", __FILE__), @@ -787,7 +790,7 @@ protected: virtual void device_start() override { } }; -const device_type PDP1_CYLINDER = &device_creator<pdp1_cylinder_image_device>; +const device_type PDP1_CYLINDER = device_creator<pdp1_cylinder_image_device>; pdp1_cylinder_image_device::pdp1_cylinder_image_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, PDP1_CYLINDER, "PDP1 Cylinder", tag, owner, clock, "pdp1_cylinder_image", __FILE__), |