From: Mukund Sivaraman Date: Thu, 1 Nov 2012 05:10:00 +0000 (+0530) Subject: [2369] Explain how compact() affects ungetAll() X-Git-Tag: trac2487_base~18^2~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e32617d592d204e4c5c27ff3ecab77ea4e258cb7;p=thirdparty%2Fkea.git [2369] Explain how compact() affects ungetAll() --- diff --git a/src/lib/dns/master_lexer_inputsource.h b/src/lib/dns/master_lexer_inputsource.h index aec53950c6..9c8533eb46 100644 --- a/src/lib/dns/master_lexer_inputsource.h +++ b/src/lib/dns/master_lexer_inputsource.h @@ -105,9 +105,11 @@ public: /// called. void ungetChar(); - /// Forgets everything read so far, and skips back to the position - /// where reading started. If \c saveLine() was called previously, - /// it sets the current line number to the line number saved then. + /// Forgets what was read, and skips back to the position where + /// \c compact() was last called. If \c compact() was not called, it + /// skips back to where reading started. If \c saveLine() was called + /// previously, it sets the current line number to the line number + /// saved. void ungetAll(); /// Removes buffered content before the current location in the