root/fcode-utils/localvalues/TotalLocalValuesSupport.fth

Revision 102, 1.7 KB (checked in by stepan, 2 years ago)

localvalues support, contributed by David Paktor <dlpaktor@…>

Line 
1\       (C) Copyright 2005-2006 IBM Corporation.  All Rights Reserved.
2\       Licensed under the Common Public License (CPL) version 1.0
3\       for full details see:
4\            http://www.opensource.org/licenses/cpl1.0.php
5\
6\       Module Author:  David L. Paktor    dlpaktor@us.ibm.com
7
8\  Control file for loading of Local Values Support file with variants.
9\  Command-line Symbol-definitions select whether the support will
10\      be under Global-Definitions, and whether to include the extra
11\      Development-time support features.
12\
13\  The command-line symbols are:
14\            Global-Locals
15\      and
16\            Locals-Release
17\
18\  The default is device-node-specific support in a Development-time setting.
19\
20\  If  Global-Locals  is defined, support will be under Global-Definitions
21\  If  Locals-Release  is defined, this is a final production release run,
22\      and the Development-time support features will be removed.
23
24\  Make sure this option is turned on.
25[flag] Local-Values
26
27[ifdef] Global-Locals
28    \  Load Support file under Global-Definitions.
29    global-definitions
30
31    \  Bypass warning about Instance without altering LocalValuesSupport file
32    alias generic-instance  instance
33    [macro] bypass-instance  f[  noop  .( Bypassed instance!) f]
34
35    overload alias instance bypass-instance
36[endif]  \  Global-Locals
37
38fload LocalValuesSupport.fth
39
40[ifndef] Locals-Release
41    \  Load Development-time support features
42    fload LocalValuesDevelSupport.fth
43[endif]  \  not Locals-Release
44
45[ifdef] Global-Locals
46    \  Replace normal meaning of  Instance, still in Global scope.
47    overload alias instance generic-instance
48
49    \  Restore Device-Definitions scope.
50    device-definitions
51[endif]  \  Global-Locals
Note: See TracBrowser for help on using the browser.