windows-nt/Source/XPSP1/NT/base/crts/crtw32/dllstuff/xtxtmode.c

32 lines
1.3 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/***
*xtxtmode.c - set global text mode flag
*
* Copyright (c) 1989-2001, Microsoft Corporation. All rights reserved.
*
*Purpose:
* Sets the global file mode to text. This is the default.
*
* This is a special version for the DLL model. This object goes into
* MSVCRT.LIB (and therefore into the client EXE) and not into the
* CRTL in a DLL (MSVCRTXX.DLL). It is identical to txtmode.obj
* except that the latter has a DLL export definition in the DLL model.
*
*Revision History:
* 06-08-89 PHG Module created, based on asm version.
* 04-04-90 GJF Added #include <cruntime.h>. Also, fixed the copyright.
* 01-23-92 GJF Added #include <stdlib.h> (contains decl of _fmode).
* 04-05-94 GJF Added conditional so this definition doesn't make it
* into the msvcrt*.dll for Win32s.
* 05-15-95 SKS This is a copy of txtmode.obj except for the
* DLL import semantics.
* 06-28-96 GJF Removed DLL_FOR_WIN32S. Also, detab-ed.
*
*******************************************************************************/
#define SPECIAL_CRTEXE /* turn off _CRTIMP for decl. of _fmode */
#include <cruntime.h>
#include <stdlib.h>
int _fmode = 0; /* set text mode */