projects
/
debian
/
yforth
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change (back) to arch any
[debian/yforth]
/
config.h
diff --git
a/config.h
b/config.h
index 9bae024ed635253f62dc3820fef582d99ba43c1a..67142318b6eaa297944887ae8ea0a1632c3acedf 100644
(file)
--- a/
config.h
+++ b/
config.h
@@
-15,6
+15,8
@@
* excluded word lists may be linked to final code if used by other words.
*/
* excluded word lists may be linked to final code if used by other words.
*/
+#include <endian.h>
+
#define COREE_DEF 1L
#define DOUBLE_DEF 1L
#define DOUBLEE_DEF 1L
#define COREE_DEF 1L
#define DOUBLE_DEF 1L
#define DOUBLEE_DEF 1L
@@
-62,7
+64,11
@@
* Note that some compilers have LITTLE_ENDIAN yet defined.
*/
#ifndef LITTLE_ENDIAN
* Note that some compilers have LITTLE_ENDIAN yet defined.
*/
#ifndef LITTLE_ENDIAN
+# if __BYTE_ORDER == __LITTLE_ENDIAN
# define LITTLE_ENDIAN
# define LITTLE_ENDIAN
+# else
+# undef LITTLE_ENDIAN
+# endif
#endif
/* When DCELL_MEM is defined, double cell transfer is realized by memory
#endif
/* When DCELL_MEM is defined, double cell transfer is realized by memory
@@
-77,9
+83,15
@@
* Under Linux, Cell may be "int" and DCell "long long".
*/
* Under Linux, Cell may be "int" and DCell "long long".
*/
-#define Cell int
+/* this might work for other 64 bit architectures, too? */
+#if defined(__alpha__)
+# define Cell long
+#else
+# define Cell int
+#endif /* __alpha__ */
+
#define Char char
#define Char char
-#define Real
long double
+#define Real
float
#define UCell unsigned Cell
#define DCell long long
#define UCell unsigned Cell
#define DCell long long
@@
-102,8
+114,13
@@
#define MAX_F 0.0
/* Some compilers doesn't provide some functions in the standard library.
#define MAX_F 0.0
/* Some compilers doesn't provide some functions in the standard library.
- * If you don't have, undefine them
- */
-#define HAVE_ACOSH
-#define HAVE_ASINH
-#define HAVE_ATANH
+ * If you don't have, turn 1s into 0s
+ */
+#define HAVE_ACOSH 1
+#define HAVE_ASINH 1
+#define HAVE_ATANH 1
+
+/* Set following define to 1 if you're compiling under Turbo C, Borland C,
+ * or GCC for DOS.
+ */
+#define HAVE_CONIO 0