xref: /titanic_44/usr/src/lib/libxcurses/h/m_nls.h (revision 20c1c3551cb3b3117591ae38463d16aada597c48)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) 1996, by Sun Microsystems, Inc.
24  * All rights reserved.
25  */
26 
27 #pragma ident	"%Z%%M%	%I%	%E% SMI"
28 
29 /*
30  * m_nls.h: mks NLS (National Language Support) header file
31  * The client may choose to use a different messaging scheme than the xpg
32  * one -- in that case this file will be replaced.
33  *
34  * Copyright 1992, 1995 by Mortice Kern Systems Inc.  All rights reserved.
35  *
36  * $Header: /rd/h/rcs/m_nls.h 1.5 1995/01/20 01:42:10 fredw Exp $
37  */
38 
39 #ifndef	__M_NLS_H__
40 #define	__M_NLS_H__
41 
42 extern char	*m_nlspath(const char* catalog, int mode);
43 
44 #define	m_textstr(id, str, cls)	#id "##" str
45 extern void	 m_textdomain(char * str);
46 extern char	*m_textmsg(int id, const char *str, char *cls);
47 extern char	*m_strmsg(const char *str);
48 /*l
49  * The following two routines may need to be defined, if you need
50  * to do special processing:
51  *
52  * extern char *m_msgdup(char *m);
53  * extern void m_msgfree(char *m);
54  */
55 #define m_msgdup(m) (strdup(m))
56 #define m_msgfree(m) (free(m))
57 
58 #endif /*__M_NLS_H__*/
59