Parcourir la source

[2373] (unrelated doc fix) corrected "optionality" of token type

EOL/EOF will be always returned if found; INTIAL_WS will be returned
only specified in option
JINMEI Tatuya il y a 12 ans
Parent
commit
8aa3316316
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      src/lib/dns/master_lexer.h

+ 3 - 3
src/lib/dns/master_lexer.h

@@ -216,10 +216,10 @@ public:
     /// as an unsigned 32-bit integer.  If we see the need for larger integers
     /// as an unsigned 32-bit integer.  If we see the need for larger integers
     /// or negative numbers, we can then extend the token types.
     /// or negative numbers, we can then extend the token types.
     enum Type {
     enum Type {
-        END_OF_LINE, ///< End of line detected (if asked for detecting it)
-        END_OF_FILE, ///< End of file detected (if asked for detecting it)
+        END_OF_LINE, ///< End of line detected
+        END_OF_FILE, ///< End of file detected
         INITIAL_WS,  ///< White spaces at the beginning of a line after an
         INITIAL_WS,  ///< White spaces at the beginning of a line after an
-                     ///< end of line
+                     ///< end of line (if asked for detecting it)
         NOVALUE_TYPE_MAX = INITIAL_WS, ///< Max integer corresponding to
         NOVALUE_TYPE_MAX = INITIAL_WS, ///< Max integer corresponding to
                                        /// no-value (type only) types.
                                        /// no-value (type only) types.
                                        /// Mainly for internal use.
                                        /// Mainly for internal use.