summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-06-19 04:48:15 +0000
committerJim Meyering <jim@meyering.net>1994-06-19 04:48:15 +0000
commit09ce65ba63fc852c3c01feddc1f22e75891f5e10 (patch)
treea58ee885c612abfe875ee13cf655d0fce3f61874
parentb7dd52263eb795c61bfc943656d0f28e7d282e3d (diff)
downloadgnulib-09ce65ba63fc852c3c01feddc1f22e75891f5e10.tar.gz
GNU shell utilitiesSHELLUTILS-1_10c
-rw-r--r--lib/alloca.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/alloca.c b/lib/alloca.c
index bd4932aa44..d1f4d1a302 100644
--- 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 @@ 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)