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.

50 lines
1.3 KiB

  1. /***
  2. *w4io.h - fake FILE structure for Win 4 printf/sprintf/debug printf support
  3. *
  4. * History: ??-???-?? ????? Created
  5. * 14-Mar-94 DonCl stolen from Cairo common project for use
  6. * with Forms - allows us to have our own
  7. * debug print facility exclusive of commnot.dll
  8. * enabling us to build and run on Daytona.
  9. *
  10. */
  11. struct w4io
  12. {
  13. union
  14. {
  15. struct
  16. {
  17. wchar_t *_pwcbuf; // wchar_t output buffer
  18. wchar_t *_pwcstart;
  19. } wc;
  20. struct
  21. {
  22. char *_pchbuf; // char output buffer
  23. char *_pchstart;
  24. } ch;
  25. } buf ;
  26. unsigned int cchleft; // output buffer character count
  27. void (_cdecl *writechar)(int ch,
  28. int num,
  29. struct w4io *f,
  30. int *pcchwritten);
  31. };
  32. #define pwcbuf buf.wc._pwcbuf
  33. #define pwcstart buf.wc._pwcstart
  34. #define pchbuf buf.ch._pchbuf
  35. #define pchstart buf.ch._pchstart
  36. #define REG1 register
  37. #define REG2 register
  38. /* prototypes */
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42. int _cdecl w4iooutput(struct w4io *stream, const char *format, va_list argptr);
  43. #ifdef __cplusplus
  44. }
  45. #endif