Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dticon / main.h
1 /* $XConsortium: main.h /main/5 1996/10/21 15:28:26 mgreess $ */
2 /*********************************************************************
3 *  (c) Copyright 1993, 1994 Hewlett-Packard Company     
4 *  (c) Copyright 1993, 1994 International Business Machines Corp.
5 *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
6 *  (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of
7 *      Novell, Inc.
8 **********************************************************************/
9 /************************************<+>*************************************
10  ****************************************************************************
11  **
12  **   File:        main.h
13  **
14  **   Project:     DT 3.0
15  **
16  **  This file contains global header file information for dticon
17  **
18  **
19  **  (c) Copyright Hewlett-Packard Company, 1992.
20  **
21  **
22  ****************************************************************************
23  ************************************<+>*************************************/
24 #ifndef _main_h
25 #define _main_h
26
27
28 #ifndef NO_MESSAGE_CATALOG
29 #  ifdef __ultrix
30 #    define _CLIENT_CAT_NAME "dticon.cat"
31 #  else
32 #    define _CLIENT_CAT_NAME "dticon"
33 #  endif  /* __ultrix */
34 extern char *_DtGetMessage(char *filename, int set, int n, char *s);
35 #  define GETSTR(set, number, string) \
36           (_DtGetMessage(_CLIENT_CAT_NAME, set, number, string))
37 #else
38 #  define GETSTR(set, number, string) string
39 #endif
40
41
42 /* get a message catlog string and convert it to an XmString */
43 #define GETXMSTR(set,num,str)   XmStringCreateLocalized (GETSTR(set, num, str))
44
45 /* convert a regular string to an XmString */
46 #define XMSTR(str)              XmStringCreateLocalized (str)
47
48
49 #endif /* _main_h */
50 /* DON'T ADD ANYTHING AFTER THIS #endif */
51