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: excutil.h /main/6 1996/12/23 08:48:26 barstow $ */
25 * (c) Copyright 1995 FUJITSU LIMITED
26 * This is source code modified by FUJITSU LIMITED under the Joint
27 * Development Agreement for the CDEnext PST.
28 * This is unpublished proprietary source code of FUJITSU LIMITED
34 #include <Xm/MessageB.h>
38 #define EXCERRMALLOC 101
39 #define EXCERRNOUDC 102
60 Widget excCreatePushButton();
98 #ifndef NO_MESSAGE_CATALOG
100 # define _CLIENT_CAT_NAME "dtudcexch.cat"
101 # else /* __ultrix */
102 # define _CLIENT_CAT_NAME "dtudcexch"
103 # endif /* __ultrix */
105 extern char *_DtGetMessage();
106 # else /* _NO_PROTO */
107 extern char *_DtGetMessage(
112 # endif /* _NO_PROTO */
113 #define GETMESSAGE(set, number, string) GetMessage(set, number, string)
115 GetMessage(set, number, string)
120 static char * point[100];
121 static int first = True;
124 memset(point, 0, sizeof(char *) * 100);
128 return(point[number]);
129 tmp = _DtGetMessage(_CLIENT_CAT_NAME, set, number, string);
130 point[number] = (char *) malloc(strlen(tmp) + 1);
131 strcpy(point[number], tmp);
132 return (point[number]);
134 #else /* NO_MESSAGE_CATALOG */
135 # define GETMESSAGE(set, number, string)\
137 #endif /* NO_MESSAGE_CATALOG */