Parcourir la source

[2373] added a comment about if-else complexity in State::start().

JINMEI Tatuya il y a 12 ans
Parent
commit
377f14a32c
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

@@ -270,6 +270,9 @@ State::start(MasterLexer& lexer, MasterLexer::Options options) {
     MasterLexer::MasterLexerImpl& lexerimpl = *lexer.impl_;
     MasterLexer::MasterLexerImpl& lexerimpl = *lexer.impl_;
     size_t& paren_count = lexerimpl.paren_count_;
     size_t& paren_count = lexerimpl.paren_count_;
 
 
+    // Note: the if-else in the loop is getting complicated.  When we complete
+    // #2374, revisit the organization to see if we need a fundamental
+    // refactoring.
     while (true) {
     while (true) {
         const int c = lexerimpl.skipComment(lexerimpl.source_->getChar());
         const int c = lexerimpl.skipComment(lexerimpl.source_->getChar());
         if (c == InputSource::END_OF_STREAM) {
         if (c == InputSource::END_OF_STREAM) {