source: trunk/libs/newlib/src/newlib/libc/stdlib/local.h @ 577

Last change on this file since 577 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.4 KB
Line 
1/* Misc. local definitions for libc/stdlib */
2
3#ifndef _LOCAL_H_
4#define _LOCAL_H_
5
6char *  _gcvt (struct _reent *, double , int , char *, char, int);
7
8#include "../locale/setlocale.h"
9
10#ifndef __machine_mbstate_t_defined
11#include <wchar.h>
12#endif
13
14typedef int wctomb_f (struct _reent *, char *, wchar_t, mbstate_t *);
15typedef wctomb_f *wctomb_p;
16
17wctomb_f __ascii_wctomb;
18#ifdef _MB_CAPABLE
19wctomb_f __utf8_wctomb;
20wctomb_f __sjis_wctomb;
21wctomb_f __eucjp_wctomb;
22wctomb_f __jis_wctomb;
23wctomb_p __iso_wctomb (int val);
24wctomb_p __cp_wctomb (int val);
25#ifdef __CYGWIN__
26wctomb_f __gbk_wctomb;
27wctomb_f __kr_wctomb;
28wctomb_f __big5_wctomb;
29#endif
30#endif
31
32#define __WCTOMB (__get_current_locale ()->wctomb)
33
34typedef int mbtowc_f (struct _reent *, wchar_t *, const char *, size_t,
35                      mbstate_t *);
36typedef mbtowc_f *mbtowc_p;
37
38mbtowc_f __ascii_mbtowc;
39#ifdef _MB_CAPABLE
40mbtowc_f __utf8_mbtowc;
41mbtowc_f __sjis_mbtowc;
42mbtowc_f __eucjp_mbtowc;
43mbtowc_f __jis_mbtowc;
44mbtowc_p __iso_mbtowc (int val);
45mbtowc_p __cp_mbtowc (int val);
46#ifdef __CYGWIN__
47mbtowc_f __gbk_mbtowc;
48mbtowc_f __kr_mbtowc;
49mbtowc_f __big5_mbtowc;
50#endif
51#endif
52
53#define __MBTOWC (__get_current_locale ()->mbtowc)
54
55extern wchar_t __iso_8859_conv[14][0x60];
56int __iso_8859_val_index (int);
57int __iso_8859_index (const char *);
58
59extern wchar_t __cp_conv[][0x80];
60int __cp_val_index (int);
61int __cp_index (const char *);
62
63#endif
Note: See TracBrowser for help on using the repository browser.