diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2016-04-24 15:15:04 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2016-04-24 15:38:49 +0200 |
commit | 96d123b42c87007222bb545878cdef0116b60885 (patch) | |
tree | a611581b57d4debe784f1134a3de95426a7ba592 /src/mame/video/midzeus2.cpp | |
parent | c2c22570779f69e6921499b7abeb75f6db3d7822 (diff) |
NULL->nullptr, instead of DEVCB_NULL use always DEVCB_NOOP to prevent confusion (nw)
Diffstat (limited to 'src/mame/video/midzeus2.cpp')
-rw-r--r-- | src/mame/video/midzeus2.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/video/midzeus2.cpp b/src/mame/video/midzeus2.cpp index 670af222960..be97a461cfb 100644 --- a/src/mame/video/midzeus2.cpp +++ b/src/mame/video/midzeus2.cpp @@ -340,7 +340,7 @@ void midzeus2_state::exit_handler2() else { printf("\tWritten %d times\n", regwrite_count[regnum]); - for (info = regdata[regnum]; info != NULL; info = info->next) + for (info = regdata[regnum]; info != nullptr; info = info->next) printf("\t%08X\n", info->value); } } @@ -349,7 +349,7 @@ void midzeus2_state::exit_handler2() if (subregwrite_count[regnum] != 0) { printf("Sub-Register %02X (%d writes)\n", regnum, subregwrite_count[regnum]); - for (info = subregdata[regnum]; info != NULL; info = info->next) + for (info = subregdata[regnum]; info != nullptr; info = info->next) printf("\t%08X\n", info->value); } } @@ -501,13 +501,13 @@ if (regdata_count[offset] < 256) { reg_info **tailptr; - for (tailptr = ®data[offset]; *tailptr != NULL; tailptr = &(*tailptr)->next) + for (tailptr = ®data[offset]; *tailptr != nullptr; tailptr = &(*tailptr)->next) if ((*tailptr)->value == data) break; - if (*tailptr == NULL) + if (*tailptr == nullptr) { *tailptr = alloc_or_die(reg_info); - (*tailptr)->next = NULL; + (*tailptr)->next = nullptr; (*tailptr)->value = data; regdata_count[offset]++; } @@ -741,13 +741,13 @@ if (subregdata_count[which] < 256) { reg_info **tailptr; - for (tailptr = &subregdata[which]; *tailptr != NULL; tailptr = &(*tailptr)->next) + for (tailptr = &subregdata[which]; *tailptr != nullptr; tailptr = &(*tailptr)->next) if ((*tailptr)->value == value) break; - if (*tailptr == NULL) + if (*tailptr == nullptr) { *tailptr = alloc_or_die(reg_info); - (*tailptr)->next = NULL; + (*tailptr)->next = nullptr; (*tailptr)->value = value; subregdata_count[which]++; } |