diff options
| author | Dmitry Antipov | 2014-05-30 11:40:29 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2014-05-30 11:40:29 +0400 |
| commit | 8d3103b1efd32a2faf257e26a5474e12543ce798 (patch) | |
| tree | 110af642ef3cecf9bc207d56add307156d004cb2 /src/lisp.h | |
| parent | 8cf1e6e67926683e38809adced986d255124afd5 (diff) | |
| download | emacs-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.h | 1 |
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); | |||
| 3747 | extern void syms_of_alloc (void); | 3747 | extern void syms_of_alloc (void); |
| 3748 | extern struct buffer * allocate_buffer (void); | 3748 | extern struct buffer * allocate_buffer (void); |
| 3749 | extern int valid_lisp_object_p (Lisp_Object); | 3749 | extern int valid_lisp_object_p (Lisp_Object); |
| 3750 | extern int relocatable_string_data_p (const char *); | ||
| 3750 | #ifdef GC_CHECK_CONS_LIST | 3751 | #ifdef GC_CHECK_CONS_LIST |
| 3751 | extern void check_cons_list (void); | 3752 | extern void check_cons_list (void); |
| 3752 | #else | 3753 | #else |