Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtksh / msgs.h
1 /* $XConsortium: msgs.h /main/5 1996/09/14 14:51:38 drk $ */
2 /************************************<+>*************************************
3  ****************************************************************************
4  **
5  **   File:        msgs.h
6  **
7  **   Project:     CDE
8  **
9  **   Description: Public include file for msgs.c
10  **
11  **
12  **   (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992
13  **       by Hewlett-Packard Company
14  **
15  **
16  **
17  ****************************************************************************
18  ************************************<+>*************************************/
19
20 #ifndef _Dtksh_msgs_h
21 #define _Dtksh_msgs_h
22
23
24
25 char * GetSharedMsg(
26                     int msgId );
27
28
29
30 /*
31  * macro to get message catalog strings
32  */
33
34 #ifndef NO_MESSAGE_CATALOG
35 # ifdef __ultrix
36 #  define _CLIENT_CAT_NAME "dtksh.cat"
37 # else  /* __ultrix */
38 #  define _CLIENT_CAT_NAME "dtksh"
39 # endif /* __ultrix */
40
41 /*
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.
46  */
47 # ifdef _NO_PROTO
48 extern char *_DtGetMessage();
49 # else  /* _NO_PROTO */
50 extern char *_DtGetMessage(char *filename, int set, int n, char *s );
51 # endif /* _NO_PROTO */
52
53 # define GETMESSAGE(set, number, string)\
54     (_DtGetMessage(_CLIENT_CAT_NAME, set, number, string))
55 #else
56 # define GETMESSAGE(set, number, string)\
57     string
58 #endif
59
60
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
68 #define DT_BAD_ATOM                 7
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
89 #define DT_ERROR                   29
90 #define DT_WARNING                 30
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
101
102 #endif /* _Dtksh_msgs_h */
103 /* DON'T ADD ANYTHING AFTER THIS #endif */