OSDN Git Service

Add _get_output_format(), _set_output_format() for MSVCRT >= MSVCR80
authorkeithmarshall <keithmarshall>
Tue, 1 Jul 2008 22:57:24 +0000 (22:57 +0000)
committerkeithmarshall <keithmarshall>
Tue, 1 Jul 2008 22:57:24 +0000 (22:57 +0000)
winsup/mingw/ChangeLog
winsup/mingw/include/stdio.h
winsup/mingw/msvcrt.def.in

index 012666a..983aadd 100644 (file)
@@ -1,3 +1,14 @@
+2008-07-01  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
+       * msvcrt.def.in [__msvcr80__, __msvcr80d__, __msvcr90__, __msvcr90d__]
+       (_get_output_format, _set_output_format): Add references.
+
+       * include/stdio.h [__MSVCRT_VERSION__ >= 0x800]
+       (_get_output_format, _set_output_format): Declare prototypes.
+       (_TWO_DIGIT_EXPONENT): Define.
+       Some other minor formatting adjustments.
+
+
 2008-06-14  Danny Smith  <dannysmith@users.sourceforge.net>
 
        [mingw-Bugs-1801641]
index 45b369e..f8bb0ec 100644 (file)
@@ -386,16 +386,21 @@ _CRTIMP int __cdecl __MINGW_NOTHROW       _fgetchar (void);
 _CRTIMP int __cdecl __MINGW_NOTHROW    _fputchar (int);
 _CRTIMP FILE* __cdecl __MINGW_NOTHROW  _fdopen (int, const char*);
 _CRTIMP int __cdecl __MINGW_NOTHROW    _fileno (FILE*);
-_CRTIMP int __cdecl __MINGW_NOTHROW    _fcloseall(void);
-_CRTIMP FILE* __cdecl __MINGW_NOTHROW  _fsopen(const char*, const char*, int);
+_CRTIMP int __cdecl __MINGW_NOTHROW    _fcloseall (void);
+_CRTIMP FILE* __cdecl __MINGW_NOTHROW  _fsopen (const char*, const char*, int);
 #ifdef __MSVCRT__
-_CRTIMP int __cdecl __MINGW_NOTHROW    _getmaxstdio(void);
-_CRTIMP int __cdecl __MINGW_NOTHROW    _setmaxstdio(int);
+_CRTIMP int __cdecl __MINGW_NOTHROW    _getmaxstdio (void);
+_CRTIMP int __cdecl __MINGW_NOTHROW    _setmaxstdio (int);
 #endif
 
 #if __MSVCRT_VERSION__ >= 0x800
-_CRTIMP int __cdecl __MINGW_NOTHROW _set_printf_count_output(int);
-_CRTIMP int __cdecl __MINGW_NOTHROW _get_printf_count_output(void);
+_CRTIMP unsigned int __cdecl __MINGW_NOTHROW _get_output_format (void);
+_CRTIMP unsigned int __cdecl __MINGW_NOTHROW _set_output_format (unsigned int);
+
+#define _TWO_DIGIT_EXPONENT  1
+
+_CRTIMP int __cdecl __MINGW_NOTHROW _get_printf_count_output (void);
+_CRTIMP int __cdecl __MINGW_NOTHROW _set_printf_count_output (int);
 #endif
 
 #ifndef _NO_OLDNAMES
index f541dfa..87301f3 100644 (file)
@@ -810,6 +810,8 @@ _set_SSE2_enable
 #endif /* 7.1  */
 #if ( __msvcr80__ || __msvcr80d__ || __msvcr90__ || __msvcr90d__)
 ; msvcr80.dll
+_get_output_format
+_set_output_format
 _get_printf_count_output
 _set_printf_count_output
 _set_abort_behavior