summaryrefslogtreecommitdiffstats
path: root/src/emu/softlist.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
commitddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch)
treea70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/emu/softlist.cpp
parent333bff8de64dfaeb98134000412796b4fdef970b (diff)
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/emu/softlist.cpp')
-rw-r--r--src/emu/softlist.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/softlist.cpp b/src/emu/softlist.cpp
index dc433a54507..bb03a9e2800 100644
--- a/src/emu/softlist.cpp
+++ b/src/emu/softlist.cpp
@@ -204,7 +204,7 @@ softlist_parser::softlist_parser(util::core_file &file, const std::string &filen
char buffer[1024];
while (!m_done)
{
- UINT32 length = m_file.read(buffer, sizeof(buffer));
+ uint32_t length = m_file.read(buffer, sizeof(buffer));
m_done = m_file.eof();
if (XML_Parse(m_parser, buffer, length, m_done) == XML_STATUS_ERROR)
{
@@ -341,7 +341,7 @@ bool softlist_parser::parse_name_and_value(const char **attributes, std::string
// current part's list
//-------------------------------------------------
-void softlist_parser::add_rom_entry(std::string &&name, std::string &&hashdata, UINT32 offset, UINT32 length, UINT32 flags)
+void softlist_parser::add_rom_entry(std::string &&name, std::string &&hashdata, uint32_t offset, uint32_t length, uint32_t flags)
{
// get the current part
if (m_current_part == nullptr)
@@ -597,7 +597,7 @@ void softlist_parser::parse_part_start(const char *tagname, const char **attribu
// handle region attributes
const std::string &width = attrvalues[2];
const std::string &endianness = attrvalues[3];
- UINT32 regionflags = ROMENTRYTYPE_REGION;
+ uint32_t regionflags = ROMENTRYTYPE_REGION;
if (!width.empty())
{
@@ -689,8 +689,8 @@ void softlist_parser::parse_data_start(const char *tagname, const char **attribu
const std::string &loadflag = attrvalues[7];
if (!sizestr.empty() && !offsetstr.empty())
{
- UINT32 length = strtol(sizestr.c_str(), nullptr, 0);
- UINT32 offset = strtol(offsetstr.c_str(), nullptr, 0);
+ uint32_t length = strtol(sizestr.c_str(), nullptr, 0);
+ uint32_t offset = strtol(offsetstr.c_str(), nullptr, 0);
if (loadflag == "reload")
add_rom_entry("", "", offset, length, ROMENTRYTYPE_RELOAD | ROM_INHERITFLAGS);
@@ -740,7 +740,7 @@ void softlist_parser::parse_data_start(const char *tagname, const char **attribu
}
else if (!sizestr.empty() && !loadflag.empty() && loadflag == "ignore")
{
- UINT32 length = strtol(sizestr.c_str(), nullptr, 0);
+ uint32_t length = strtol(sizestr.c_str(), nullptr, 0);
add_rom_entry("", "", 0, length, ROMENTRYTYPE_IGNORE | ROM_INHERITFLAGS);
}
else