Skip to content
This repository was archived by the owner on Sep 18, 2021. It is now read-only.

Commit 80c459a

Browse files
author
micko
committed
Clean-ups and version bump
1 parent ec4d970 commit 80c459a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+814
-1813
lines changed

src/emu/cpu/i386/i386.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static void i386_set_descriptor_accessed(i386_state *cpustate, UINT16 selector)
107107
UINT8 rights;
108108
if(!(selector & ~3))
109109
return;
110-
110+
111111
if ( selector & 0x4 )
112112
base = cpustate->ldtr.base;
113113
else
@@ -458,8 +458,8 @@ static void i386_sreg_load(i386_state *cpustate, UINT16 selector, UINT8 reg, boo
458458
i386_load_segment_descriptor(cpustate, reg);
459459
if(fault) *fault = false;
460460
return;
461-
}
462-
461+
}
462+
463463
if(fault) *fault = true;
464464
if(reg == SS)
465465
{
@@ -1030,7 +1030,7 @@ static void i286_task_switch(i386_state *cpustate, UINT16 selector, UINT8 nested
10301030
WRITE16(cpustate,tss+0x28,cpustate->sreg[DS].selector);
10311031

10321032
old_task = cpustate->task.segment;
1033-
1033+
10341034
/* Load task register with the selector of the incoming task */
10351035
cpustate->task.segment = selector;
10361036
memset(&seg, 0, sizeof(seg));

src/emu/cpu/powerpc/ppc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ struct _powerpc_config
152152
{
153153
UINT32 bus_frequency;
154154
read32_device_func dcr_read_func;
155-
write32_device_func dcr_write_func;
155+
write32_device_func dcr_write_func;
156156
};
157157

158158

src/emu/cpu/powerpc/ppccom.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ struct _powerpc_state
567567
ppcimp_state * impstate;
568568

569569
read32_device_func dcr_read_func;
570-
write32_device_func dcr_write_func;
570+
write32_device_func dcr_write_func;
571571
};
572572

573573

src/emu/device.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -631,8 +631,8 @@ class device_t::shared_ptr_array_finder
631631

632632
protected:
633633
// internal state
634-
shared_ptr_type *m_array[_Count];
635-
astring m_tag[_Count];
634+
shared_ptr_type *m_array[_Count+1];
635+
astring m_tag[_Count+1];
636636
};
637637

638638
// optional shared pointer array finder

src/emu/info.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -690,18 +690,18 @@ void info_xml_creator::output_display(device_t &device, const char *root_tag)
690690
{
691691
astring newtag(screendev->tag()), oldtag(":");
692692
newtag.substr(newtag.find(oldtag.cat(root_tag)) + oldtag.len());
693-
693+
694694
fprintf(m_output, "\t\t<display");
695695
fprintf(m_output, " tag=\"%s\"", xml_normalize_string(newtag));
696-
696+
697697
switch (screendev->screen_type())
698698
{
699699
case SCREEN_TYPE_RASTER: fprintf(m_output, " type=\"raster\""); break;
700700
case SCREEN_TYPE_VECTOR: fprintf(m_output, " type=\"vector\""); break;
701701
case SCREEN_TYPE_LCD: fprintf(m_output, " type=\"lcd\""); break;
702702
default: fprintf(m_output, " type=\"unknown\""); break;
703703
}
704-
704+
705705
// output the orientation as a string
706706
switch (m_drivlist.driver().flags & ORIENTATION_MASK)
707707
{
@@ -730,24 +730,24 @@ void info_xml_creator::output_display(device_t &device, const char *root_tag)
730730
fprintf(m_output, " rotate=\"0\"");
731731
break;
732732
}
733-
733+
734734
// output width and height only for games that are not vector
735735
if (screendev->screen_type() != SCREEN_TYPE_VECTOR)
736736
{
737737
const rectangle &visarea = screendev->visible_area();
738738
fprintf(m_output, " width=\"%d\"", visarea.width());
739739
fprintf(m_output, " height=\"%d\"", visarea.height());
740740
}
741-
741+
742742
// output refresh rate
743743
fprintf(m_output, " refresh=\"%f\"", ATTOSECONDS_TO_HZ(screendev->refresh_attoseconds()));
744-
744+
745745
// output raw video parameters only for games that are not vector
746746
// and had raw parameters specified
747747
if (screendev->screen_type() != SCREEN_TYPE_VECTOR && !screendev->oldstyle_vblank_supplied())
748748
{
749749
int pixclock = screendev->width() * screendev->height() * ATTOSECONDS_TO_HZ(screendev->refresh_attoseconds());
750-
750+
751751
fprintf(m_output, " pixclock=\"%d\"", pixclock);
752752
fprintf(m_output, " htotal=\"%d\"", screendev->width());
753753
fprintf(m_output, " hbend=\"%d\"", screendev->visible_area().min_x);

src/emu/ioport.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ natural_keyboard::natural_keyboard(running_machine &machine)
992992
m_timer(NULL),
993993
m_current_rate(attotime::zero)
994994
{
995-
m_queue_chars = ioport_queue_chars_delegate();
995+
m_queue_chars = ioport_queue_chars_delegate();
996996
m_accept_char = ioport_accept_char_delegate();
997997
m_charqueue_empty = ioport_charqueue_empty_delegate();
998998

@@ -1833,10 +1833,10 @@ ioport_type_class ioport_field::type_class() const
18331833
unicode_char ioport_field::keyboard_code(int which) const
18341834
{
18351835
unicode_char ch;
1836-
1836+
18371837
if (which >= ARRAY_LENGTH(m_chars))
18381838
throw emu_fatalerror("Tried to access keyboard_code with out-of-range index %d\n", which);
1839-
1839+
18401840
ch = m_chars[which];
18411841

18421842
// special hack to allow for PORT_CODE('\xA3')
@@ -3849,8 +3849,8 @@ void ioport_configurer::field_add_char(unicode_char ch)
38493849
m_curfield->m_chars[index] = ch;
38503850
return;
38513851
}
3852-
3853-
throw emu_fatalerror("PORT_CHAR(%d) could not be added - maximum amount exceeded\n", ch);
3852+
3853+
throw emu_fatalerror("PORT_CHAR(%d) could not be added - maximum amount exceeded\n", ch);
38543854
}
38553855

38563856

@@ -3875,7 +3875,7 @@ void ioport_configurer::setting_alloc(ioport_value value, const char *name)
38753875
throw emu_fatalerror("alloc_setting called with no active field (value=%X name=%s)\n", value, name);
38763876

38773877
m_cursetting = global_alloc(ioport_setting(*m_curfield, value & m_curfield->mask(), string_from_token(name)));
3878-
// append a new setting
3878+
// append a new setting
38793879
m_curfield->m_settinglist.append(*m_cursetting);
38803880
}
38813881

src/emu/ioport.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ class natural_keyboard
833833
natural_keyboard(running_machine &machine);
834834

835835
void initialize();
836-
836+
837837
// getters and queries
838838
running_machine &machine() const { return m_machine; }
839839
bool empty() const { return (m_bufbegin == m_bufend); }

src/emu/machine/68681.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ WRITE8_DEVICE_HANDLER(duart68681_w)
660660
rate = attotime::from_hz(2*device->clock()/(2*16*16*0x10000));
661661
}
662662
}
663-
663+
664664
//hz = ATTOSECONDS_TO_HZ(rate.attoseconds);
665665

666666
duart68681->duart_timer->adjust(rate, 0, rate);

src/emu/rendlay.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ void layout_element::component::draw(running_machine &machine, bitmap_argb32 &de
821821
case CTYPE_DOTMATRIXDOT:
822822
draw_dotmatrix(1, dest, bounds, state);
823823
break;
824-
824+
825825
case CTYPE_SIMPLECOUNTER:
826826
draw_simplecounter(machine, dest, bounds, state);
827827
break;

src/emu/rendlay.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class layout_element
122122
CTYPE_LED16SEGSC,
123123
CTYPE_DOTMATRIX,
124124
CTYPE_DOTMATRIX5DOT,
125-
CTYPE_DOTMATRIXDOT,
125+
CTYPE_DOTMATRIXDOT,
126126
CTYPE_SIMPLECOUNTER,
127127
CTYPE_REEL,
128128
CTYPE_MAX

0 commit comments

Comments
 (0)