diff options
author | Earnie Boyd <earnie@users.sf.net> | 2000-11-21 02:50:03 +0000 |
---|---|---|
committer | Earnie Boyd <earnie@users.sf.net> | 2000-11-21 02:50:03 +0000 |
commit | 6126c12345d31cdd4714b3bb40ba54f13347016d (patch) | |
tree | 90236da9edcf2f702e06f006f9eac38d53a6aac4 /winsup/mingw/include/stdlib.h | |
parent | d5b692284b02ca019ed50fa33790c38f5c905d00 (diff) | |
download | cygnal-6126c12345d31cdd4714b3bb40ba54f13347016d.tar.gz cygnal-6126c12345d31cdd4714b3bb40ba54f13347016d.tar.bz2 cygnal-6126c12345d31cdd4714b3bb40ba54f13347016d.zip |
* include/direct.h: add guard around MSVCRT-only prototytpes
* include/io.h: add __int64 struct definitions and function prototypes;
add guard for MSVCRT-only prototypes
* include/limits.h: add ISO C9x macros LLONG_MIN, LLONG_MAX, ULLONG_MAX
* include/stdio.h: add wchar function prototypes (__MSVCRT__);
put wchar functions together to make sync with wchar.h easier
* include/stdlib.h: add wide char functions (__MSVCRT__)
* include/string.h: add string collation functions ( __MSVCRT__)
* include/sys/stat.h: add __int64 struct and function ( __MSVCRT__)
* include/tchar.h: add macros and macro function definitions
* include/wchar.h: add wide char function prototypes ( __MSVCRT__ );
enclose more functions in __MSVCRT__ guard;
some oldname wide char function prototypes #if (0)'d
* profile/gmon.h: add guard around BSD-ish typedefs
Diffstat (limited to 'winsup/mingw/include/stdlib.h')
-rw-r--r-- | winsup/mingw/include/stdlib.h | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/winsup/mingw/include/stdlib.h b/winsup/mingw/include/stdlib.h index fade92772..31a00cf9f 100644 --- a/winsup/mingw/include/stdlib.h +++ b/winsup/mingw/include/stdlib.h @@ -263,6 +263,8 @@ __MINGW_IMPORT unsigned int _winminor_dll; double atof (const char*); int atoi (const char*); long atol (const char*); +int _wtoi (const wchar_t *); +long _wtol (const wchar_t *); double strtod (const char*, char**); double wcstod (const wchar_t*, wchar_t**); @@ -332,8 +334,6 @@ void _exit (int) _ATTRIB_NORETURN; int _putenv (const char*); void _searchenv (const char*, const char*, char*); -char* _itoa (int, char*, int); -char* _ltoa (long, char*, int); char* _ecvt (double, int, int*, int*); char* _fcvt (double, int, int*, int*); @@ -342,17 +342,30 @@ char* _gcvt (double, int, char*); void _makepath (char*, const char*, const char*, const char*, const char*); void _splitpath (const char*, char*, char*, char*, char*); char* _fullpath (char*, const char*, size_t); -int _wtoi (const wchar_t *); -long _wtol (const wchar_t *); + +char* _itoa (int, char*, int); +char* _ltoa (long, char*, int); +char* _ultoa(unsigned long, char*, int); +wchar_t* _itow (int, wchar_t*, int); +wchar_t* _ltow (long, wchar_t*, int); +wchar_t* _ultow (unsigned long, wchar_t*, int); + +#ifdef __MSVCRT__ +__int64 _atoi64(const char *); char* _i64toa(__int64, char *, int); char* _ui64toa(unsigned __int64, char *, int); -__int64 _atoi64(const char *); - +__int64 _wtoi64(const wchar_t *); wchar_t* _i64tow(__int64, wchar_t *, int); wchar_t* _ui64tow(unsigned __int64, wchar_t *, int); -__int64 _wtoi64(const wchar_t *); +int _wgetenv(const wchar_t*); +int _wputenv(const wchar_t*); +void _wsearchenv(const wchar_t*, const wchar_t*, wchar_t*); +void _wmakepath(wchar_t*, const wchar_t*, const wchar_t*, const wchar_t*, const wchar_t*); +void _wsplitpath (const wchar_t*, wchar_t*, wchar_t*, wchar_t*, wchar_t*); +wchar_t* _wfullpath (wchar_t*, const wchar_t*, size_t); +#endif #ifndef _NO_OLDNAMES |