diff options
author | Chris Sutcliffe <ir0nh34d@users.sourceforge.net> | 2008-04-26 04:16:37 +0400 |
---|---|---|
committer | Chris Sutcliffe <ir0nh34d@users.sourceforge.net> | 2008-04-26 04:16:37 +0400 |
commit | 6382a9e78539192ed28b4d431c1f8b6c893060cf (patch) | |
tree | bb8fc505a7a4e2c850c18fd8b3690fcf0d79a5d0 /winsup/mingw/mingwex | |
parent | 2be644f28088af3fbfd83f20bb83ceefc16a3307 (diff) |
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.
Diffstat (limited to 'winsup/mingw/mingwex')
-rw-r--r-- | winsup/mingw/mingwex/fwide.c | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/winsup/mingw/mingwex/fwide.c b/winsup/mingw/mingwex/fwide.c index aba863970..79d5848f7 100644 --- a/winsup/mingw/mingwex/fwide.c +++ b/winsup/mingw/mingwex/fwide.c @@ -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 <stdio.h> int -fwide(stream, mode) - FILE *stream; - int mode; - { - return -1; /* limited to byte orientation */ - } +fwide(FILE* stream, int mode) +{ + return mode; /* Nothing to do. */ +} |