Convert uses of XKeycodeToKeysym (deprecated) to XkbKeycodeToKeysym
[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 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: 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 # define _CLIENT_CAT_NAME "dtksh"
58
59 /*
60  * Without this proto, standard C says that _DtGetMessage() returns
61  * an int, even though it really returns a pointer.  The compiler is
62  * then free to use the high 32-bits of the return for
63  * something else (like scratch), and that can garble the pointer.
64  */
65 # ifdef _NO_PROTO
66 extern char *_DtGetMessage();
67 # else  /* _NO_PROTO */
68 extern char *_DtGetMessage(char *filename, int set, int n, char *s );
69 # endif /* _NO_PROTO */
70
71 # define GETMESSAGE(set, number, string)\
72     (_DtGetMessage(_CLIENT_CAT_NAME, set, number, string))
73 #else
74 # define GETMESSAGE(set, number, string)\
75     string
76 #endif
77
78
79 #define DT_BAD_FIELD_NAME           0
80 #define DT_CONV_BUF_OVFL            1
81 #define DT_HASHING_FAILURE          2
82 #define DT_NO_FUNC_NAME             3
83 #define DT_TK_NOT_INIT              4
84 #define DT_WIDGET_CREATE_FAILED     5
85 #define DT_BAD_DISPLAY              6
86 #define DT_BAD_ATOM                 7
87 #define DT_UNDEF_RESOURCE           8
88 #define DT_BAD_POSITION             9
89 #define DT_BAD_FONT                10
90 #define DT_BAD_WIDGET_HANDLE       11
91 #define DT_CMD_WIDGET              12
92 #define DT_MAIN_WIN_WIDGET         13
93 #define DT_SCALE_WIDGET            14
94 #define DT_SCROLLBAR_WIDGET        15
95 #define DT_TOGGLE_WIDGET           16
96 #define DT_BAD_WINDOW              17
97 #define DT_ALLOC_FAILURE           18
98 #define DT_NO_PARENT               19
99 #define DT_UNDEF_SYMBOL            20
100 #define DT_UNDEF_TYPE              21
101 #define DT_BAD_DECL                22
102 #define DT_UNKNOWN_CHILD_TYPE      23
103 #define DT_UNKNOWN_OPTION          24
104 #define DT_USAGE_WIDGET_POS        25
105 #define DT_USAGE_WIDGET_TIME       27
106 #define DT_USAGE_WIDGET            28
107 #define DT_ERROR                   29
108 #define DT_WARNING                 30
109 #define DT_XK_FREE_NO_MEMBER       31
110 #define DT_XK_PARSE_ERROR          32
111 #define DT_XK_PARSE_SET_NULL       33
112 #define DT_XK_PARSE_ARRAY_OVERFLOW 34
113 #define DT_USAGE_DISPLAY_WINDOW    35
114 #define DT_USAGE_DISPLAY_WINDOW_VAR 36
115 #define DT_USAGE_DISPLAY_ROOT_VAR  37
116 #define DT_BAD_TIMEOUT             38
117 #define DT_BAD_MESSAGE             39
118 #define DT_BAD_PATTERN             40
119
120 #endif /* _Dtksh_msgs_h */
121 /* DON'T ADD ANYTHING AFTER THIS #endif */