summaryrefslogtreecommitdiffstats
path: root/contrib/atf/atf-c++/detail/parser.hpp
diff options
context:
space:
mode:
authorjmmv <jmmv@FreeBSD.org>2013-12-29 02:57:10 +0000
committerjmmv <jmmv@FreeBSD.org>2013-12-29 02:57:10 +0000
commit2cc168fb9fc9be682ff4c984b6306ddfe22c033d (patch)
tree65f81fcb32677687d7156f496d0c2c2b05ab505c /contrib/atf/atf-c++/detail/parser.hpp
parent17b80845b0ba13495186831d3505af8c20eeb6ac (diff)
downloadFreeBSD-src-2cc168fb9fc9be682ff4c984b6306ddfe22c033d.zip
FreeBSD-src-2cc168fb9fc9be682ff4c984b6306ddfe22c033d.tar.gz
Update atf to 0.18 and remove the code of the deprecated tools.
This is a MFC into stable/10 of: - r258286 Update notes for imports of atf. - r258289 MFV: Import atf-0.18. - r258290 Drop all ATF tools code. This is "make tinderbox" clean as run on ref10-amd64 with the default WITHOUT_TESTS option. A "make buildworld" with WITH_TESTS set now works as well.
Diffstat (limited to 'contrib/atf/atf-c++/detail/parser.hpp')
-rw-r--r--contrib/atf/atf-c++/detail/parser.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/atf/atf-c++/detail/parser.hpp b/contrib/atf/atf-c++/detail/parser.hpp
index f1595f5..f55973f 100644
--- a/contrib/atf/atf-c++/detail/parser.hpp
+++ b/contrib/atf/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;
OpenPOWER on IntegriCloud