Commit d160dd0c authored by Paul Eggert's avatar Paul Eggert
Browse files

* alloc.c (valgrind_p): Use bool for boolean.

parent 84998447
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)
......
......@@ -45,16 +45,16 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#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.
......@@ -6667,7 +6667,7 @@ init_alloc (void)
gcs_done = 0;
#if USE_VALGRIND
valgrind_p = RUNNING_ON_VALGRIND;
valgrind_p = RUNNING_ON_VALGRIND != 0;
#endif
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment