summaryrefslogtreecommitdiff
path: root/snappy-internal.h
diff options
context:
space:
mode:
authorsnappy.mirrorbot@gmail.com <snappy.mirrorbot@gmail.com@03e5f5b5-db94-4691-08a0-1a8bf15f6143>2012-05-22 09:32:50 +0000
committersnappy.mirrorbot@gmail.com <snappy.mirrorbot@gmail.com@03e5f5b5-db94-4691-08a0-1a8bf15f6143>2012-05-22 09:32:50 +0000
commitc4fa09760690b6cad194745e6000581c45b02ef4 (patch)
treea4e185ca7c6b055db7472fdf3c1f7ec4816b68fb /snappy-internal.h
parent953ad2bd60459aadc502210dfeee08d5da9af1ae (diff)
downloadsnappy-c4fa09760690b6cad194745e6000581c45b02ef4.tar.gz
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
Diffstat (limited to 'snappy-internal.h')
-rw-r--r--snappy-internal.h4
1 files changed, 2 insertions, 2 deletions
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 &&