]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Polish
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 27 May 2014 08:34:55 +0000 (01:34 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 27 May 2014 08:34:55 +0000 (01:34 -0700)
src/parser/Tokenizer.cc
src/parser/Tokenizer.h

index 5fef29850867692e6a4f19f5770152e756c7c43f..3c009c14b907f4657feed954d7e25baeabef47a3 100644 (file)
@@ -56,9 +56,8 @@ Parser::Tokenizer::skip(const char tokenChar)
     return false;
 }
 
-// adapted from compatr/strtoll.c
 bool
-Parser::Tokenizer::int64 (int64_t & result, int base)
+Parser::Tokenizer::int64(int64_t & result, int base)
 {
     if (buf_.isEmpty())
         return false;
@@ -78,5 +77,4 @@ Parser::Tokenizer::int64 (int64_t & result, int base)
     buf_.consume(eon - buf_.rawContent()); // consume the parsed chunk
     result = rv;
     return true;
-
 }
index 677d6282559fc3df0a55089f2f2cebbd2d889949..9436e9f19c108ff9fb8a86f6e0559f0f86134d05 100644 (file)
@@ -73,12 +73,13 @@ public:
     * at the beginning of the parse buffer, in the base specified by the user
     * or guesstimated; consumes the parsed characters.
     *
-    * \param result output value. Not touched if parseing is unsuccessful
-    * \param base specify base to do the parsing in, with the same restrictions
-    *   as strtoll. Defaults to 0 (meaning guess)
-    * \return true if the parsing was successful
+    * \param result Output value. Not touched if parsing is unsuccessful.
+    * \param base   Specify base to do the parsing in, with the same restrictions
+    *               as strtoll. Defaults to 0 (meaning guess)
+    *
+    * \return whether the parsing was successful
     */
-   bool int64 (int64_t &result, int base = 0);
+   bool int64(int64_t &result, int base = 0);
 
 private:
    SBuf buf_; ///< yet unparsed input