summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pparser.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2016-05-26 21:29:41 +0200
committer couriersud <couriersud@arcor.de>2016-05-27 01:20:09 +0200
commit02e3213897e592aca825c977c580b1395e441f57 (patch)
tree80518372cdb224bd8d0d85cc8f81bec48191fc50 /src/lib/netlist/plib/pparser.cpp
parentfd62273a87b8fe43492e4a466ea97993b88904f8 (diff)
Leading underscore massacre. (nw)
Diffstat (limited to 'src/lib/netlist/plib/pparser.cpp')
-rw-r--r--src/lib/netlist/plib/pparser.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/lib/netlist/plib/pparser.cpp b/src/lib/netlist/plib/pparser.cpp
index 1fbd6938ddb..dc0c99e8560 100644
--- a/src/lib/netlist/plib/pparser.cpp
+++ b/src/lib/netlist/plib/pparser.cpp
@@ -22,22 +22,22 @@ pstring ptokenizer::currentline_str()
void ptokenizer::skipeol()
{
- pstring::code_t c = _getc();
+ pstring::code_t c = getc();
while (c)
{
if (c == 10)
{
- c = _getc();
+ c = getc();
if (c != 13)
- _ungetc();
+ ungetc();
return;
}
- c = _getc();
+ c = getc();
}
}
-pstring::code_t ptokenizer::_getc()
+pstring::code_t ptokenizer::getc()
{
if (m_px >= m_cur_line.len())
{
@@ -52,7 +52,7 @@ pstring::code_t ptokenizer::_getc()
return m_cur_line.code_at(m_px++);
}
-void ptokenizer::_ungetc()
+void ptokenizer::ungetc()
{
m_px--;
}
@@ -160,10 +160,10 @@ ptokenizer::token_t ptokenizer::get_token()
ptokenizer::token_t ptokenizer::get_token_internal()
{
/* skip ws */
- pstring::code_t c = _getc();
+ pstring::code_t c = getc();
while (m_whitespace.find(c)>=0)
{
- c = _getc();
+ c = getc();
if (eof())
{
return token_t(ENDOFFILE);
@@ -183,9 +183,9 @@ ptokenizer::token_t ptokenizer::get_token_internal()
else if (m_number_chars.find(c)<0)
break;
tokstr += c;
- c = _getc();
+ c = getc();
}
- _ungetc();
+ ungetc();
return token_t(ret, tokstr);
}
else if (m_identifier_chars.find(c)>=0)
@@ -194,9 +194,9 @@ ptokenizer::token_t ptokenizer::get_token_internal()
pstring tokstr = "";
while (m_identifier_chars.find(c)>=0) {
tokstr += c;
- c = _getc();
+ c = getc();
}
- _ungetc();
+ ungetc();
token_id_t id = token_id_t(m_tokens.indexof(tokstr));
if (id.id() >= 0)
return token_t(id, tokstr);
@@ -208,11 +208,11 @@ ptokenizer::token_t ptokenizer::get_token_internal()
else if (c == m_string)
{
pstring tokstr = "";
- c = _getc();
+ c = getc();
while (c != m_string)
{
tokstr += c;
- c = _getc();
+ c = getc();
}
return token_t(STRING, tokstr);
}
@@ -229,9 +229,9 @@ ptokenizer::token_t ptokenizer::get_token_internal()
if (id.id() >= 0)
return token_t(id, tokstr);
}
- c = _getc();
+ c = getc();
}
- _ungetc();
+ ungetc();
token_id_t id = token_id_t(m_tokens.indexof(tokstr));
if (id.id() >= 0)
return token_t(id, tokstr);