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.

141 lines
2.8 KiB

  1. /*/****************************************************************************
  2. * name: global.h
  3. *
  4. * description: Contains all the "extern" variables declarations
  5. *
  6. * designed: g3d_soft
  7. * last modified: $Author: bleblanc $, $Date: 94/11/09 10:45:44 $
  8. *
  9. * version: $Id: GLOBAL.H 1.18 94/11/09 10:45:44 bleblanc Exp $
  10. *
  11. ******************************************************************************/
  12. /*** Declare the TARGET for mgai ***/
  13. #include "mgai_c.h"
  14. /*** Definition of macro _Far ***/
  15. #ifdef __WATCOMC__
  16. #define _Far _far
  17. #endif
  18. /*** Configuration for compatibility with ASM ***/
  19. #ifdef __HC303__
  20. #ifdef __ANSI_C__
  21. /*** Configuration for compatibility with ASM ***/
  22. #pragma Off(Args_in_regs_for_locals);
  23. #else
  24. /*** Configuration for compatibility with ASM ***/
  25. pragma Off(Args_in_regs_for_locals);
  26. #endif
  27. #endif
  28. #ifdef __HC173__
  29. #ifdef __ANSI_C__
  30. /*** Optimizations turned off ***/
  31. #pragma Off(Optimize_xjmp);
  32. #pragma Off(Optimize_fp);
  33. #pragma Off(Auto_reg_alloc);
  34. #pragma Off(Postpone_arg_pops);
  35. #else
  36. /*** Optimizations turned off ***/
  37. pragma Off(Optimize_xjmp);
  38. pragma Off(Optimize_fp);
  39. pragma Off(Auto_reg_alloc);
  40. pragma Off(Postpone_arg_pops);
  41. #endif
  42. #endif
  43. #ifndef __DDK_SRC__ /* - - - - - - - - - - - - - - - - - - - - - - - - - */
  44. /*** OPCODES ***/
  45. extern VOID (*(*(*OpGroupTable[])[])())();
  46. /*** DECODER for functions setENV??? ***/
  47. extern BYTE *pCurrentRC; /*** Ptr to the current RC ***/
  48. extern WORD CurrentOpcode;
  49. extern BYTE *pCurrentBuffer; /*** Ptr to current input buffer **/
  50. extern BYTE *pBufferError;
  51. /*** ENVIRONNEMENT ***/
  52. extern BYTE *pCurrentEnvRC;
  53. extern DWORD CurrentEnvOpcode;
  54. extern BYTE CurrentEnvSystem[32];
  55. /*** MGA MAPPING ***/
  56. extern volatile BYTE _Far *pMgaBaseAddress;
  57. extern DWORD MgaOffset;
  58. extern WORD MgaSegment;
  59. /*** SystemConfig ***/
  60. extern BYTE SystemConfig[];
  61. /*** InitRC ***/
  62. extern BYTE DefaultRC[];
  63. extern BYTE DefaultClipList[];
  64. extern BYTE DefaultLSDB[];
  65. /*** General ***/
  66. extern DWORD CacheMaccess;
  67. extern DWORD CacheYDstOrg;
  68. extern BYTE *pDefaultClipRect;
  69. extern BYTE *pClipRectList;
  70. extern BYTE *pRC_DBWindowOwner;
  71. extern WORD ZMSK_Default;
  72. extern WORD ZMSK_Specific3D;
  73. extern BYTE VertexCache[];
  74. extern BYTE PseudoDMA;
  75. /*** ClearWS ***/
  76. extern BYTE ClearWS[];
  77. extern BYTE LightWS[];
  78. #else /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  79. #ifdef __MICROSOFTC600__
  80. #define _Far far
  81. #endif
  82. /*** ENVIRONNEMENT ***/
  83. extern BYTE CurrentEnvSystem[32];
  84. /*** MGA MAPPING ***/
  85. /* from INIT_DDK.C or GLOBAL.ASM */
  86. extern volatile BYTE _Far *pMgaBaseAddress;
  87. /*** SystemConfig ***/
  88. extern BYTE SystemConfig[];
  89. /*** General ***/
  90. extern DWORD CacheMaccess;
  91. #endif /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */