summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/device.h')
-rw-r--r--src/emu/device.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/emu/device.h b/src/emu/device.h
index b4fbd163cb3..f2c6950b45c 100644
--- a/src/emu/device.h
+++ b/src/emu/device.h
@@ -470,7 +470,7 @@ public:
m_current(NULL),
m_curdepth(0),
m_maxdepth(maxdepth) { }
-
+
// getters
device_t *current() const { return m_current; }
@@ -480,7 +480,7 @@ public:
// reset and return first item
device_t *first()
{
- m_current = m_root;
+ m_current = m_root;
return m_current;
}
@@ -502,7 +502,7 @@ public:
return m_current;
}
}
-
+
// search next for neighbors up the ownership chain
while (m_curdepth > 0)
{
@@ -511,24 +511,24 @@ public:
if (m_current != NULL)
return m_current;
- // no? try our parent
+ // no? try our parent
start = start->owner();
m_curdepth--;
}
-
+
// returned to the top; we're done
return m_current = NULL;
}
-
+
// return the number of items available
int count()
{
- int result = 0;
+ int result = 0;
for (device_t *item = first(); item != NULL; item = next())
result++;
return result;
}
-
+
// return the index of a given item in the virtual list
int indexof(device_t &device)
{
@@ -591,16 +591,16 @@ public:
return downcast<_DeviceClass *>(device);
return NULL;
}
-
+
// return the number of items available
int count()
{
- int result = 0;
+ int result = 0;
for (_DeviceClass *item = first(); item != NULL; item = next())
result++;
return result;
}
-
+
// return the index of a given item in the virtual list
int indexof(_DeviceClass &device)
{
@@ -641,7 +641,7 @@ public:
// getters
_InterfaceClass *current() const { return m_current; }
-
+
// setters
void set_current(_InterfaceClass &current) { m_current = &current; m_iterator.set_current(current.device()); }
@@ -662,16 +662,16 @@ public:
return m_current;
return NULL;
}
-
+
// return the number of items available
int count()
{
- int result = 0;
+ int result = 0;
for (_InterfaceClass *item = first(); item != NULL; item = next())
result++;
return result;
}
-
+
// return the index of a given item in the virtual list
int indexof(_InterfaceClass &intrf)
{
@@ -755,7 +755,7 @@ inline device_t *device_t::subdevice(const char *tag) const
//-------------------------------------------------
-// siblingdevice - given a tag, find the device
+// siblingdevice - given a tag, find the device
// by name relative to this device's parent
//-------------------------------------------------
@@ -768,7 +768,7 @@ inline device_t *device_t::siblingdevice(const char *tag) const
// empty string or NULL means this device
if (tag == NULL || *tag == 0)
return const_cast<device_t *>(this);
-
+
// leading caret implies the owner, just skip it
if (tag[0] == '^') tag++;