Debugging facility to check whether 'const char *' points to
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 30 May 2014 07:40:29 +0000 (11:40 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Fri, 30 May 2014 07:40:29 +0000 (11:40 +0400)
commit8d3103b1efd32a2faf257e26a5474e12543ce798
tree110af642ef3cecf9bc207d56add307156d004cb2
parent8cf1e6e67926683e38809adced986d255124afd5
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.
src/ChangeLog
src/alloc.c
src/lisp.h
src/xdisp.c