From: Richard M. Stallman Date: Thu, 2 Jun 1994 17:45:40 +0000 (+0000) Subject: [emacs]: Block input around the garbage reclamation. X-Git-Tag: 3.71.2~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3a24fc596de3dfaed321a6fd5fea876d580998d;p=thirdparty%2Fmake.git [emacs]: Block input around the garbage reclamation. Include blockinput.h. --- diff --git a/alloca.c b/alloca.c index bd4932aa..d1f4d1a3 100644 --- a/alloca.c +++ b/alloca.c @@ -29,6 +29,10 @@ #endif #endif +#ifdef emacs +#include "blockinput.h" +#endif + /* If compiling with GCC 2, this file's not needed. */ #if !defined (__GNUC__) || __GNUC__ < 2 @@ -176,6 +180,10 @@ alloca (size) { register header *hp; /* Traverses linked list. */ +#ifdef emacs + BLOCK_INPUT; +#endif + for (hp = last_alloca_header; hp != NULL;) if ((STACK_DIR > 0 && hp->h.deep > depth) || (STACK_DIR < 0 && hp->h.deep < depth)) @@ -190,6 +198,10 @@ alloca (size) break; /* Rest are not deeper. */ last_alloca_header = hp; /* -> last valid storage. */ + +#ifdef emacs + UNBLOCK_INPUT; +#endif } if (size == 0)