summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-05-10 16:02:17 +0000
committerMarc Espie <espie@cvs.openbsd.org>1999-05-10 16:02:17 +0000
commitc606ee6a29b096ead9a5b55824175725213f4afe (patch)
treeabce6749743154fda121f71aa999d83efb864499
parentff033804148a0c0e9158bbe058a5738c6a77b06c (diff)
Use symbolic define for BYTE_ORDER.
(don't forget that cpp is `lazy': #define A B #define B value #if A == value works, since A isn't extended before it's needed, by which time B is known)
-rw-r--r--sys/arch/alpha/include/endian.h4
-rw-r--r--sys/arch/arc/include/endian.h4
-rw-r--r--sys/arch/arm32/include/endian.h4
-rw-r--r--sys/arch/hppa/include/endian.h4
-rw-r--r--sys/arch/i386/include/endian.h4
-rw-r--r--sys/arch/kbus/include/endian.h4
-rw-r--r--sys/arch/m68k/include/endian.h4
-rw-r--r--sys/arch/mvme88k/include/endian.h4
-rw-r--r--sys/arch/pc532/include/endian.h4
-rw-r--r--sys/arch/pmax/include/endian.h4
-rw-r--r--sys/arch/powerpc/include/endian.h4
-rw-r--r--sys/arch/sparc/include/endian.h4
-rw-r--r--sys/arch/vax/include/endian.h4
-rw-r--r--sys/arch/wgrisc/include/endian.h4
14 files changed, 28 insertions, 28 deletions
diff --git a/sys/arch/alpha/include/endian.h b/sys/arch/alpha/include/endian.h
index 2a7502d0a12..bf347a3d3a2 100644
--- a/sys/arch/alpha/include/endian.h
+++ b/sys/arch/alpha/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.8 1997/11/09 23:05:00 niklas Exp $ */
+/* $OpenBSD: endian.h,v 1.9 1999/05/10 16:02:07 espie Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -32,7 +32,7 @@
#ifndef _ALPHA_ENDIAN_H_
#define _ALPHA_ENDIAN_H_
-#define BYTE_ORDER 1234
+#define BYTE_ORDER LITTLE_ENDIAN
#include <sys/endian.h>
#endif /* _ALPHA_ENDIAN_H_ */
diff --git a/sys/arch/arc/include/endian.h b/sys/arch/arc/include/endian.h
index 63b9751e035..1dd21b4571c 100644
--- a/sys/arch/arc/include/endian.h
+++ b/sys/arch/arc/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.7 1997/11/10 00:10:13 niklas Exp $ */
+/* $OpenBSD: endian.h,v 1.8 1999/05/10 16:02:08 espie Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -32,7 +32,7 @@
#ifndef _ARC_ENDIAN_H_
#define _ARC_ENDIAN_H_
-#define BYTE_ORDER 1234
+#define BYTE_ORDER LITTLE_ENDIAN
#include <sys/endian.h>
#endif /* _ARC_ENDIAN_H_ */
diff --git a/sys/arch/arm32/include/endian.h b/sys/arch/arm32/include/endian.h
index 781bc79d3bf..ace03be3355 100644
--- a/sys/arch/arm32/include/endian.h
+++ b/sys/arch/arm32/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.5 1997/11/10 00:10:14 niklas Exp $ */
+/* $OpenBSD: endian.h,v 1.6 1999/05/10 16:02:08 espie Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -32,7 +32,7 @@
#ifndef _ARM32_ENDIAN_H_
#define _ARM32_ENDIAN_H_
-#define BYTE_ORDER 1234
+#define BYTE_ORDER LITTLE_ENDIAN
#include <sys/endian.h>
#endif /* _ARM32_ENDIAN_H_ */
diff --git a/sys/arch/hppa/include/endian.h b/sys/arch/hppa/include/endian.h
index 332833ba12d..335512c9096 100644
--- a/sys/arch/hppa/include/endian.h
+++ b/sys/arch/hppa/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.2 1998/12/05 17:29:50 mickey Exp $ */
+/* $OpenBSD: endian.h,v 1.3 1999/05/10 16:02:08 espie Exp $ */
/*
* Copyright (c) 1998 Michael Shalayeff
@@ -58,7 +58,7 @@
#endif /* __GNUC__ */
-#define BYTE_ORDER 4321
+#define BYTE_ORDER BIG_ENDIAN
#include <sys/endian.h>
#endif /* !_MACHINE_ENDIAN_H_ */
diff --git a/sys/arch/i386/include/endian.h b/sys/arch/i386/include/endian.h
index 78fdfcac502..edffa1cb498 100644
--- a/sys/arch/i386/include/endian.h
+++ b/sys/arch/i386/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.10 1997/11/10 10:55:29 niklas Exp $ */
+/* $OpenBSD: endian.h,v 1.11 1999/05/10 16:02:08 espie Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -64,7 +64,7 @@
#endif /* __GNUC__ */
-#define BYTE_ORDER 1234
+#define BYTE_ORDER LITTLE_ENDIAN
#include <sys/endian.h>
#endif /* _I386_ENDIAN_H_ */
diff --git a/sys/arch/kbus/include/endian.h b/sys/arch/kbus/include/endian.h
index 5aa7f1bfcc1..b14bce734dd 100644
--- a/sys/arch/kbus/include/endian.h
+++ b/sys/arch/kbus/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.3 1997/11/10 00:10:15 niklas Exp $ */
+/* $OpenBSD: endian.h,v 1.4 1999/05/10 16:02:09 espie Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -32,7 +32,7 @@
#ifndef _KBUS_ENDIAN_H_
#define _KBUS_ENDIAN_H_
-#define BYTE_ORDER 4321
+#define BYTE_ORDER BIG_ENDIAN
#include <sys/endian.h>
#endif /* _KBUS_ENDIAN_H_ */
diff --git a/sys/arch/m68k/include/endian.h b/sys/arch/m68k/include/endian.h
index 544a4720131..93d928548a5 100644
--- a/sys/arch/m68k/include/endian.h
+++ b/sys/arch/m68k/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.11 1997/11/10 10:36:05 niklas Exp $ */
+/* $OpenBSD: endian.h,v 1.12 1999/05/10 16:02:09 espie Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -55,7 +55,7 @@
#endif /* __GNUC__ */
-#define BYTE_ORDER 4321
+#define BYTE_ORDER BIG_ENDIAN
#include <sys/endian.h>
#endif /* _M68K_ENDIAN_H_ */
diff --git a/sys/arch/mvme88k/include/endian.h b/sys/arch/mvme88k/include/endian.h
index 198cc050e2f..b778f03ca3e 100644
--- a/sys/arch/mvme88k/include/endian.h
+++ b/sys/arch/mvme88k/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.8 1997/11/09 23:05:11 niklas Exp $ */
+/* $OpenBSD: endian.h,v 1.9 1999/05/10 16:02:13 espie Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -32,7 +32,7 @@
#ifndef _MVME88K_ENDIAN_H_
#define _MVME88K_ENDIAN_H_
-#define BYTE_ORDER 4321
+#define BYTE_ORDER BIG_ENDIAN
#include <sys/endian.h>
#endif /* _MVME88K_ENDIAN_H_ */
diff --git a/sys/arch/pc532/include/endian.h b/sys/arch/pc532/include/endian.h
index ae7ff90279e..7ce75030424 100644
--- a/sys/arch/pc532/include/endian.h
+++ b/sys/arch/pc532/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.6 1997/11/10 10:39:57 niklas Exp $ */
+/* $OpenBSD: endian.h,v 1.7 1999/05/10 16:02:14 espie Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -54,7 +54,7 @@
#endif /* __GNUC__ */
-#define BYTE_ORDER 1234
+#define BYTE_ORDER LITTLE_ENDIAN
#include <sys/endian.h>
#endif /* _PC532_ENDIAN_H_ */
diff --git a/sys/arch/pmax/include/endian.h b/sys/arch/pmax/include/endian.h
index dd5718af3eb..2622c865caf 100644
--- a/sys/arch/pmax/include/endian.h
+++ b/sys/arch/pmax/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.11 1997/11/09 23:05:13 niklas Exp $ */
+/* $OpenBSD: endian.h,v 1.12 1999/05/10 16:02:14 espie Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -32,7 +32,7 @@
#ifndef _PMAX_ENDIAN_H_
#define _PMAX_ENDIAN_H_
-#define BYTE_ORDER 1234
+#define BYTE_ORDER LITTLE_ENDIAN
#include <sys/endian.h>
#endif /* _PMAX_ENDIAN_H_ */
diff --git a/sys/arch/powerpc/include/endian.h b/sys/arch/powerpc/include/endian.h
index 12e3e5ca950..f116413b033 100644
--- a/sys/arch/powerpc/include/endian.h
+++ b/sys/arch/powerpc/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.9 1997/11/09 23:05:15 niklas Exp $ */
+/* $OpenBSD: endian.h,v 1.10 1999/05/10 16:02:15 espie Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -32,7 +32,7 @@
#ifndef _POWERPC_ENDIAN_H_
#define _POWERPC_ENDIAN_H_
-#define BYTE_ORDER 4321
+#define BYTE_ORDER BIG_ENDIAN
#include <sys/endian.h>
#endif /* _POWERPC_ENDIAN_H_ */
diff --git a/sys/arch/sparc/include/endian.h b/sys/arch/sparc/include/endian.h
index 2a995812c47..f4f12ca5f46 100644
--- a/sys/arch/sparc/include/endian.h
+++ b/sys/arch/sparc/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.8 1997/11/09 23:05:16 niklas Exp $ */
+/* $OpenBSD: endian.h,v 1.9 1999/05/10 16:02:15 espie Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -32,7 +32,7 @@
#ifndef _SPARC_ENDIAN_H_
#define _SPARC_ENDIAN_H_
-#define BYTE_ORDER 4321
+#define BYTE_ORDER BIG_ENDIAN
#include <sys/endian.h>
#endif /* _SPARC_ENDIAN_H_ */
diff --git a/sys/arch/vax/include/endian.h b/sys/arch/vax/include/endian.h
index 119f8d3e8de..7f87596c6ef 100644
--- a/sys/arch/vax/include/endian.h
+++ b/sys/arch/vax/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.8 1997/11/10 10:42:48 niklas Exp $ */
+/* $OpenBSD: endian.h,v 1.9 1999/05/10 16:02:15 espie Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -57,7 +57,7 @@
#endif /* __GNUC__ */
-#define BYTE_ORDER 1234
+#define BYTE_ORDER LITTLE_ENDIAN
#include <sys/endian.h>
#endif /* _VAX_ENDIAN_H_ */
diff --git a/sys/arch/wgrisc/include/endian.h b/sys/arch/wgrisc/include/endian.h
index f4485789018..c171db5d391 100644
--- a/sys/arch/wgrisc/include/endian.h
+++ b/sys/arch/wgrisc/include/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.5 1997/11/09 23:05:19 niklas Exp $ */
+/* $OpenBSD: endian.h,v 1.6 1999/05/10 16:02:16 espie Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -32,7 +32,7 @@
#ifndef _WGRISC_ENDIAN_H_
#define _WGRISC_ENDIAN_H_
-#define BYTE_ORDER 1234
+#define BYTE_ORDER LITTLE_ENDIAN
#include <sys/endian.h>
#endif /* _WGRISC_ENDIAN_H_ */