aboutsummaryrefslogtreecommitdiffstats
path: root/src/lisp.h
diff options
context:
space:
mode:
authorDmitry Antipov2014-05-30 11:40:29 +0400
committerDmitry Antipov2014-05-30 11:40:29 +0400
commit8d3103b1efd32a2faf257e26a5474e12543ce798 (patch)
tree110af642ef3cecf9bc207d56add307156d004cb2 /src/lisp.h
parent8cf1e6e67926683e38809adced986d255124afd5 (diff)
downloademacs-8d3103b1efd32a2faf257e26a5474e12543ce798.tar.gz
emacs-8d3103b1efd32a2faf257e26a5474e12543ce798.zip
Debugging facility to check whether 'const char *' points to
relocatable data of non-pure Lisp string. * alloc.c (maybe_lisp_pointer): New function, refactored out of ... (mark_maybe_pointer): ... adjusted user. (relocatable_string_data_p): New function. * lisp.h (relocatable_string_data_p): Add prototype. * xdisp.c (message_with_string): If ENABLE_CHECKING, make sure the pointer to relocatable Lisp data is not used.
Diffstat (limited to 'src/lisp.h')
-rw-r--r--src/lisp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lisp.h b/src/lisp.h
index bbe2e4e9ce2..5002fa2a282 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -3747,6 +3747,7 @@ extern void init_alloc (void);
3747extern void syms_of_alloc (void); 3747extern void syms_of_alloc (void);
3748extern struct buffer * allocate_buffer (void); 3748extern struct buffer * allocate_buffer (void);
3749extern int valid_lisp_object_p (Lisp_Object); 3749extern int valid_lisp_object_p (Lisp_Object);
3750extern int relocatable_string_data_p (const char *);
3750#ifdef GC_CHECK_CONS_LIST 3751#ifdef GC_CHECK_CONS_LIST
3751extern void check_cons_list (void); 3752extern void check_cons_list (void);
3752#else 3753#else