diff options
author | 2016-02-28 11:09:00 +1100 | |
---|---|---|
committer | 2016-02-28 13:36:19 +1100 | |
commit | aec01e740736db267e452f0ed5947649f79e3408 (patch) | |
tree | 633ca7d80a756bfcc05d871817201c729e55142d /src/devices/cpu/alto2/alto2cpu.cpp | |
parent | 3cba23966f6c1c6f9ee616e5af00ebcfcb0d0b0a (diff) |
Replace strformat, strprintf and strcatprintf with type-safe steam_format and string_format
Update MAME to use new function
Instantiate ODR-used static constant members
Make some of the UI code more localisable
Remove use of retired functions in tools
Diffstat (limited to 'src/devices/cpu/alto2/alto2cpu.cpp')
-rw-r--r-- | src/devices/cpu/alto2/alto2cpu.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/devices/cpu/alto2/alto2cpu.cpp b/src/devices/cpu/alto2/alto2cpu.cpp index 653f56949e5..fb2d1700d5f 100644 --- a/src/devices/cpu/alto2/alto2cpu.cpp +++ b/src/devices/cpu/alto2/alto2cpu.cpp @@ -1009,14 +1009,15 @@ void alto2_cpu_device::state_string_export(const device_state_entry &entry, std: switch (entry.index()) { case A2_TASK: - strprintf(str, "%s", task_name(m_task)); + str = string_format("%s", task_name(m_task)); break; case STATE_GENFLAGS: - strprintf(str, "%s%s%s%s", - m_aluc0 ? "C":"-", - m_laluc0 ? "c":"-", - m_shifter == 0 ? "0":"-", - static_cast<INT16>(m_shifter) < 0 ? "<":"-"); + str = string_format( + "%c%c%c%c", + m_aluc0 ? 'C' : '-', + m_laluc0 ? 'c' : '-', + (m_shifter == 0) ? '0' : '-', + (INT16(m_shifter) < 0) ? '<' : '-'); break; } } |