Commit 1fc31814 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(CHECK_IMPURE): Declare my_edata as char array.

parent bb8a51f5
...@@ -73,14 +73,14 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -73,14 +73,14 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* when PNTR_COMPARISON_TYPE is not the default (unsigned int) */ /* when PNTR_COMPARISON_TYPE is not the default (unsigned int) */
#define CHECK_IMPURE(obj) \ #define CHECK_IMPURE(obj) \
{ extern EMACS_INT my_edata; \ { extern char my_edata[]; \
if ((PNTR_COMPARISON_TYPE) XPNTR (obj) < (PNTR_COMPARISON_TYPE) &my_edata) \ if ((PNTR_COMPARISON_TYPE) XPNTR (obj) < (PNTR_COMPARISON_TYPE) &my_edata) \
pure_write_error (); } pure_write_error (); }
#else /* not VIRT_ADDRESS_VARIES, not PNTR_COMPARISON_TYPE */ #else /* not VIRT_ADDRESS_VARIES, not PNTR_COMPARISON_TYPE */
#define CHECK_IMPURE(obj) \ #define CHECK_IMPURE(obj) \
{ extern EMACS_INT my_edata; \ { extern char my_edata[]; \
if (XPNTR (obj) < (unsigned int) &my_edata) \ if (XPNTR (obj) < (unsigned int) &my_edata) \
pure_write_error (); } pure_write_error (); }
......
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