~ chicken-core (chicken-5) f44cca8b1ee33a13ae5e18d4ee60a137cbaeb854
commit f44cca8b1ee33a13ae5e18d4ee60a137cbaeb854
Author: Peter Bex <peter@more-magic.net>
AuthorDate: Sun Jan 29 17:38:28 2017 +0100
Commit: Kooda <kooda@upyum.com>
CommitDate: Sat Feb 25 17:44:06 2017 +0100
Simplify C_STACK_GROWS_DOWNWARD detection
Instead of first defining it to -1 if it's undefined and then checking
whether it has been defined as -1, we simply check if it's undefined.
There seems to be no good reason for the current behaviour.
Signed-off-by: Kooda <kooda@upyum.com>
diff --git a/chicken.h b/chicken.h
index caabbd4f..179f02be 100644
--- a/chicken.h
+++ b/chicken.h
@@ -293,17 +293,10 @@ void *alloca ();
/* Stack growth direction; used to compute stack addresses */
-
#ifndef C_STACK_GROWS_DOWNWARD
-# define C_STACK_GROWS_DOWNWARD -1
-#endif
-
-#if C_STACK_GROWS_DOWNWARD == -1
# ifdef __hppa__
-# undef C_STACK_GROWS_DOWNWARD
# define C_STACK_GROWS_DOWNWARD 0
# else
-# undef C_STACK_GROWS_DOWNWARD
# define C_STACK_GROWS_DOWNWARD 1
# endif
#endif
Trap