summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pfmtlog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/plib/pfmtlog.cpp')
-rw-r--r--src/lib/netlist/plib/pfmtlog.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/lib/netlist/plib/pfmtlog.cpp b/src/lib/netlist/plib/pfmtlog.cpp
index 48b0f1544c1..9451e11866d 100644
--- a/src/lib/netlist/plib/pfmtlog.cpp
+++ b/src/lib/netlist/plib/pfmtlog.cpp
@@ -6,11 +6,8 @@
*/
#include <cstring>
-//FIXME:: pstring should be locale free
-#include <cctype>
#include <cstdlib>
-#include <cstdio>
-
+#include <cstdarg>
#include <algorithm>
#include "pfmtlog.h"
@@ -22,7 +19,7 @@ plog_dispatch_intf::~plog_dispatch_intf()
{
}
-pfmt::pfmt(const pstring &fmt)
+pfmt::pfmt(const pstring fmt)
: m_str(m_str_buf), m_allocated(0), m_arg(0)
{
std::size_t l = fmt.blen() + 1;
@@ -34,18 +31,6 @@ pfmt::pfmt(const pstring &fmt)
memcpy(m_str, fmt.c_str(), l);
}
-pfmt::pfmt(const char *fmt)
-: m_str(m_str_buf), m_allocated(0), m_arg(0)
-{
- std::size_t l = strlen(fmt) + 1;
- if (l>sizeof(m_str_buf))
- {
- m_allocated = 2 * l;
- m_str = palloc_array<char>(2 * l);
- }
- memcpy(m_str, fmt, l);
-}
-
pfmt::~pfmt()
{
if (m_allocated > 0)