From 32f2a5723657c25d78b274e99486e0f224d38bc5 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 17 Sep 2008 16:17:03 +0000 Subject: Only randomise the inputstream if RANDOMISE_INPUTSTREAM is defined. This will prevent exhorbitant memory leakage when running make test in client code. svn path=/trunk/libparserutils/; revision=5365 --- include/parserutils/input/inputstream.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/parserutils/input/inputstream.h b/include/parserutils/input/inputstream.h index 3784f08..3bf51aa 100644 --- a/include/parserutils/input/inputstream.h +++ b/include/parserutils/input/inputstream.h @@ -93,8 +93,10 @@ static inline uintptr_t parserutils_inputstream_peek( fprintf(stdout, "Peek: len: %zu cur: %u off: %zu\n", stream->utf8->length, stream->cursor, offset); #endif +#ifdef RANDOMISE_INPUTSTREAM parserutils_buffer_randomise(stream->utf8); #endif +#endif #define IS_ASCII(x) (((x) & 0x80) == 0) -- cgit v1.2.3