updated my recent commits to initialize bools with false instead of 0, as suggested (nw)

This commit is contained in:
Ivan Vangelista 2019-11-28 19:02:41 +01:00
parent 0b49460e42
commit 3377011887
6 changed files with 43 additions and 43 deletions

View File

@ -17,7 +17,7 @@ DEFINE_DEVICE_TYPE(I960, i960_cpu_device, "i960kb", "Intel i960KB")
i960_cpu_device::i960_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: cpu_device(mconfig, I960, tag, owner, clock)
, m_stalled(0), m_program_config("program", ENDIANNESS_LITTLE, 32, 32, 0)
, m_stalled(false), m_program_config("program", ENDIANNESS_LITTLE, 32, 32, 0)
, m_rcache_pos(0), m_SAT(0), m_PRCB(0), m_PC(0), m_AC(0), m_IP(0), m_PIP(0), m_ICR(0), m_bursting(0), m_immediate_irq(0)
, m_immediate_vector(0), m_immediate_pri(0), m_program(nullptr), m_cache(nullptr), m_icount(0)
{

View File

@ -108,8 +108,8 @@ private:
struct {
uint32_t t1,t2 = 0;
int index,size = 0;
bool burst_mode = 0;
bool iswriteop = 0;
bool burst_mode = false;
bool iswriteop = false;
}m_stall_state;
bool m_stalled;

View File

@ -65,10 +65,10 @@ acorn_vidc10_device::acorn_vidc10_device(const machine_config &mconfig, device_t
, m_pixel_clock(0)
, m_bpp_mode(0)
, m_crtc_interlace(0)
, m_cursor_enable(0)
, m_cursor_enable(false)
, m_sound_frequency_latch(0)
, m_sound_frequency_test_bit(0)
, m_sound_mode(0)
, m_sound_frequency_test_bit(false)
, m_sound_mode(false)
{
std::fill(std::begin(m_crtc_regs), std::end(m_crtc_regs), 0);

View File

@ -131,7 +131,7 @@ private:
uint16_t m_unknown_reg4a = 0;
uint16_t m_unknown_reg4c = 0;
emu_timer *m_cursor_timer = nullptr;
bool m_cursor_state = 0;
bool m_cursor_state = false;
uint16_t m_cursor_x_pos = 0;
uint16_t m_cursor_y_pos = 0;
uint16_t m_cursor_width = 0;
@ -140,10 +140,10 @@ private:
int m_fb_height = 0;
uint8_t m_plane_mask = 0;
bool m_read_enable = 0;
bool m_write_enable = 0;
bool m_fb_enable = 0;
bool m_changed = 0;
bool m_read_enable = false;
bool m_write_enable = false;
bool m_fb_enable = false;
bool m_changed = false;
required_shared_ptr<uint8_t> m_vram;
};

View File

@ -57,21 +57,21 @@ protected:
std::vector<uint8_t> m_light_states;
bool m_eps_mode = 0;
bool m_eps_mode = false;
esqpanel::external_panel_server *m_external_panel_server;
private:
static const int XMIT_RING_SIZE = 16;
bool m_bCalibSecondByte = 0;
bool m_bButtonLightSecondByte = 0;
bool m_bCalibSecondByte = false;
bool m_bButtonLightSecondByte = false;
devcb_write_line m_write_tx;
devcb_write16 m_write_analog;
uint8_t m_xmitring[XMIT_RING_SIZE];
int m_xmit_read, m_xmit_write = 0;
bool m_tx_busy = 0;
bool m_tx_busy = false;
emu_timer *m_external_timer = nullptr;
};

View File

@ -333,8 +333,8 @@ ygv608_device::ygv608_device( const machine_config &mconfig, const char *tag, de
m_na8_mask(0),
m_col_shift(0),
m_base_y_shift(0),
m_screen_resize(0),
m_tilemap_resize(0),
m_screen_resize(false),
m_tilemap_resize(false),
m_color_state_r(0),
m_color_state_w(0),
m_p0_state(0),
@ -343,53 +343,53 @@ ygv608_device::ygv608_device( const machine_config &mconfig, const char *tag, de
m_screen_status(0),
m_dma_status(0),
m_register_address(0),
m_register_autoinc_r(0),
m_register_autoinc_w(0),
m_raster_irq_mask(0),
m_vblank_irq_mask(0),
m_register_autoinc_r(false),
m_register_autoinc_w(false),
m_raster_irq_mask(false),
m_vblank_irq_mask(false),
m_raster_irq_hpos(0),
m_raster_irq_vpos(0),
m_raster_irq_mode(0),
m_raster_irq_mode(false),
m_scroll_address(0),
m_palette_address(0),
m_sprite_address(0),
m_sprite_bank(0),
m_xtile_ptr(0),
m_ytile_ptr(0),
m_xtile_autoinc(0),
m_ytile_autoinc(0),
m_plane_select_access(0),
m_xtile_autoinc(false),
m_ytile_autoinc(false),
m_plane_select_access(false),
m_mosaic_aplane(0),
m_mosaic_bplane(0),
m_sprite_disable(0),
m_sprite_aux_mode(0),
m_sprite_aux_reg(0),
m_border_color(0),
m_saar(0),
m_saaw(0),
m_scar(0),
m_scaw(0),
m_cpar(0),
m_cpaw(0),
m_ba_plane_scroll_select(0),
m_dspe(0),
m_saar(false),
m_saaw(false),
m_scar(false),
m_scaw(false),
m_cpar(false),
m_cpaw(false),
m_ba_plane_scroll_select(false),
m_dspe(false),
m_md(0),
m_zron(0),
m_flip(0),
m_dckm(0),
m_page_size(0),
m_zron(false),
m_flip(false),
m_dckm(false),
m_page_size(false),
m_h_display_size(0),
m_v_display_size(0),
m_roz_wrap_disable(0),
m_scroll_wrap_disable(0),
m_roz_wrap_disable(false),
m_scroll_wrap_disable(false),
m_pattern_size(0),
m_h_div_size(0),
m_v_div_size(0),
m_planeA_trans_enable(0),
m_planeB_trans_enable(0),
m_planeA_trans_enable(false),
m_planeB_trans_enable(false),
m_priority_mode(0),
m_cbdr(0),
m_yse(0),
m_cbdr(false),
m_yse(false),
m_scm(0),
m_planeA_color_fetch(0),
m_planeB_color_fetch(0),