Leaked source code of windows server 2003
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.

32 lines
955 B

  1. /***
  2. *cininit.cpp - definitions and initialization for predefined stream cin.
  3. *
  4. * Copyright (c) 1991-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * Definitions and initialization of predefined stream cin.
  8. *
  9. *Revision History:
  10. * 11 18-91 KRS Created.
  11. * 01-12-95 CFW Debug CRT allocs.
  12. * 09-10-94 CFW Static Win32s objects do not alloc on instantiation.
  13. * 06-14-95 CFW Comment cleanup.
  14. * 05-13-99 PML Remove Win32s
  15. *
  16. *******************************************************************************/
  17. #include <cruntime.h>
  18. #include <internal.h>
  19. #include <iostream.h>
  20. #include <fstream.h>
  21. #include <dbgint.h>
  22. #pragma hdrstop
  23. // put contructors in special MS-specific XIFM segment
  24. #pragma warning(disable:4074) // ignore init_seg warning
  25. #pragma init_seg(compiler)
  26. istream_withassign cin(_new_crt filebuf(0));
  27. static Iostream_init __InitCin(cin);