mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 12:31:25 +00:00
[MPS] Temporarily scan SAFE_ALLOCA'd memory (bug#75754)
This is not a permanent solution, and requires statement expressions. * src/lisp.h (SAFE_ALLOCA): Define in terms of SAFE_NALLOCA, which already uses this workaround.
This commit is contained in:
parent
7009edab10
commit
4fda39cb16
1 changed files with 11 additions and 0 deletions
11
src/lisp.h
11
src/lisp.h
|
|
@ -6122,6 +6122,17 @@ void igc_xfree (void *p);
|
|||
} \
|
||||
} while (false)
|
||||
|
||||
/* Temporarily avoid bug#75754. The code above is painstakingly written
|
||||
to avoid statement expressions; no easy way to do that in this case,
|
||||
unfortunately.
|
||||
|
||||
FIXME/igc: find a permanent fix for these bugs. */
|
||||
#undef SAFE_ALLOCA
|
||||
#define SAFE_ALLOCA(size) \
|
||||
({ void *buf; \
|
||||
SAFE_NALLOCA (buf, size, 1); \
|
||||
buf; })
|
||||
|
||||
#endif
|
||||
|
||||
/* SAFE_ALLOCA_STRING allocates a C copy of a Lisp string. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue