2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* Copyright (c) 1994,1995 FUJITSU LIMITED */
24 /* All Rights Reserved */
27 * $XConsortium: config.h /main/7 1996/09/27 19:03:04 drk $
29 * Copyright (c) 1991 HaL Computer Systems, Inc. All rights reserved.
30 * UNPUBLISHED -- rights reserved under the Copyright Laws of the United
31 * States. Use of a copyright notice is precautionary only and does not
32 * imply publication or disclosure.
34 * This software contains confidential information and trade secrets of HaL
35 * Computer Systems, Inc. Use, disclosure, or reproduction is prohibited
36 * without the prior express written permission of HaL Computer Systems, Inc.
38 * RESTRICTED RIGHTS LEGEND
39 * Use, duplication, or disclosure by the Government is subject to
40 * restrictions as set forth in subparagraph (c)(l)(ii) of the Rights in
41 * Technical Data and Computer Software clause at DFARS 252.227-7013.
42 * HaL Computer Systems, Inc.
43 * 1315 Dell Avenue, Campbell, CA 95008
47 #include <Exceptions.hh>
50 Folio Configuration File
53 #define CLASS_NAME "Dtinfo"
59 #define LOOK_AND_FEEL "Motif"
64 #define WINDOW_SYSTEM_NAME "X"
67 #ifndef Internationalize
69 char *gettext(char *text)
76 // NOTE: Things below probably belong in a types.h file
78 // typedef void *UIHandle ;
80 // the following can't be enum because they are
81 // definitely defined in other include files
84 //typedef unsigned char bool;
89 typedef unsigned char u_int8;
90 typedef unsigned short u_int16;
91 typedef unsigned int u_int32;
92 typedef unsigned int u_int;
93 typedef unsigned char u_char;
95 // NOTE: let's find a good home for this
96 // NOTE: ( arbitrary? value ) - jbm
98 // allow downscaling by 4 point sizes
99 #define MIN_DOWNSCALE 4
101 // NOTE: VERY, VERY, VERY temporary!!
104 #define STR_TO_OID(STRING) \
105 ObjectId (oid_t ((u_int32) Atomizer (STRING)))
107 #define WAutoManage 1
112 #if defined(__STDC__) || defined(hpux)
113 #define STRINGIFY(S) #S
115 #define STRINGIFY(S) "S"
120 #if defined(__STDC__) || defined(hpux)
121 #define CONCAT(A,B) A##B
122 #define CONCAT3(A,B,C) A##B##C
124 #define CONCAT(A,B) A/**/B
125 #define CONCAT3(A,B,C) A/**/B/**/C
130 #define ON_DEBUG(stmt) stmt
132 #define ON_DEBUG(stmt)
138 // for assertion checking
146 // for debugging statements if desired
155 void exit(const int);
160 #ifdef USES_OLIAS_FONT
161 #include "olias_font.h"
164 // these should be moved to a "debug.h" type file
166 // The BOGUS preprocessor is substituting OBJ in the string.
167 // NOTE: how to #ifdef this?
170 #define PRINT_OBJECT(OBJ) \
171 cout << #OBJ << "= (0x" << hex(this) << ")" << endl
173 #define PRINT_POINTER(PTR) \
174 cout << " " << #PTR << " = 0x" << hex(PTR) << endl
176 #define PRINT_INT(INT) \
177 cout << " " << #INT << " = " << INT << endl
179 #define PRINT_BITS(BITS) \
180 { long bits = BITS; cout << " " << #BITS << " = "; \
181 for (int i = 0; i < sizeof(BITS) * 8; i++, bits <<= 1) \
182 (bits & (1L << sizeof(BITS) * 8)) ? cout << '1' : cout << '0'; \
185 #define PRINT_OBJECT(OBJ) \
186 printf ("OBJ (0x%p) = \n", this)
187 #define PRINT_POINTER(PTR) \
188 printf (" PTR = 0x%p\n", PTR)
189 #define PRINT_INT(INT) \
190 printf (" INT = %d\n", INT)
191 #define PRINT_BITS(BITS) \
192 { long bits = BITS; printf (" BITS = "); \
193 for (int i = 0; i < sizeof(BITS) * 8; i++, bits <<= 1) \
194 (bits & (1L << sizeof(BITS) * 8)) ? putchar('1') : putchar('0'); \