aboutsummaryrefslogtreecommitdiffstats
path: root/alloca.c
diff options
context:
space:
mode:
Diffstat (limited to 'alloca.c')
-rw-r--r--alloca.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/alloca.c b/alloca.c
index c29fbda3..866f3d5d 100644
--- a/alloca.c
+++ b/alloca.c
@@ -42,8 +42,8 @@ you
lose
-- must know STACK_DIRECTION at compile-time
#endif /* STACK_DIRECTION undefined */
-#endif static
-#endif emacs
+#endif /* static */
+#endif /* emacs */
#ifdef __STDC__
typedef void *pointer; /* generic pointer type */
@@ -55,6 +55,8 @@ typedef char *pointer; /* generic pointer type */
extern void free();
extern pointer xmalloc();
+extern int write();
+extern void exit();
/*
Define STACK_DIRECTION if you know the direction of stack
@@ -154,8 +156,8 @@ alloca (size) /* returns pointer to storage */
register header *hp; /* traverses linked list */
for (hp = last_alloca_header; hp != NULL;)
- if (STACK_DIR > 0 && hp->h.deep > depth
- || STACK_DIR < 0 && hp->h.deep < depth)
+ if ((STACK_DIR > 0 && hp->h.deep > depth)
+ || (STACK_DIR < 0 && hp->h.deep < depth))
{
register header *np = hp->h.next;