summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/tx0.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/tx0.cpp')
-rw-r--r--src/mame/drivers/tx0.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mame/drivers/tx0.cpp b/src/mame/drivers/tx0.cpp
index d2a2865572e..8128a31be8a 100644
--- a/src/mame/drivers/tx0.cpp
+++ b/src/mame/drivers/tx0.cpp
@@ -333,7 +333,7 @@ void tx0_state::tx0_machine_stop()
{
/* the core will take care of freeing the timers, BUT we must set the variables
to NULL if we don't want to risk confusing the tape image init function */
- m_tape_reader.timer = m_tape_puncher.timer = m_typewriter.prt_timer = m_dis_timer = NULL;
+ m_tape_reader.timer = m_tape_puncher.timer = m_typewriter.prt_timer = m_dis_timer = nullptr;
}
@@ -367,9 +367,9 @@ public:
virtual bool is_creatable() const { return 0; }
virtual bool must_be_loaded() const { return 0; }
virtual bool is_reset_on_load() const { return 0; }
- virtual const char *image_interface() const { return NULL; }
+ virtual const char *image_interface() const { return nullptr; }
virtual const char *file_extensions() const { return "tap,rim"; }
- virtual const option_guide *create_option_guide() const { return NULL; }
+ virtual const option_guide *create_option_guide() const { return nullptr; }
virtual bool call_load();
virtual void call_unload();
@@ -402,9 +402,9 @@ public:
virtual bool is_creatable() const { return 1; }
virtual bool must_be_loaded() const { return 0; }
virtual bool is_reset_on_load() const { return 0; }
- virtual const char *image_interface() const { return NULL; }
+ virtual const char *image_interface() const { return nullptr; }
virtual const char *file_extensions() const { return "tap,rim"; }
- virtual const option_guide *create_option_guide() const { return NULL; }
+ virtual const option_guide *create_option_guide() const { return nullptr; }
virtual bool call_load();
virtual void call_unload();
@@ -438,9 +438,9 @@ public:
virtual bool is_creatable() const { return 1; }
virtual bool must_be_loaded() const { return 0; }
virtual bool is_reset_on_load() const { return 0; }
- virtual const char *image_interface() const { return NULL; }
+ virtual const char *image_interface() const { return nullptr; }
virtual const char *file_extensions() const { return "typ"; }
- virtual const option_guide *create_option_guide() const { return NULL; }
+ virtual const option_guide *create_option_guide() const { return nullptr; }
virtual bool call_load();
virtual void call_unload();
@@ -473,9 +473,9 @@ public:
virtual bool is_creatable() const { return 1; }
virtual bool must_be_loaded() const { return 0; }
virtual bool is_reset_on_load() const { return 0; }
- virtual const char *image_interface() const { return NULL; }
+ virtual const char *image_interface() const { return nullptr; }
virtual const char *file_extensions() const { return "tap"; }
- virtual const option_guide *create_option_guide() const { return NULL; }
+ virtual const option_guide *create_option_guide() const { return nullptr; }
virtual bool call_load();
virtual void call_unload();
@@ -534,7 +534,7 @@ void tx0_readtape_image_device::call_unload()
tx0_state *state = machine().driver_data<tx0_state>();
/* reader unit */
- state->m_tape_reader.fd = NULL;
+ state->m_tape_reader.fd = nullptr;
/* stop motor */
state->m_tape_reader.motor_on = 0;
@@ -649,7 +649,7 @@ void tx0_punchtape_image_device::call_unload()
tx0_state *state = machine().driver_data<tx0_state>();
/* punch unit */
- state->m_tape_puncher.fd = NULL;
+ state->m_tape_puncher.fd = nullptr;
}
TIMER_CALLBACK_MEMBER(tx0_state::puncher_callback)
@@ -726,7 +726,7 @@ bool tx0_printer_image_device::call_load()
void tx0_printer_image_device::call_unload()
{
tx0_state *state = machine().driver_data<tx0_state>();
- state->m_typewriter.fd = NULL;
+ state->m_typewriter.fd = nullptr;
}
/*
@@ -877,7 +877,7 @@ bool tx0_magtape_image_device::call_load()
void tx0_magtape_image_device::call_unload()
{
tx0_state *state = machine().driver_data<tx0_state>();
- state->m_magtape.img = NULL;
+ state->m_magtape.img = nullptr;
if (state->m_magtape.timer)
{