Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ofmt_stub.s « mingw « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 388dcb45dfabe263d3b9b5f34f4b9b21c61fed0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* ofmt_stub.s
 *
 * $Id$
 *
 * A trivial stub, to replace the _get_output_format() function.
 *
 * _pformat() requires this function, which is provided by MSVCRT runtimes
 * from msvcr80.dll onwards; add this stub to the import libraries for earlier
 * versions of MSVCRT, (those which do not already advertise availability of
 * any exported _get_output_format() function); this will permit _pformat()
 * to transparently interoperate with all supported versions of MSVCRT.
 * (Likewise for CRTDLL).
 *
 * Written by Keith Marshall  <keithmarshall@users.sourceforge.net>
 * Contributed to the MinGW Project, and hereby assigned to the public domain.
 *
 * This is free software.  It is provided AS IS, in the hope that it may be
 * useful.  There is NO WARRANTY OF ANY KIND, not even an implied warranty of
 * merchantability, nor of fitness for any particular purpose.
 *
 */
	.text
	.p2align 1,,4

.globl __get_output_format
	.def	__get_output_format;	.scl	2;	.type	32;	.endef

__get_output_format:
/*
 * int _get_output_format( void );
 *
 * Implementation is trivial: we immediately return zero, thus matching the
 * default behaviour of Microsoft's own implementation, in the absence of any
 * preceding call to _set_output_format(); (if we are using this stub, then
 * that entire API is unsupported, so no such prior call is possible).
 */
	xorl	%eax, %eax
	ret

/* $RCSfile$Revision$: end of file */