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 librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: msgs.h /main/5 1996/09/14 14:51:38 drk $ */
24 /************************************<+>*************************************
25 ****************************************************************************
31 ** Description: Public include file for msgs.c
34 ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992
35 ** by Hewlett-Packard Company
39 ****************************************************************************
40 ************************************<+>*************************************/
53 * macro to get message catalog strings
56 #ifndef NO_MESSAGE_CATALOG
58 # define _CLIENT_CAT_NAME "dtksh.cat"
60 # define _CLIENT_CAT_NAME "dtksh"
61 # endif /* __ultrix */
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.
70 extern char *_DtGetMessage();
71 # else /* _NO_PROTO */
72 extern char *_DtGetMessage(char *filename, int set, int n, char *s );
73 # endif /* _NO_PROTO */
75 # define GETMESSAGE(set, number, string)\
76 (_DtGetMessage(_CLIENT_CAT_NAME, set, number, string))
78 # define GETMESSAGE(set, number, string)\
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
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
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
124 #endif /* _Dtksh_msgs_h */
125 /* DON'T ADD ANYTHING AFTER THIS #endif */