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 /* 28 * m_nls.h: mks NLS (National Language Support) header file 29 * The client may choose to use a different messaging scheme than the xpg 30 * one -- in that case this file will be replaced. 31 * 32 * Copyright 1992, 1995 by Mortice Kern Systems Inc. All rights reserved. 33 * 34 * $Header: /rd/h/rcs/m_nls.h 1.5 1995/01/20 01:42:10 fredw Exp $ 35 */ 36 37 #ifndef __M_NLS_H__ 38 #define __M_NLS_H__ 39 40 extern char *m_nlspath(const char* catalog, int mode); 41 42 #define m_textstr(id, str, cls) #id "##" str 43 extern void m_textdomain(char * str); 44 extern char *m_textmsg(int id, const char *str, char *cls); 45 extern char *m_strmsg(const char *str); 46 /*l 47 * The following two routines may need to be defined, if you need 48 * to do special processing: 49 * 50 * extern char *m_msgdup(char *m); 51 * extern void m_msgfree(char *m); 52 */ 53 #define m_msgdup(m) (strdup(m)) 54 #define m_msgfree(m) (free(m)) 55 56 #endif /*__M_NLS_H__*/ 57