convert all Imakefile LinuxDistribution to LinuxArchitecture.
[oweals/cde.git] / cde / programs / dtksh / msgs.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 librararies 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: msgs.h /main/5 1996/09/14 14:51:38 drk $ */
24 /************************************<+>*************************************
25  ****************************************************************************
26  **
27  **   File:        msgs.h
28  **
29  **   Project:     CDE
30  **
31  **   Description: Public include file for msgs.c
32  **
33  **
34  **   (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992
35  **       by Hewlett-Packard Company
36  **
37  **
38  **
39  ****************************************************************************
40  ************************************<+>*************************************/
41
42 #ifndef _Dtksh_msgs_h
43 #define _Dtksh_msgs_h
44
45
46
47 char * GetSharedMsg(
48                     int msgId );
49
50
51
52 /*
53  * macro to get message catalog strings
54  */
55
56 #ifndef NO_MESSAGE_CATALOG
57 # ifdef __ultrix
58 #  define _CLIENT_CAT_NAME "dtksh.cat"
59 # else  /* __ultrix */
60 #  define _CLIENT_CAT_NAME "dtksh"
61 # endif /* __ultrix */
62
63 /*
64  * Without this proto, standard C says that _DtGetMessage() returns
65  * an int, even though it really returns a pointer.  The compiler is
66  * then free to use the high 32-bits of the return register for
67  * something else (like scratch), and that can garble the pointer.
68  */
69 # ifdef _NO_PROTO
70 extern char *_DtGetMessage();
71 # else  /* _NO_PROTO */
72 extern char *_DtGetMessage(char *filename, int set, int n, char *s );
73 # endif /* _NO_PROTO */
74
75 # define GETMESSAGE(set, number, string)\
76     (_DtGetMessage(_CLIENT_CAT_NAME, set, number, string))
77 #else
78 # define GETMESSAGE(set, number, string)\
79     string
80 #endif
81
82
83 #define DT_BAD_FIELD_NAME           0
84 #define DT_CONV_BUF_OVFL            1
85 #define DT_HASHING_FAILURE          2
86 #define DT_NO_FUNC_NAME             3
87 #define DT_TK_NOT_INIT              4
88 #define DT_WIDGET_CREATE_FAILED     5
89 #define DT_BAD_DISPLAY              6
90 #define DT_BAD_ATOM                 7
91 #define DT_UNDEF_RESOURCE           8
92 #define DT_BAD_POSITION             9
93 #define DT_BAD_FONT                10
94 #define DT_BAD_WIDGET_HANDLE       11
95 #define DT_CMD_WIDGET              12
96 #define DT_MAIN_WIN_WIDGET         13
97 #define DT_SCALE_WIDGET            14
98 #define DT_SCROLLBAR_WIDGET        15
99 #define DT_TOGGLE_WIDGET           16
100 #define DT_BAD_WINDOW              17
101 #define DT_ALLOC_FAILURE           18
102 #define DT_NO_PARENT               19
103 #define DT_UNDEF_SYMBOL            20
104 #define DT_UNDEF_TYPE              21
105 #define DT_BAD_DECL                22
106 #define DT_UNKNOWN_CHILD_TYPE      23
107 #define DT_UNKNOWN_OPTION          24
108 #define DT_USAGE_WIDGET_POS        25
109 #define DT_USAGE_WIDGET_TIME       27
110 #define DT_USAGE_WIDGET            28
111 #define DT_ERROR                   29
112 #define DT_WARNING                 30
113 #define DT_XK_FREE_NO_MEMBER       31
114 #define DT_XK_PARSE_ERROR          32
115 #define DT_XK_PARSE_SET_NULL       33
116 #define DT_XK_PARSE_ARRAY_OVERFLOW 34
117 #define DT_USAGE_DISPLAY_WINDOW    35
118 #define DT_USAGE_DISPLAY_WINDOW_VAR 36
119 #define DT_USAGE_DISPLAY_ROOT_VAR  37
120 #define DT_BAD_TIMEOUT             38
121 #define DT_BAD_MESSAGE             39
122 #define DT_BAD_PATTERN             40
123
124 #endif /* _Dtksh_msgs_h */
125 /* DON'T ADD ANYTHING AFTER THIS #endif */