aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code/testlib.h
diff options
context:
space:
mode:
authorNick Barnes2012-11-13 12:51:58 +0000
committerNick Barnes2012-11-13 12:51:58 +0000
commit686ee3810172f6c8a0a25042c64698adc048506d (patch)
tree02621af982939a87073d7b1bd8a4f06d54699887 /mps/code/testlib.h
parent1330a1a99cdc425d308cfa0f0f50d161bfe9f1e2 (diff)
downloademacs-686ee3810172f6c8a0a25042c64698adc048506d.tar.gz
emacs-686ee3810172f6c8a0a25042c64698adc048506d.zip
Tidy up the event pipeline.
Copied from Perforce Change: 180460 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/testlib.h')
-rw-r--r--mps/code/testlib.h24
1 files changed, 17 insertions, 7 deletions
diff --git a/mps/code/testlib.h b/mps/code/testlib.h
index 2bcd50e7c18..e3a11c34139 100644
--- a/mps/code/testlib.h
+++ b/mps/code/testlib.h
@@ -74,31 +74,41 @@
74 74
75/* ulongest_t -- longest unsigned integer type 75/* ulongest_t -- longest unsigned integer type
76 * 76 *
77 * Define a longest unsigned integer type for testing and printing. We'd 77 * Define a longest unsigned integer type for testing, scanning, and
78 * like to use C99's uintmax_t and PRIuMAX here, but the MPS is in C89 78 * printing. We'd like to use C99's uintmax_t and PRIuMAX here, but
79 * and C99 isn't supported by Microsoft. 79 * the MPS is in C89 and C99 isn't supported by Microsoft.
80 * 80 *
81 * We avoid using the ones defined in mpstd.h because we want the tests to 81 * We avoid using the types defined in mpstd.h because we want the
82 * root out any incompatible assumptions by breaking. 82 * tests to root out any incompatible assumptions by breaking.
83 */ 83 */
84 84
85#if defined(MPS_ARCH_I6)
86#define PRIwWORD "16"
87#elif defined(MPS_ARCH_I3)
88#define PRIwWORD "8"
89#else
90#error "How many beans make five?"
91#endif
92
85#ifdef MPS_PF_W3I6MV 93#ifdef MPS_PF_W3I6MV
86#define PRIuLONGEST "llu" 94#define PRIuLONGEST "llu"
87#define SCNuLONGEST "llu" 95#define SCNuLONGEST "llu"
96#define SCNXLONGEST "llX"
88#define PRIXLONGEST "llX" 97#define PRIXLONGEST "llX"
89#define PRIwWORD "16"
90typedef unsigned long long ulongest_t; 98typedef unsigned long long ulongest_t;
91typedef long long longest_t; 99typedef long long longest_t;
92#define MPS_WORD_CONST(n) (n##ull) 100#define MPS_WORD_CONST(n) (n##ull)
93#else 101#else
94#define PRIuLONGEST "lu" 102#define PRIuLONGEST "lu"
95#define SCNuLONGEST "lu" 103#define SCNuLONGEST "lu"
104#define SCNXLONGEST "lX"
96#define PRIXLONGEST "lX" 105#define PRIXLONGEST "lX"
97#define PRIwWORD "8"
98typedef unsigned long ulongest_t; 106typedef unsigned long ulongest_t;
99typedef long longest_t; 107typedef long longest_t;
100#define MPS_WORD_CONST(n) (n##ul) 108#define MPS_WORD_CONST(n) (n##ul)
101#endif 109#endif
110
111
102#define PRIXPTR "0"PRIwWORD PRIXLONGEST 112#define PRIXPTR "0"PRIwWORD PRIXLONGEST
103 113
104 114