aboutsummaryrefslogtreecommitdiffstats
path: root/alloca.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:09:58 +0300
committerArnold D. Robbins <arnold@skeeve.com>2010-07-16 12:09:58 +0300
commitcae8bc6ced84c12590e3554a06a952283735363a (patch)
treeca4f38bfcb1312bfb62fc693564d68f3e9b3e973 /alloca.c
parentdbd583bd2b8a6dd40c622875a4e197360cb5aba7 (diff)
downloadegawk-cae8bc6ced84c12590e3554a06a952283735363a.tar.gz
egawk-cae8bc6ced84c12590e3554a06a952283735363a.tar.bz2
egawk-cae8bc6ced84c12590e3554a06a952283735363a.zip
Move to 2.14.
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;