dtcm: Coverity 88107
[oweals/cde.git] / cde / programs / dtpdmd / nlmsg.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: nlmsg.h /main/1 1996/10/30 19:10:36 cde-hp $ */
24 /*
25  * dtpdmd/nlmsg.h
26  */
27 /*
28  * (c) Copyright 1996 Digital Equipment Corporation.
29  * (c) Copyright 1996 Hewlett-Packard Company.
30  * (c) Copyright 1996 International Business Machines Corp.
31  * (c) Copyright 1996 Sun Microsystems, Inc.
32  * (c) Copyright 1996 Novell, Inc. 
33  * (c) Copyright 1996 FUJITSU LIMITED.
34  * (c) Copyright 1996 Hitachi.
35  */
36 #ifndef _PdmdMsgs_h
37 #define _PdmdMsgs_h
38
39 #ifdef I18N_MSG
40 #include <nl_types.h>
41 #define DTPDMD_GETMESSAGE(set, number, string) \
42     DtPdmdGetMessage(set, number, string)
43
44 #else /* I18N_MSG */
45 #define DTPDMD_GETMESSAGE(set, number, string) (string)
46 #endif /* I18N_MSG */
47
48 /*** const causes the HP compiler to complain.  Remove reference until   ***
49  *** the build and integration people can figure out how to get this to  ***
50  *** work.                                                               ***/
51
52 /* #define CONST        const */
53 #define CONST
54
55 #define PDMD_MSG_1 DTPDMD_GETMESSAGE(1, 1, DtPdmdMsg_0001)
56 #define PDMD_MSG_2 DTPDMD_GETMESSAGE(1, 2, DtPdmdMsg_0002)
57 #define PDMD_MSG_3 DTPDMD_GETMESSAGE(1, 3, DtPdmdMsg_0003)
58 #define PDMD_MSG_4 DTPDMD_GETMESSAGE(1, 4, DtPdmdMsg_0004)
59 #define PDMD_MSG_5 DTPDMD_GETMESSAGE(1, 5, DtPdmdMsg_0005)
60 #define PDMD_MSG_6 DTPDMD_GETMESSAGE(1, 6, DtPdmdMsg_0006)
61 #define PDMD_MSG_7 DTPDMD_GETMESSAGE(1, 7, DtPdmdMsg_0007)
62 #define PDMD_MSG_8 DTPDMD_GETMESSAGE(1, 8, DtPdmdMsg_0008)
63 #define PDMD_MSG_9 DTPDMD_GETMESSAGE(1, 9, DtPdmdMsg_0009)
64 #define PDMD_MSG_10 DTPDMD_GETMESSAGE(1, 10, DtPdmdMsg_0010)
65 #define PDMD_MSG_11 DTPDMD_GETMESSAGE(1, 11, DtPdmdMsg_0011)
66 #define PDMD_MSG_12 DTPDMD_GETMESSAGE(1, 12, DtPdmdMsg_0012)
67 #define PDMD_MSG_13 DTPDMD_GETMESSAGE(1, 13, DtPdmdMsg_0013)
68 #define PDMD_MSG_14 DTPDMD_GETMESSAGE(1, 14, DtPdmdMsg_0014)
69 #define PDMD_MSG_15 DTPDMD_GETMESSAGE(1, 15, DtPdmdMsg_0015)
70 #define PDMD_MSG_16 DTPDMD_GETMESSAGE(1, 16, DtPdmdMsg_0016)
71
72 extern CONST char DtPdmdMsg_0001[];
73 extern CONST char DtPdmdMsg_0002[];
74 extern CONST char DtPdmdMsg_0003[];
75 extern CONST char DtPdmdMsg_0004[];
76 extern CONST char DtPdmdMsg_0005[];
77 extern CONST char DtPdmdMsg_0006[];
78 extern CONST char DtPdmdMsg_0007[];
79 extern CONST char DtPdmdMsg_0008[];
80 extern CONST char DtPdmdMsg_0009[];
81 extern CONST char DtPdmdMsg_0010[];
82 extern CONST char DtPdmdMsg_0011[];
83 extern CONST char DtPdmdMsg_0012[];
84 extern CONST char DtPdmdMsg_0013[];
85 extern CONST char DtPdmdMsg_0014[];
86 extern CONST char DtPdmdMsg_0015[];
87 extern CONST char DtPdmdMsg_0016[];
88
89 #ifdef I18N_MSG
90
91 /* Message IDs */
92
93 extern const char * DtPdmGetMessage(
94                                     int set,
95                                     int n,
96                                     const char * s);
97
98 #endif /* I18N_MSG */
99
100 #endif /* _PdmdMsgs_h */