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 libraries 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: basic.h /main/3 1995/11/08 11:02:02 rswiston $ */
24 /* Copyright (c) 1986, 1987, 1988, 1989 Hewlett-Packard Co. */
25 /* Basic.h has a few very primitive #define's used by all MARKUP programs */
28 /* hpux protects stdio.h from multiple includes thru stdlib.h . */
33 typedef unsigned char LOGICAL;
35 /* End of String marker */
38 /* Integer null value marker */
41 /* 8-bit data characters */
42 typedef unsigned char M_CHAR8;
45 typedef wchar_t M_WCHAR;
47 /* For function prototypes */
48 typedef char * M_POINTER;
50 char *MakeMByteString(const M_WCHAR *from);
52 M_WCHAR *MakeWideCharString(const char *from);
54 int w_strcmp(const M_WCHAR *string1, const M_WCHAR *string2);
56 int w_strncmp(const M_WCHAR *string1, const M_WCHAR *string2, int max);
58 M_WCHAR *w_strcpy(M_WCHAR *string1, const M_WCHAR *string2);
60 M_WCHAR *w_strncpy(M_WCHAR *string1, const M_WCHAR *string2, int max);
62 int w_strlen(const M_WCHAR *string);
64 M_WCHAR *w_strchr(M_WCHAR *string, const M_WCHAR chr);
66 M_WCHAR *w_strstr(M_WCHAR *string1, M_WCHAR *string2);
68 void *m_malloc(int size, char *msg);
70 void m_free(void *block, char *msg);
72 void m_err2(const char *text, const M_WCHAR *arg1, const M_WCHAR *arg2);
74 int mb_getwc(void *m_ptr);