]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2371] define and initialize Token for the lexer.
authorJINMEI Tatuya <jinmei@isc.org>
Tue, 30 Oct 2012 03:23:23 +0000 (20:23 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Tue, 30 Oct 2012 03:23:23 +0000 (20:23 -0700)
not actually needed in this branch, but it will clarify the idea of
how it will be used in later tasks.

src/lib/dns/master_lexer.cc

index f4694cbf3249bd6f13ed519ce300d93325cd533c..f4432ff79e370a3fef0e214bce44a64f399d24f2 100644 (file)
@@ -54,7 +54,10 @@ typedef boost::shared_ptr<InputSource> InputSourcePtr;
 using namespace master_lexer_internal;
 
 struct MasterLexer::MasterLexerImpl {
+    MasterLexerImpl() : token_(Token::NOT_STARTED) {}
+
     std::vector<InputSourcePtr> sources_;
+    Token token_;
 };
 
 MasterLexer::MasterLexer() : impl_(new MasterLexerImpl) {