Parcourir la source

[2371] define and initialize Token for the lexer.

not actually needed in this branch, but it will clarify the idea of
how it will be used in later tasks.
JINMEI Tatuya il y a 12 ans
Parent
commit
213e364291
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/lib/dns/master_lexer.cc

+ 3 - 0
src/lib/dns/master_lexer.cc

@@ -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) {