comparison src/lisp.h @ 104622:cf947e01a2b6

* lisp.h: Replace #if 0 code for checking with text pointing to the --enable-checking configure flag. * emacs.c (main): Mention the --enable-profiling configure flag instead of using CFLAGS.
author Dan Nicolaescu <dann@ics.uci.edu>
date Wed, 26 Aug 2009 19:57:44 +0000
parents e6841301fe4d
children 4cbb223d0b1c
comparison
equal deleted inserted replaced
104621:f4a041a8c69d 104622:cf947e01a2b6
26 #define P_(proto) proto 26 #define P_(proto) proto
27 #else 27 #else
28 #define P_(proto) () 28 #define P_(proto) ()
29 #endif 29 #endif
30 30
31 #if 0 31 /* Use the configure flag --enable-checking[=LIST] to enable various
32 /* Define this temporarily to hunt a bug. If defined, the size of 32 types of run time checks for Lisp objects. */
33 strings is redundantly recorded in sdata structures so that it can
34 be compared to the sizes recorded in Lisp strings. */
35
36 #define GC_CHECK_STRING_BYTES 1
37
38 /* Define this to check for short string overrun. */
39
40 #define GC_CHECK_STRING_OVERRUN 1
41
42 /* Define this to check the string free list. */
43
44 #define GC_CHECK_STRING_FREE_LIST 1
45
46 /* Define this to check for malloc buffer overrun. */
47
48 #define XMALLOC_OVERRUN_CHECK 1
49
50 /* Define this to check for errors in cons list. */
51 /* #define GC_CHECK_CONS_LIST 1 */
52
53 #endif /* 0 */
54 33
55 #ifdef GC_CHECK_CONS_LIST 34 #ifdef GC_CHECK_CONS_LIST
56 #define CHECK_CONS_LIST() check_cons_list() 35 #define CHECK_CONS_LIST() check_cons_list()
57 #else 36 #else
58 #define CHECK_CONS_LIST() ((void)0) 37 #define CHECK_CONS_LIST() ((void)0)