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.

137 lines
2.7 KiB

  1. //
  2. // psglobal.h
  3. //
  4. //
  5. // temporary include file for tumbo stuff
  6. //
  7. // globally included in all sources
  8. //
  9. //
  10. //
  11. // Define huge to be nothing to satisfy compiler
  12. //
  13. #ifdef huge
  14. #undef huge
  15. #endif
  16. #define huge
  17. #if DBG==1 && DEVL==1
  18. #define MYPSDEBUG
  19. #else
  20. #undef MYPSDEBUG
  21. #endif
  22. #ifdef MYPSDEBUG
  23. #define DBGOUT(parm) (printf parm)
  24. #else
  25. #define DBGOUT(parm)
  26. #endif
  27. // take this out when we figure out how to eliminate from
  28. // NT build compiler invocation
  29. #ifdef DBG
  30. #undef DBG
  31. #endif
  32. #define LINT_ARGS
  33. #include <windows.h>
  34. #include <pstodib.h>
  35. #include <pserr.h>
  36. #define MAX_INTERNAL_FONTS 35 // DJC redefine
  37. // common error codes to use betwee PSTODIB and interprter
  38. #ifndef NOERROR
  39. #define NOERROR 0
  40. #endif
  41. #define DICTFULL 1
  42. #define DICTSTACKOVERFLOW 2
  43. #define DICTSTACKUNDERFLOW 3
  44. #define EXECSTACKOVERFLOW 4
  45. #define HANDLEERROR 5
  46. #define INTERRUPT 6
  47. #define INVALIDACCESS 7
  48. #define INVALIDEXIT 8
  49. #define INVALIDFILEACCESS 9
  50. #define INVALIDFONT 10
  51. #define INVALIDRESTORE 11
  52. #define IOERROR 12
  53. #define LIMITCHECK 13
  54. #define NOCURRENTPOINT 14
  55. #define RANGECHECK 15
  56. #define STACKOVERFLOW 16
  57. #define STACKUNDERFLOW 17
  58. #define SYNTAXERROR 18
  59. #define TIMEOUT 19
  60. #define TYPECHECK 20
  61. #define UNDEFINED 21
  62. #define UNDEFINEDFILENAME 22
  63. #define UNDEFINEDRESULT 23
  64. #define UNMATCHEDMARK 24
  65. #define UNREGISTERED 25
  66. #define VMERROR 26
  67. enum {
  68. PSTODIB_UNKNOWN_ERR = 100,
  69. PSTODIB_INVALID_PAGE_SIZE
  70. };
  71. // common page size declarations
  72. enum {
  73. PSTODIB_LETTER = 0,
  74. PSTODIB_LETTERSMALL = 1,
  75. PSTODIB_A4 = 2,
  76. PSTODIB_A4SMALL = 3,
  77. PSTODIB_B5 = 4,
  78. PSTODIB_NOTE = 5,
  79. PSTODIB_LEGAL = 6,
  80. PSTODIB_LEGALSMALL = 7
  81. };
  82. // modules in psti.c called by rest of interpreter
  83. VOID PsReportError(UINT);
  84. VOID PSNotifyPageChange(UINT);
  85. VOID PsInternalErrorCalled(VOID);
  86. VOID PsFlushingCalled(VOID);
  87. BOOL PsAdjustFrame(LPVOID *, DWORD );
  88. void PsPrintPage(int nCopies,
  89. int Erase,
  90. LPVOID lpFrame,
  91. DWORD dwWidth,
  92. DWORD dwHeight,
  93. DWORD dwPlanes,
  94. DWORD dwPageType );
  95. int PsReturnDefaultTItray(void);
  96. VOID PsReportInternalError( DWORD dwFlags,DWORD dwErrorCode,DWORD dwCount,LPBYTE pByte );
  97. VOID PsGetScaleFactor(double *, double *, UINT, UINT);
  98. //
  99. // Global flags used in interpreter
  100. //
  101. extern DWORD dwGlobalPsToDibFlags;
  102.