aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code
diff options
context:
space:
mode:
authorNick Barnes2002-06-19 14:09:20 +0100
committerNick Barnes2002-06-19 14:09:20 +0100
commitfb1e4c0060992313204a9deade76938ab41bf2cd (patch)
tree3c8d4ebea778a6a099ebb3c380c35af892540e2f /mps/code
parente957e6015d19838f333922fb09840c7f7a75d852 (diff)
downloademacs-fb1e4c0060992313204a9deade76938ab41bf2cd.tar.gz
emacs-fb1e4c0060992313204a9deade76938ab41bf2cd.zip
Checking varieties weren't actually checking anything. oops.
Copied from Perforce Change: 30298 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
-rw-r--r--mps/code/config.h48
1 files changed, 40 insertions, 8 deletions
diff --git a/mps/code/config.h b/mps/code/config.h
index 78fe0a3c970..e5443336a3a 100644
--- a/mps/code/config.h
+++ b/mps/code/config.h
@@ -21,6 +21,31 @@
21 21
22/* Variety Configuration */ 22/* Variety Configuration */
23 23
24/* First deal with old-style CONFIG_VAR_* build directives. These
25 * must be translated into the new directives CONFIG_ASSERT,
26 * CONFIG_LOG, and CONFIG_DEBUG.
27 *
28 * One day the old build system may be converted to use the new
29 * directives.
30 */
31
32#if defined(CONFIG_VAR_HI) || defined(CONFIG_VAR_HE) /* Hot varieties */
33#define CONFIG_DEBUG
34#define CHECK_DEFAULT CheckNONE
35#elif defined(CONFIG_VAR_CI) || defined(CONFIG_VAR_CE) /* Cool varieties */
36#define CONFIG_DEBUG
37#define CONFIG_ASSERT
38#elif defined(CONFIG_VAR_TI) /* Telemetry, Internal; variety.ti */
39#define CONFIG_DEBUG
40#define CONFIG_ASSERT
41#define CONFIG_LOG
42#elif defined(CONFIG_VAR_II) /* Ice, Internal; variety.ii */
43#define CONFIG_LOG
44#define CONFIG_DEBUG
45#define CHECK_DEFAULT CheckNONE
46/* also CONFIG_VAR_WI and CONFIG_VAR_WE, for which all switches are off. */
47#endif
48
24 49
25#if defined(CONFIG_ASSERT) 50#if defined(CONFIG_ASSERT)
26#define CHECK 51#define CHECK
@@ -234,7 +259,7 @@
234#define THREAD_SINGLE 259#define THREAD_SINGLE
235#define PROTECTION_NONE 260#define PROTECTION_NONE
236#define DONGLE_NONE 261#define DONGLE_NONE
237#define CHECK_DEFAULT CheckNONE /* CheckSHALLOW is too slow for SW */ 262#define PROD_CHECK_DEFAULT CheckNONE /* CheckSHALLOW is too slow for SW */
238 263
239#elif defined(CONFIG_PROD_DYLAN) 264#elif defined(CONFIG_PROD_DYLAN)
240#define MPS_PROD_STRING "dylan" 265#define MPS_PROD_STRING "dylan"
@@ -248,7 +273,7 @@
248#define THREAD_MULTI 273#define THREAD_MULTI
249#define PROTECTION 274#define PROTECTION
250#define DONGLE_NONE 275#define DONGLE_NONE
251#define CHECK_DEFAULT CheckSHALLOW 276#define PROD_CHECK_DEFAULT CheckSHALLOW
252 277
253#elif defined(CONFIG_PROD_CONFIGURA) 278#elif defined(CONFIG_PROD_CONFIGURA)
254#define MPS_PROD_STRING "configura" 279#define MPS_PROD_STRING "configura"
@@ -265,12 +290,19 @@
265#define THREAD_MULTI 290#define THREAD_MULTI
266#define PROTECTION 291#define PROTECTION
267#define DONGLE_NONE 292#define DONGLE_NONE
268#define CHECK_DEFAULT CheckSHALLOW 293#define PROD_CHECK_DEFAULT CheckSHALLOW
269 294
270#else 295#else
271#error "No target product configured." 296#error "No target product configured."
272#endif 297#endif
273 298
299/* if CHECK_DEFAULT hasn't been defined already (e.g. by a variety, or
300 * in a makefile), take the value from the product. */
301
302#ifndef CHECK_DEFAULT
303#define CHECK_DEFAULT PROD_CHECK_DEFAULT
304#endif
305
274 306
275/* Dongle configuration */ 307/* Dongle configuration */
276 308
@@ -295,18 +327,18 @@
295 * Copyright (C) 2001-2002 Ravenbrook Limited <http://www.ravenbrook.com/>. 327 * Copyright (C) 2001-2002 Ravenbrook Limited <http://www.ravenbrook.com/>.
296 * All rights reserved. This is an open source license. Contact 328 * All rights reserved. This is an open source license. Contact
297 * Ravenbrook for commercial licensing options. 329 * Ravenbrook for commercial licensing options.
298 * 330 *
299 * Redistribution and use in source and binary forms, with or without 331 * Redistribution and use in source and binary forms, with or without
300 * modification, are permitted provided that the following conditions are 332 * modification, are permitted provided that the following conditions are
301 * met: 333 * met:
302 * 334 *
303 * 1. Redistributions of source code must retain the above copyright 335 * 1. Redistributions of source code must retain the above copyright
304 * notice, this list of conditions and the following disclaimer. 336 * notice, this list of conditions and the following disclaimer.
305 * 337 *
306 * 2. Redistributions in binary form must reproduce the above copyright 338 * 2. Redistributions in binary form must reproduce the above copyright
307 * notice, this list of conditions and the following disclaimer in the 339 * notice, this list of conditions and the following disclaimer in the
308 * documentation and/or other materials provided with the distribution. 340 * documentation and/or other materials provided with the distribution.
309 * 341 *
310 * 3. Redistributions in any form must be accompanied by information on how 342 * 3. Redistributions in any form must be accompanied by information on how
311 * to obtain complete source code for this software and any accompanying 343 * to obtain complete source code for this software and any accompanying
312 * software that uses this software. The source code must either be 344 * software that uses this software. The source code must either be
@@ -317,7 +349,7 @@
317 * include source code for modules or files that typically accompany the 349 * include source code for modules or files that typically accompany the
318 * major components of the operating system on which the executable file 350 * major components of the operating system on which the executable file
319 * runs. 351 * runs.
320 * 352 *
321 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 353 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
322 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 354 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
323 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 355 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR