Set version to 2.3.1a (devel) for current master
[oweals/cde.git] / cde / lib / DtPrint / PrintI.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
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)
10  * any later version.
11  *
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
16  * details.
17  *
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
22  */
23 /* $XConsortium: PrintI.h /main/1 1996/10/31 11:19:07 drk $
24  *
25  * (c) Copyright 1996 Digital Equipment Corporation.
26  * (c) Copyright 1996 Hewlett-Packard Company.
27  * (c) Copyright 1996 International Business Machines Corp.
28  * (c) Copyright 1996 Sun Microsystems, Inc.
29  * (c) Copyright 1996 Novell, Inc. 
30  * (c) Copyright 1996 FUJITSU LIMITED.
31  * (c) Copyright 1996 Hitachi.
32  */
33 #ifndef _DtPrintI_h
34 #define _DtPrintI_h
35
36 #include <X11/Intrinsic.h>
37
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41
42 /********    Conditionally defined macros for thread safe DtPrint ******/
43 #ifdef XTHREADS
44
45 #define _DtPrintWidgetToAppContext(w) \
46         XtAppContext app = XtWidgetToApplicationContext(w)
47
48 #define _DtPrintDisplayToAppContext(d) \
49         XtAppContext app = XtDisplayToApplicationContext(d)
50
51 #define _DtPrintAppLock(app)            XtAppLock(app)
52 #define _DtPrintAppUnlock(app)          XtAppUnlock(app)
53 #define _DtPrintProcessLock()           XtProcessLock()
54 #define _DtPrintProcessUnlock()         XtProcessUnlock()
55
56 #else /* XTHREADS */
57
58 #define _DtPrintWidgetToAppContext(w)
59 #define _DtPrintDisplayToAppContext(d)
60 #define _DtPrintAppLock(app)
61 #define _DtPrintAppUnlock(app)
62 #define _DtPrintProcessLock()
63 #define _DtPrintProcessUnlock()
64
65 #endif /* XTHREADS */
66
67 #ifdef __cplusplus
68 }  /* Close scope of 'extern "C"' declaration which encloses file. */
69 #endif
70
71 #endif /* _DtPrintI_h */
72 /* DON'T ADD ANYTHING AFTER THIS #endif */