From c4fa09760690b6cad194745e6000581c45b02ef4 Mon Sep 17 00:00:00 2001 From: "snappy.mirrorbot@gmail.com" Date: Tue, 22 May 2012 09:32:50 +0000 Subject: Snappy library no longer depends on iostream. Achieved by moving logging macro definitions to a test-only header file, and by changing non-test code to use assert, fprintf, and abort instead of LOG/CHECK macros. R=sesse git-svn-id: http://snappy.googlecode.com/svn/trunk@62 03e5f5b5-db94-4691-08a0-1a8bf15f6143 --- snappy-internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'snappy-internal.h') diff --git a/snappy-internal.h b/snappy-internal.h index a32eda5..c99d331 100644 --- a/snappy-internal.h +++ b/snappy-internal.h @@ -85,7 +85,7 @@ char* CompressFragment(const char* input, static inline int FindMatchLength(const char* s1, const char* s2, const char* s2_limit) { - DCHECK_GE(s2_limit, s2); + assert(s2_limit >= s2); int matched = 0; // Find out how long the match is. We loop over the data 64 bits at a @@ -122,7 +122,7 @@ static inline int FindMatchLength(const char* s1, const char* s2, const char* s2_limit) { // Implementation based on the x86-64 version, above. - DCHECK_GE(s2_limit, s2); + assert(s2_limit >= s2); int matched = 0; while (s2 <= s2_limit - 4 && -- cgit v1.2.1