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.

31 lines
961 B

  1. /***
  2. *cerrinit.cpp - definitions and initialization for predefined stream cerr.
  3. *
  4. * Copyright (c) 1991-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * Definitions and initialization of predefined stream cerr.
  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. ostream_withassign cerr(_new_crt filebuf(2));
  27. static Iostream_init __InitCerr(cerr,1);