aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code/testlib.h
diff options
context:
space:
mode:
authorNick Barnes2002-06-18 14:14:55 +0100
committerNick Barnes2002-06-18 14:14:55 +0100
commit6a1a360814506ddbcf856f41c089a10550f31ae5 (patch)
tree732fc720ec58b9badf2ce1eef392ada522130a03 /mps/code/testlib.h
parent63e5f529159927bb42b58a97507f4467d6413973 (diff)
downloademacs-6a1a360814506ddbcf856f41c089a10550f31ae5.tar.gz
emacs-6a1a360814506ddbcf856f41c089a10550f31ae5.zip
Integrate changes from global graphics.
Copied from Perforce Change: 30250 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/testlib.h')
-rw-r--r--mps/code/testlib.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/mps/code/testlib.h b/mps/code/testlib.h
index 6245ef46a2c..3a461be8505 100644
--- a/mps/code/testlib.h
+++ b/mps/code/testlib.h
@@ -2,6 +2,7 @@
2 * 2 *
3 * $Id$ 3 * $Id$
4 * Copyright (c) 2001 Ravenbrook Limited. 4 * Copyright (c) 2001 Ravenbrook Limited.
5 * Copyright (C) 2002 Global Graphics Software.
5 * 6 *
6 * .purpose: A library of functions that may be of use to unit tests. 7 * .purpose: A library of functions that may be of use to unit tests.
7 */ 8 */
@@ -14,6 +15,9 @@
14 15
15/* Include system header hackery. */ 16/* Include system header hackery. */
16#include "mpstd.h" 17#include "mpstd.h"
18#ifdef MPS_OS_W3
19#include "mpswin.h"
20#endif
17#ifdef MPS_OS_SU 21#ifdef MPS_OS_SU
18#include "ossu.h" 22#include "ossu.h"
19#endif 23#endif
@@ -52,12 +56,12 @@
52#pragma warning(disable: 4701) 56#pragma warning(disable: 4701)
53#endif 57#endif
54 58
55/* In white-hot versions, absolutely no checking is done. This leads to 59
56 * many spurious warnings because parameters are suddenly unused, etc. 60/* Non-checking varieties give many spurious warnings because parameters
57 * We aren't interested in these. 61 * are suddenly unused, etc. We aren't interested in these.
58 */ 62 */
59 63
60#if defined(CONFIG_VAR_WI) 64#if defined(CHECK_NONE)
61 65
62/* "unreferenced formal parameter" */ 66/* "unreferenced formal parameter" */
63#pragma warning(disable: 4100) 67#pragma warning(disable: 4100)
@@ -140,6 +144,14 @@ extern void verror(const char *format, va_list args);
140extern unsigned long rnd(void); 144extern unsigned long rnd(void);
141 145
142 146
147/* rnd_addr -- random number generator
148 *
149 * rnd_addr() generates a sequence of addresses all over the address space.
150 */
151
152extern mps_addr_t rnd_addr(void);
153
154
143/* randomize -- randomize the generator, or initialize to replay 155/* randomize -- randomize the generator, or initialize to replay
144 * 156 *
145 * randomize(argc, argv) randomizes the rnd generator (using time(3)) 157 * randomize(argc, argv) randomizes the rnd generator (using time(3))