+2013-09-24 Paul Eggert <eggert@cs.ucla.edu>
+
+ * alloc.c (valgrind_p): Use bool for boolean.
+
2013-09-23 Dmitry Antipov <dmantipov@yandex.ru>
* xdisp.c (noninteractive_need_newline, message_log_need_newline)
#include <verify.h>
-#if (defined ENABLE_CHECKING && \
- defined HAVE_VALGRIND_VALGRIND_H && \
- !defined USE_VALGRIND)
+#if (defined ENABLE_CHECKING \
+ && defined HAVE_VALGRIND_VALGRIND_H \
+ && !defined USE_VALGRIND)
# define USE_VALGRIND 1
#endif
#if USE_VALGRIND
#include <valgrind/valgrind.h>
#include <valgrind/memcheck.h>
-static int valgrind_p;
+static bool valgrind_p;
#endif
/* GC_CHECK_MARKED_OBJECTS means do sanity checks on allocated objects.
gcs_done = 0;
#if USE_VALGRIND
- valgrind_p = RUNNING_ON_VALGRIND;
+ valgrind_p = RUNNING_ON_VALGRIND != 0;
#endif
}