1 /* $XConsortium: msgs.h /main/5 1996/09/14 14:51:38 drk $ */
2 /************************************<+>*************************************
3 ****************************************************************************
9 ** Description: Public include file for msgs.c
12 ** (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992
13 ** by Hewlett-Packard Company
17 ****************************************************************************
18 ************************************<+>*************************************/
31 * macro to get message catalog strings
34 #ifndef NO_MESSAGE_CATALOG
36 # define _CLIENT_CAT_NAME "dtksh.cat"
38 # define _CLIENT_CAT_NAME "dtksh"
39 # endif /* __ultrix */
42 * Without this proto, standard C says that _DtGetMessage() returns
43 * an int, even though it really returns a pointer. The compiler is
44 * then free to use the high 32-bits of the return register for
45 * something else (like scratch), and that can garble the pointer.
48 extern char *_DtGetMessage();
49 # else /* _NO_PROTO */
50 extern char *_DtGetMessage(char *filename, int set, int n, char *s );
51 # endif /* _NO_PROTO */
53 # define GETMESSAGE(set, number, string)\
54 (_DtGetMessage(_CLIENT_CAT_NAME, set, number, string))
56 # define GETMESSAGE(set, number, string)\
61 #define DT_BAD_FIELD_NAME 0
62 #define DT_CONV_BUF_OVFL 1
63 #define DT_HASHING_FAILURE 2
64 #define DT_NO_FUNC_NAME 3
65 #define DT_TK_NOT_INIT 4
66 #define DT_WIDGET_CREATE_FAILED 5
67 #define DT_BAD_DISPLAY 6
69 #define DT_UNDEF_RESOURCE 8
70 #define DT_BAD_POSITION 9
71 #define DT_BAD_FONT 10
72 #define DT_BAD_WIDGET_HANDLE 11
73 #define DT_CMD_WIDGET 12
74 #define DT_MAIN_WIN_WIDGET 13
75 #define DT_SCALE_WIDGET 14
76 #define DT_SCROLLBAR_WIDGET 15
77 #define DT_TOGGLE_WIDGET 16
78 #define DT_BAD_WINDOW 17
79 #define DT_ALLOC_FAILURE 18
80 #define DT_NO_PARENT 19
81 #define DT_UNDEF_SYMBOL 20
82 #define DT_UNDEF_TYPE 21
83 #define DT_BAD_DECL 22
84 #define DT_UNKNOWN_CHILD_TYPE 23
85 #define DT_UNKNOWN_OPTION 24
86 #define DT_USAGE_WIDGET_POS 25
87 #define DT_USAGE_WIDGET_TIME 27
88 #define DT_USAGE_WIDGET 28
91 #define DT_XK_FREE_NO_MEMBER 31
92 #define DT_XK_PARSE_ERROR 32
93 #define DT_XK_PARSE_SET_NULL 33
94 #define DT_XK_PARSE_ARRAY_OVERFLOW 34
95 #define DT_USAGE_DISPLAY_WINDOW 35
96 #define DT_USAGE_DISPLAY_WINDOW_VAR 36
97 #define DT_USAGE_DISPLAY_ROOT_VAR 37
98 #define DT_BAD_TIMEOUT 38
99 #define DT_BAD_MESSAGE 39
100 #define DT_BAD_PATTERN 40
102 #endif /* _Dtksh_msgs_h */
103 /* DON'T ADD ANYTHING AFTER THIS #endif */