From: Amos Jeffries Date: Wed, 18 Feb 2009 10:58:53 +0000 (+1300) Subject: Author: Francesco Chemolli X-Git-Tag: SQUID_3_2_0_1~1189 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8007180b22cef9ff8c0c12127b5de2f1dbbea82e;p=thirdparty%2Fsquid.git Author: Francesco Chemolli String NG : basic SquidString updates pt 2 - finished the analysis of raw buffer exporting, divided among c-sting and raw-buf access clients - general sanitization - reversal of some wrongly-renamed variables and comments - implementation of SQUIDSTRINGPRINT and SQUIDSTRINGPH (placeholder) macros and psize() function for printf-style calls - implementation of, and migration to, String::size_type and String::npos - de-inlining of pos(), rpos(), find() and rfind() calls - implementation and use of a proper substr() call --- 8007180b22cef9ff8c0c12127b5de2f1dbbea82e diff --cc src/String.cci index 11dbd62cf3,7f7c881e95..66790f3d65 --- a/src/String.cci +++ b/src/String.cci @@@ -33,8 -33,18 +33,17 @@@ */ #include "config.h" -#include "assert.h" #include + #ifdef HAVE_STDINT_H + #include //for INT_MAX + #else /* HAVE_STDINT_H */ + #ifndef INT_MAX + #define INT_MAX 1<<31 //hack but a safe bet + #endif /* INT_MAX */ + #endif /* HAVE_STDINT_H */ + + String::String() : size_(0), len_(0), buf_ (NULL) { #if DEBUGSTRINGS