From 61746d6ae850aa6a89b0c0b00c609011c6d0ade9 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 7 Nov 2012 16:52:48 +0000 Subject: * mingw: Delete obsolete directory. * w32api: Ditto. --- winsup/mingw/mingwex/stdio/fprintf.c | 68 ------------------------------------ 1 file changed, 68 deletions(-) delete mode 100644 winsup/mingw/mingwex/stdio/fprintf.c (limited to 'winsup/mingw/mingwex/stdio/fprintf.c') diff --git a/winsup/mingw/mingwex/stdio/fprintf.c b/winsup/mingw/mingwex/stdio/fprintf.c deleted file mode 100644 index 8e0582cb8..000000000 --- a/winsup/mingw/mingwex/stdio/fprintf.c +++ /dev/null @@ -1,68 +0,0 @@ -/* fprintf.c - * - * $Id$ - * - * Provides an implementation of the "fprintf" function, conforming - * generally to C99 and SUSv3/POSIX specifications, with extensions - * to support Microsoft's non-standard format specifications. This - * is included in libmingwex.a, whence it may replace the Microsoft - * function of the same name. - * - * Written by Keith Marshall - * - * This implementation of "fprintf" will normally be invoked by calling - * "__mingw_fprintf()" in preference to a direct reference to "fprintf()" - * itself; this leaves the MSVCRT implementation as the default, which - * will be deployed when user code invokes "fprint()". Users who then - * wish to use this implementation may either call "__mingw_fprintf()" - * directly, or may use conditional preprocessor defines, to redirect - * references to "fprintf()" to "__mingw_fprintf()". - * - * Compiling this module with "-D INSTALL_AS_DEFAULT" will change this - * recommended convention, such that references to "fprintf()" in user - * code will ALWAYS be redirected to "__mingw_fprintf()"; if this option - * is adopted, then users wishing to use the MSVCRT implementation of - * "fprintf()" will be forced to use a "back-door" mechanism to do so. - * Such a "back-door" mechanism is provided with MinGW, allowing the - * MSVCRT implementation to be called as "__msvcrt_fprintf()"; however, - * since users may not expect this behaviour, a standard libmingwex.a - * installation does not employ this option. - * - * - * This is free software. You may redistribute and/or modify it as you - * see fit, without restriction of copyright. - * - * This software is provided "as is", in the hope that it may be useful, - * but WITHOUT WARRANTY OF ANY KIND, not even any implied warranty of - * MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE. At no - * time will the author accept any form of liability for any damages, - * however caused, resulting from the use of this software. - * - */ -#include -#include - -#include "pformat.h" - -int __cdecl __fprintf (FILE *, const char *, ...) __MINGW_NOTHROW; - -#ifdef INSTALL_AS_DEFAULT -/* - * This implementation is to become the default for calls to fprintf(); - * establish the alias to make this so, forcing users to use the back-door - * __msvcrt_fprintf() reference, to access the original MSVCRT function. - */ -int __cdecl __mingw_alias(fprintf) (FILE *, const char *, ...) __MINGW_NOTHROW; - -#endif - -int __cdecl __fprintf( FILE *stream, const char *fmt, ... ) -{ - register int retval; - va_list argv; va_start( argv, fmt ); - retval = __pformat( PFORMAT_TO_FILE | PFORMAT_NOLIMIT, stream, 0, fmt, argv ); - va_end( argv ); - return retval; -} - -/* $RCSfile$Revision$: end of file */ -- cgit v1.2.3