Previous 15994 Revisions Next

r2060 Saturday 22nd March, 2008 at 16:47:06 UTC by Nathan Woods
Fixed bug #1549
[src/mess]device.c

src/mess/device.c
r2059r2060
361361 *
362362 *************************************/
363363
364static const struct IODevice *filter_device_array_termination(const struct IODevice *dev)
365{
366   return (dev->type < IO_COUNT) ? dev : NULL;
367}
368
369
370
364371const struct IODevice *mess_device_first_from_machine(const running_machine *machine)
365372{
366   return machine->devices;
373   return filter_device_array_termination(machine->devices);
367374}
368375
369376
370377
371378const struct IODevice *mess_device_next(const struct IODevice *dev)
372379{
373   dev++;
374   return (dev->type < IO_COUNT) ? dev : NULL;
380   return filter_device_array_termination(dev + 1);
375381}
376382
377383

Previous 15994 Revisions Next


© 1998-2018 The MESS Team