1 |
207 |
jeremybenn |
/* Misc. local definitions for libc/stdlib */
|
2 |
|
|
|
3 |
|
|
#ifndef _LOCAL_H_
|
4 |
|
|
#define _LOCAL_H_
|
5 |
|
|
|
6 |
|
|
char * _EXFUN(_gcvt,(struct _reent *, double , int , char *, char, int));
|
7 |
|
|
|
8 |
|
|
char *__locale_charset(_NOARGS);
|
9 |
|
|
|
10 |
|
|
#ifndef __mbstate_t_defined
|
11 |
|
|
#include <wchar.h>
|
12 |
|
|
#endif
|
13 |
|
|
|
14 |
|
|
extern int (*__wctomb) (struct _reent *, char *, wchar_t, const char *,
|
15 |
|
|
mbstate_t *);
|
16 |
|
|
int __ascii_wctomb (struct _reent *, char *, wchar_t, const char *,
|
17 |
|
|
mbstate_t *);
|
18 |
|
|
#ifdef _MB_CAPABLE
|
19 |
|
|
int __utf8_wctomb (struct _reent *, char *, wchar_t, const char *, mbstate_t *);
|
20 |
|
|
int __sjis_wctomb (struct _reent *, char *, wchar_t, const char *, mbstate_t *);
|
21 |
|
|
int __eucjp_wctomb (struct _reent *, char *, wchar_t, const char *,
|
22 |
|
|
mbstate_t *);
|
23 |
|
|
int __jis_wctomb (struct _reent *, char *, wchar_t, const char *, mbstate_t *);
|
24 |
|
|
int __iso_wctomb (struct _reent *, char *, wchar_t, const char *, mbstate_t *);
|
25 |
|
|
int __cp_wctomb (struct _reent *, char *, wchar_t, const char *, mbstate_t *);
|
26 |
|
|
#ifdef __CYGWIN__
|
27 |
|
|
int __gbk_wctomb (struct _reent *, char *, wchar_t, const char *, mbstate_t *);
|
28 |
|
|
int __kr_wctomb (struct _reent *, char *, wchar_t, const char *, mbstate_t *);
|
29 |
|
|
int __big5_wctomb (struct _reent *, char *, wchar_t, const char *, mbstate_t *);
|
30 |
|
|
#endif
|
31 |
|
|
#endif
|
32 |
|
|
|
33 |
|
|
extern int (*__mbtowc) (struct _reent *, wchar_t *, const char *, size_t,
|
34 |
|
|
const char *, mbstate_t *);
|
35 |
|
|
int __ascii_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
36 |
|
|
const char *, mbstate_t *);
|
37 |
|
|
#ifdef _MB_CAPABLE
|
38 |
|
|
int __utf8_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
39 |
|
|
const char *, mbstate_t *);
|
40 |
|
|
int __sjis_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
41 |
|
|
const char *, mbstate_t *);
|
42 |
|
|
int __eucjp_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
43 |
|
|
const char *, mbstate_t *);
|
44 |
|
|
int __jis_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
45 |
|
|
const char *, mbstate_t *);
|
46 |
|
|
int __iso_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
47 |
|
|
const char *, mbstate_t *);
|
48 |
|
|
int __cp_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
49 |
|
|
const char *, mbstate_t *);
|
50 |
|
|
#ifdef __CYGWIN__
|
51 |
|
|
int __gbk_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
52 |
|
|
const char *, mbstate_t *);
|
53 |
|
|
int __kr_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
54 |
|
|
const char *, mbstate_t *);
|
55 |
|
|
int __big5_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
56 |
|
|
const char *, mbstate_t *);
|
57 |
|
|
#endif
|
58 |
|
|
#endif
|
59 |
|
|
|
60 |
|
|
extern wchar_t __iso_8859_conv[14][0x60];
|
61 |
|
|
int __iso_8859_index (const char *);
|
62 |
|
|
|
63 |
|
|
extern wchar_t __cp_conv[][0x80];
|
64 |
|
|
int __cp_index (const char *);
|
65 |
|
|
|
66 |
|
|
#endif
|