Mercurial > hg > octave-lojdl > gnulib-hg
changeset 222:c2edb19de896
GNU shell utilities
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sun, 19 Jun 1994 04:48:15 +0000 |
parents | 07b89dd1b7ba |
children | ed5f0b3d4c40 |
files | lib/alloca.c |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/alloca.c +++ b/lib/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 @@ { 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 @@ break; /* Rest are not deeper. */ last_alloca_header = hp; /* -> last valid storage. */ + +#ifdef emacs + UNBLOCK_INPUT; +#endif } if (size == 0)