mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 16:26:12 +08:00
2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
* include/wchar.h (fwide): Return success code rather than failure in inline definition. * mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success code rather than failure.
This commit is contained in:
parent
2be644f280
commit
6382a9e785
@ -1,4 +1,11 @@
|
|||||||
2008-03-21 Danny Smith <dannysmith@users.sourceforge.net>
|
2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
|
||||||
|
|
||||||
|
* include/wchar.h (fwide): Return success code rather than failure in inline
|
||||||
|
definition.
|
||||||
|
* mingwex/fwide.c (fwide): ANSI-fy. Get rid of Q8 comments. Return success
|
||||||
|
code rather than failure.
|
||||||
|
|
||||||
|
2008-03-21 Danny Smith
|
||||||
|
|
||||||
* include/math.h (float_t, double_t): Define.
|
* include/math.h (float_t, double_t): Define.
|
||||||
|
|
||||||
|
@ -291,8 +291,8 @@ int __cdecl __MINGW_NOTHROW fwide(FILE*, int);
|
|||||||
int __cdecl __MINGW_NOTHROW mbsinit(const mbstate_t*);
|
int __cdecl __MINGW_NOTHROW mbsinit(const mbstate_t*);
|
||||||
#ifndef __NO_INLINE__
|
#ifndef __NO_INLINE__
|
||||||
__CRT_INLINE int __cdecl __MINGW_NOTHROW fwide(FILE* __UNUSED_PARAM(stream),
|
__CRT_INLINE int __cdecl __MINGW_NOTHROW fwide(FILE* __UNUSED_PARAM(stream),
|
||||||
int __UNUSED_PARAM(mode))
|
int mode)
|
||||||
{return -1;} /* limited to byte orientation */
|
{return mode;} /* Nothing to do */
|
||||||
__CRT_INLINE int __cdecl __MINGW_NOTHROW mbsinit(const mbstate_t* __UNUSED_PARAM(ps))
|
__CRT_INLINE int __cdecl __MINGW_NOTHROW mbsinit(const mbstate_t* __UNUSED_PARAM(ps))
|
||||||
{return 1;}
|
{return 1;}
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,26 +1,9 @@
|
|||||||
/* This source code was extracted from the Q8 package created and placed
|
|
||||||
in the PUBLIC DOMAIN by Doug Gwyn <gwyn@arl.mil>
|
|
||||||
last edit: 1999/11/05 gwyn@arl.mil
|
|
||||||
|
|
||||||
Implements subclause 7.24 of ISO/IEC 9899:1999 (E).
|
|
||||||
|
|
||||||
This is a minimal implementation for environments where
|
|
||||||
internationalization is not considered important.
|
|
||||||
|
|
||||||
It supports an encoding where all char codes are mapped
|
|
||||||
to the *same* code values within a wchar_t or wint_t,
|
|
||||||
so long as no other wchar_t codes are used by the program.
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
fwide(stream, mode)
|
fwide(FILE* stream, int mode)
|
||||||
FILE *stream;
|
{
|
||||||
int mode;
|
return mode; /* Nothing to do. */
|
||||||
{
|
}
|
||||||
return -1; /* limited to byte orientation */
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user