summaryrefslogtreecommitdiff
path: root/atf-c++/detail/parser.hpp
diff options
context:
space:
mode:
authorJulio Merino <jmmv@FreeBSD.org>2013-11-16 21:57:53 +0000
committerJulio Merino <jmmv@FreeBSD.org>2013-11-16 21:57:53 +0000
commitbf351e294647b19b2abb7e59344e619866206e71 (patch)
treefbeeb9add4586c61211109aa7e0bddba2b3da3b5 /atf-c++/detail/parser.hpp
parentb2b6e97c465e6ea7f9e9e631898d5ec26c65daa1 (diff)
Diffstat (limited to 'atf-c++/detail/parser.hpp')
-rw-r--r--atf-c++/detail/parser.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/atf-c++/detail/parser.hpp b/atf-c++/detail/parser.hpp
index f1595f531f55e..f55973f50c42e 100644
--- a/atf-c++/detail/parser.hpp
+++ b/atf-c++/detail/parser.hpp
@@ -259,7 +259,7 @@ tokenizer< IS >::next(void)
t = token(m_lineno, m_text_type, text);
quoted = true;
} else {
- m_is.unget();
+ m_is.putback(ch);
done = true;
}
} else {
@@ -271,13 +271,13 @@ tokenizer< IS >::next(void)
t = token(m_lineno, (*idelim).second,
std::string("") + ch);
else
- m_is.unget();
+ m_is.putback(ch);
} else if (ch == '\n') {
done = true;
if (text.empty())
t = token(m_lineno, m_nl_type, "<<NEWLINE>>");
else
- m_is.unget();
+ m_is.putback(ch);
} else if (m_skipws && (ch == ' ' || ch == '\t')) {
if (!text.empty())
done = true;