Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.3 KiB

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