2000-02-18 03:39:52 +08:00
|
|
|
/* Misc. local definitions for libc/stdlib */
|
|
|
|
|
|
|
|
#ifndef _LOCAL_H_
|
|
|
|
#define _LOCAL_H_
|
|
|
|
|
|
|
|
char * _EXFUN(_gcvt,(struct _reent *, double , int , char *, char, int));
|
|
|
|
|
2009-03-24 18:13:27 +08:00
|
|
|
char *__locale_charset ();
|
|
|
|
|
|
|
|
#ifndef __mbstate_t_defined
|
|
|
|
#include <wchar.h>
|
|
|
|
#endif
|
|
|
|
|
2009-04-09 16:24:37 +08:00
|
|
|
extern int (*__wctomb) (struct _reent *, char *, wchar_t, const char *,
|
|
|
|
mbstate_t *);
|
2009-03-24 18:13:27 +08:00
|
|
|
int __ascii_wctomb (struct _reent *, char *, wchar_t, const char *,
|
|
|
|
mbstate_t *);
|
|
|
|
#ifdef _MB_CAPABLE
|
|
|
|
int __utf8_wctomb (struct _reent *, char *, wchar_t, const char *, mbstate_t *);
|
|
|
|
int __sjis_wctomb (struct _reent *, char *, wchar_t, const char *, mbstate_t *);
|
|
|
|
int __eucjp_wctomb (struct _reent *, char *, wchar_t, const char *,
|
|
|
|
mbstate_t *);
|
|
|
|
int __jis_wctomb (struct _reent *, char *, wchar_t, const char *, mbstate_t *);
|
|
|
|
int __iso_wctomb (struct _reent *, char *, wchar_t, const char *, mbstate_t *);
|
|
|
|
int __cp_wctomb (struct _reent *, char *, wchar_t, const char *, mbstate_t *);
|
|
|
|
#ifdef __CYGWIN__
|
|
|
|
int __gbk_wctomb (struct _reent *, char *, wchar_t, const char *, mbstate_t *);
|
|
|
|
int __kr_wctomb (struct _reent *, char *, wchar_t, const char *, mbstate_t *);
|
|
|
|
int __big5_wctomb (struct _reent *, char *, wchar_t, const char *, mbstate_t *);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2009-04-09 16:24:37 +08:00
|
|
|
extern int (*__mbtowc) (struct _reent *, wchar_t *, const char *, size_t,
|
|
|
|
const char *, mbstate_t *);
|
2009-03-24 18:13:27 +08:00
|
|
|
int __ascii_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
|
|
|
const char *, mbstate_t *);
|
|
|
|
#ifdef _MB_CAPABLE
|
|
|
|
int __utf8_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
|
|
|
const char *, mbstate_t *);
|
|
|
|
int __sjis_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
|
|
|
const char *, mbstate_t *);
|
|
|
|
int __eucjp_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
|
|
|
const char *, mbstate_t *);
|
|
|
|
int __jis_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
|
|
|
const char *, mbstate_t *);
|
|
|
|
int __iso_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
|
|
|
const char *, mbstate_t *);
|
|
|
|
int __cp_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
|
|
|
const char *, mbstate_t *);
|
|
|
|
#ifdef __CYGWIN__
|
|
|
|
int __gbk_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
|
|
|
const char *, mbstate_t *);
|
|
|
|
int __kr_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
|
|
|
const char *, mbstate_t *);
|
|
|
|
int __big5_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
|
|
|
|
const char *, mbstate_t *);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
wchar_t __iso_8859_conv[14][0x60];
|
|
|
|
int __iso_8859_index (const char *);
|
|
|
|
|
|
|
|
wchar_t __cp_conv[12][0x80];
|
|
|
|
int __cp_index (const char *);
|
|
|
|
|
2009-04-18 06:15:43 +08:00
|
|
|
#include <float.h>
|
|
|
|
|
|
|
|
/* Check if long double is as wide as double. */
|
|
|
|
#if (!defined(__STRICT_ANSI__) || __STDC_VERSION__ > 199901L || \
|
|
|
|
defined(__cplusplus)) && defined(LDBL_MANT_DIG) && \
|
|
|
|
(DBL_MANT_DIG == LDBL_MANT_DIG && LDBL_MIN_EXP == DBL_MIN_EXP && \
|
|
|
|
LDBL_MAX_EXP == DBL_MAX_EXP)
|
|
|
|
#define _LDBL_EQ_DBL
|
|
|
|
#endif
|
2000-02-18 03:39:52 +08:00
|
|
|
#endif
|