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.

409 lines
14 KiB

  1. //----------------------------------------------------------------------------
  2. //
  3. // setup.acp
  4. //
  5. // Assembly structure offset generator.
  6. //
  7. // Copyright (C) Microsoft Corporation, 1997.
  8. //
  9. //----------------------------------------------------------------------------
  10. #include <stdio.h>
  11. #include <windows.h>
  12. #include <d3dp.h>
  13. #include <rast.h>
  14. // #include <refrast.hpp>
  15. #include "stp_base.h"
  16. #define OFFSET(Struct, Field) FIELD_OFFSET(Struct, Field)
  17. char *pSPrefix = "";
  18. #ifdef _X86_
  19. #define EQ(Name, Value) printf("%s EQU 0%Xh\n", Name, Value)
  20. #define TEQ(Name, String) printf("%s EQU %s\n", Name, String)
  21. #define TEQF(Name, Fmt, Args) printf("%s EQU " Fmt "\n", Name, Args)
  22. #define SOFF(Struct, Field) \
  23. printf("%s_%s EQU 0%Xh\n", pSPrefix, #Field, OFFSET(Struct, Field))
  24. #define COMMENT(String) printf("; %s\n", String)
  25. #define TEXTERN(Name, Type) printf("EXTERN %s:%s\n", Name, Type)
  26. #define EXTERN(Name) TEXTERN(Name, "NEAR")
  27. #elif _ALPHA_
  28. #define EQ(Name, Value) printf("#define %s 0x%X\n", Name, Value)
  29. #define TEQ(Name, String) printf("#define %s %s\n", Name, String)
  30. #define TEQF(Name, Fmt, Args) printf("#define %s " Fmt "\n", Name, Args)
  31. #define SOFF(Struct, Field) \
  32. printf("#define %s_%s 0x%X\n", pSPrefix, #Field, OFFSET(Struct, Field))
  33. #define COMMENT(String) printf("/* %s */\n", String)
  34. #define EXTERN(Name) printf("extern %s\n", Name)
  35. #define TEXTERN(Name, Type) printf("extern %s:%s\n", Name, Type)
  36. #endif
  37. #define SPRE(pPre) (pSPrefix = (pPre))
  38. #define CSPRE(pPre) (COMMENT(pPre), SPRE(pPre))
  39. void __cdecl main(int argc, char **argv)
  40. {
  41. COMMENT("------------------------------------------------------"
  42. "----------------------");
  43. COMMENT("");
  44. COMMENT(" Automatically generated structure offsets.");
  45. COMMENT(" NOTE: DO NOT EDIT BY HAND.");
  46. COMMENT("");
  47. COMMENT(" Copyright (C) Microsoft Corporation, 1997.");
  48. COMMENT("");
  49. COMMENT("------------------------------------------------------"
  50. "----------------------");
  51. printf("\n");
  52. CSPRE("ATTRSET");
  53. SOFF(ATTRSET, fZ);
  54. SOFF(ATTRSET, fOoW);
  55. SOFF(ATTRSET, fB);
  56. SOFF(ATTRSET, fG);
  57. SOFF(ATTRSET, fR);
  58. SOFF(ATTRSET, fA);
  59. SOFF(ATTRSET, fUoW);
  60. SOFF(ATTRSET, fVoW);
  61. SOFF(ATTRSET, fBS);
  62. SOFF(ATTRSET, fGS);
  63. SOFF(ATTRSET, fRS);
  64. SOFF(ATTRSET, fFog);
  65. SOFF(ATTRSET, pSurface);
  66. SOFF(ATTRSET, pZ);
  67. SOFF(ATTRSET, ipSurface);
  68. SOFF(ATTRSET, ipZ);
  69. SOFF(ATTRSET, uZ);
  70. SOFF(ATTRSET, uB);
  71. SOFF(ATTRSET, uG);
  72. SOFF(ATTRSET, uR);
  73. SOFF(ATTRSET, uA);
  74. SOFF(ATTRSET, uBS);
  75. SOFF(ATTRSET, uGS);
  76. SOFF(ATTRSET, uRS);
  77. SOFF(ATTRSET, uFog);
  78. SOFF(ATTRSET, iZ);
  79. SOFF(ATTRSET, iOoW);
  80. SOFF(ATTRSET, iB);
  81. SOFF(ATTRSET, iG);
  82. SOFF(ATTRSET, iR);
  83. SOFF(ATTRSET, iA);
  84. SOFF(ATTRSET, iUoW);
  85. SOFF(ATTRSET, iVoW);
  86. SOFF(ATTRSET, iBS);
  87. SOFF(ATTRSET, iGS);
  88. SOFF(ATTRSET, iRS);
  89. SOFF(ATTRSET, iFog);
  90. printf("ATTRSET_iUoW1 EQU 0%Xh\n", OFFSET(ATTRSET, iUoW));
  91. printf("ATTRSET_iVoW1 EQU 0%Xh\n", OFFSET(ATTRSET, iVoW));
  92. printf("\n");
  93. CSPRE("RASTSPAN");
  94. SOFF(D3DI_RASTSPAN, uPix);
  95. SOFF(D3DI_RASTSPAN, uX);
  96. SOFF(D3DI_RASTSPAN, uY);
  97. SOFF(D3DI_RASTSPAN, pSurface);
  98. SOFF(D3DI_RASTSPAN, pZ);
  99. SOFF(D3DI_RASTSPAN, uZ);
  100. SOFF(D3DI_RASTSPAN, uB);
  101. SOFF(D3DI_RASTSPAN, uG);
  102. SOFF(D3DI_RASTSPAN, uR);
  103. SOFF(D3DI_RASTSPAN, uA);
  104. SOFF(D3DI_RASTSPAN, uBS);
  105. SOFF(D3DI_RASTSPAN, uGS);
  106. SOFF(D3DI_RASTSPAN, uRS);
  107. SOFF(D3DI_RASTSPAN, uFog);
  108. SOFF(D3DI_RASTSPAN, iW);
  109. SOFF(D3DI_RASTSPAN, iOoW);
  110. SOFF(D3DI_RASTSPAN, UVoW);
  111. SOFF(D3DI_RASTSPAN, iLOD);
  112. SOFF(D3DI_RASTSPAN, iDLOD);
  113. SOFF(D3DI_RASTSPAN, iDFog);
  114. EQ("SIZEOF_RASTSPAN", sizeof(D3DI_RASTSPAN));
  115. printf("RASTSPAN_iUoW1 EQU 0%Xh\n", OFFSET(D3DI_RASTSPAN, UVoW));
  116. printf("RASTSPAN_iVoW1 EQU 0%Xh\n", OFFSET(D3DI_RASTSPAN, UVoW) + sizeof(INT32));
  117. printf("\n");
  118. CSPRE("RASTPRIM");
  119. SOFF(D3DI_RASTPRIM, uSpans);
  120. SOFF(D3DI_RASTPRIM, iDZDX);
  121. SOFF(D3DI_RASTPRIM, iDBDX);
  122. SOFF(D3DI_RASTPRIM, iDGDX);
  123. SOFF(D3DI_RASTPRIM, iDRDX);
  124. SOFF(D3DI_RASTPRIM, iDADX);
  125. SOFF(D3DI_RASTPRIM, iDBSDX);
  126. SOFF(D3DI_RASTPRIM, iDGSDX);
  127. SOFF(D3DI_RASTPRIM, iDRSDX);
  128. SOFF(D3DI_RASTPRIM, DUVoWDX);
  129. SOFF(D3DI_RASTPRIM, DUVoWDY);
  130. SOFF(D3DI_RASTPRIM, iDOoWDX);
  131. SOFF(D3DI_RASTPRIM, uFlags);
  132. SOFF(D3DI_RASTPRIM, pNext);
  133. EQ("SIZEOF_RASTPRIM", sizeof(D3DI_RASTPRIM));
  134. printf("RASTPRIM_iDUoW1DX EQU 0%Xh\n", OFFSET(D3DI_RASTPRIM, DUVoWDX));
  135. printf("RASTPRIM_iDVoW1DX EQU 0%Xh\n", OFFSET(D3DI_RASTPRIM, DUVoWDX) + sizeof(INT32));
  136. printf("RASTPRIM_iDUoW1DY EQU 0%Xh\n", OFFSET(D3DI_RASTPRIM, DUVoWDY));
  137. printf("RASTPRIM_iDVoW1DY EQU 0%Xh\n", OFFSET(D3DI_RASTPRIM, DUVoWDY) + sizeof(INT32));
  138. EQ("D3DI_RASTPRIM_X_DEC", D3DI_RASTPRIM_X_DEC);
  139. printf("\n");
  140. CSPRE("RASTCTX");
  141. SOFF(D3DI_RASTCTX, pPrim);
  142. SOFF(D3DI_RASTCTX, SI);
  143. SOFF(D3DI_RASTCTX, pSurfaceBits);
  144. SOFF(D3DI_RASTCTX, iSurfaceStep);
  145. SOFF(D3DI_RASTCTX, iSurfaceBitCount);
  146. SOFF(D3DI_RASTCTX, iSurfaceType);
  147. SOFF(D3DI_RASTCTX, pZBits);
  148. SOFF(D3DI_RASTCTX, iZStride);
  149. SOFF(D3DI_RASTCTX, iZStep);
  150. SOFF(D3DI_RASTCTX, iZBitCount);
  151. SOFF(D3DI_RASTCTX, pdwRenderState);
  152. SOFF(D3DI_RASTCTX, pTexture);
  153. SOFF(D3DI_RASTCTX, pfnRenderSpans);
  154. SOFF(D3DI_RASTCTX, pfnBegin);
  155. SOFF(D3DI_RASTCTX, pfnTestPassEnd);
  156. SOFF(D3DI_RASTCTX, pfnTestFailEnd);
  157. SOFF(D3DI_RASTCTX, pfnTexAddr);
  158. SOFF(D3DI_RASTCTX, pfnTexRead);
  159. SOFF(D3DI_RASTCTX, pfnTexAddrEnd);
  160. SOFF(D3DI_RASTCTX, pfnTexBlendEnd);
  161. SOFF(D3DI_RASTCTX, pfnColorGenEnd);
  162. SOFF(D3DI_RASTCTX, pfnSrcBlend);
  163. SOFF(D3DI_RASTCTX, pfnDestBlend);
  164. SOFF(D3DI_RASTCTX, pfnBufRead);
  165. SOFF(D3DI_RASTCTX, pfnColorBlendEnd);
  166. SOFF(D3DI_RASTCTX, pfnAlphaTestPassEnd);
  167. SOFF(D3DI_RASTCTX, pfnAlphaTestFailEnd);
  168. SOFF(D3DI_RASTCTX, pfnPixelEnd);
  169. SOFF(D3DI_RASTCTX, pfnLoopEnd);
  170. SOFF(D3DI_RASTCTX, pfnTexBlendGetAlpha);
  171. SOFF(D3DI_RASTCTX, pfnTexBlendOpAlpha);
  172. SOFF(D3DI_RASTCTX, pfnTexBlendGetColor);
  173. SOFF(D3DI_RASTCTX, pfnTexBlendOpColor);
  174. SOFF(D3DI_RASTCTX, iZAndMask);
  175. SOFF(D3DI_RASTCTX, iZNeg);
  176. SOFF(D3DI_RASTCTX, iZXorMask);
  177. SOFF(D3DI_RASTCTX, iAAndMask);
  178. SOFF(D3DI_RASTCTX, iANeg);
  179. SOFF(D3DI_RASTCTX, iAXorMask);
  180. SOFF(D3DI_RASTCTX, iARef);
  181. SOFF(D3DI_RASTCTX, iSAndMask);
  182. SOFF(D3DI_RASTCTX, iSNeg);
  183. SOFF(D3DI_RASTCTX, iSXorMask);
  184. SOFF(D3DI_RASTCTX, pRampMap);
  185. SOFF(D3DI_RASTCTX, cActTex);
  186. SOFF(D3DI_RASTCTX, cActBldStage);
  187. EQ("SIZEOF_PFNTEXREAD", sizeof(PFNTEXREAD));
  188. EQ("SIZEOF_RASTCTX", sizeof(D3DI_RASTCTX));
  189. EQ("SIZEOF_UV_UNION", sizeof(UV_UNION));
  190. EQ("SIZEOF_INT32", sizeof(INT32));
  191. printf("\n");
  192. CSPRE("SPANITER");
  193. SOFF(D3DI_SPANITER, uBB);
  194. SOFF(D3DI_SPANITER, uBG);
  195. SOFF(D3DI_SPANITER, uBR);
  196. SOFF(D3DI_SPANITER, uBA);
  197. SOFF(D3DI_SPANITER, uFogB);
  198. SOFF(D3DI_SPANITER, uFogG);
  199. SOFF(D3DI_SPANITER, uFogR);
  200. SOFF(D3DI_SPANITER, uFog);
  201. SOFF(D3DI_SPANITER, iFogBDX);
  202. SOFF(D3DI_SPANITER, iFogGDX);
  203. SOFF(D3DI_SPANITER, iFogRDX);
  204. SOFF(D3DI_SPANITER, iDFog);
  205. SOFF(D3DI_SPANITER, uZDeferred);
  206. SOFF(D3DI_SPANITER, TexUV);
  207. SOFF(D3DI_SPANITER, TexCol);
  208. SOFF(D3DI_SPANITER, uDitherOffset);
  209. SOFF(D3DI_SPANITER, iXStep);
  210. SOFF(D3DI_SPANITER, iDW);
  211. SOFF(D3DI_SPANITER, iSpecialW);
  212. SOFF(D3DI_SPANITER, bStencilPass);
  213. EQ("SIZEOF_SPANITER", sizeof(D3DI_SPANITER));
  214. printf("SPANITER_iU1 EQU 0%Xh\n", OFFSET(D3DI_SPANITER, TexUV));
  215. printf("SPANITER_iV1 EQU 0%Xh\n", OFFSET(D3DI_SPANITER, TexUV) + sizeof(INT32));
  216. printf("\n");
  217. CSPRE("SPANTEX");
  218. SOFF(D3DI_SPANTEX, uFlags);
  219. SOFF(D3DI_SPANTEX, Format);
  220. SOFF(D3DI_SPANTEX, TexAddrU);
  221. SOFF(D3DI_SPANTEX, TexAddrV);
  222. SOFF(D3DI_SPANTEX, uMagFilter);
  223. SOFF(D3DI_SPANTEX, uMinFilter);
  224. SOFF(D3DI_SPANTEX, uMipFilter);
  225. SOFF(D3DI_SPANTEX, BorderColor);
  226. SOFF(D3DI_SPANTEX, TransparentColor);
  227. SOFF(D3DI_SPANTEX, pBits);
  228. SOFF(D3DI_SPANTEX, pPalette);
  229. SOFF(D3DI_SPANTEX, cLOD);
  230. SOFF(D3DI_SPANTEX, iSizeU);
  231. SOFF(D3DI_SPANTEX, iSizeV);
  232. SOFF(D3DI_SPANTEX, iShiftU);
  233. SOFF(D3DI_SPANTEX, iShiftV);
  234. SOFF(D3DI_SPANTEX, iShiftPitch);
  235. SOFF(D3DI_SPANTEX, uMaskU);
  236. SOFF(D3DI_SPANTEX, uMaskV);
  237. SOFF(D3DI_SPANTEX, iFlipMaskU);
  238. SOFF(D3DI_SPANTEX, iFlipMaskV);
  239. SOFF(D3DI_SPANTEX, iClampMinU);
  240. SOFF(D3DI_SPANTEX, iClampMinV);
  241. SOFF(D3DI_SPANTEX, iClampMaxU);
  242. SOFF(D3DI_SPANTEX, iClampMaxV);
  243. SOFF(D3DI_SPANTEX, iClampEnU);
  244. SOFF(D3DI_SPANTEX, iClampEnV);
  245. EQ("SIZEOF_PSPANTEX", sizeof(PD3DI_SPANTEX));
  246. printf("\n");
  247. COMMENT("INTCARRYVAL");
  248. SPRE("ICV");
  249. SOFF(INTCARRYVAL, iV);
  250. SOFF(INTCARRYVAL, iFrac);
  251. SOFF(INTCARRYVAL, iDFrac);
  252. SOFF(INTCARRYVAL, iNC);
  253. SOFF(INTCARRYVAL, iCY);
  254. printf("\n");
  255. COMMENT("SETUPCTX");
  256. SPRE("SCTX");
  257. SOFF(SETUPCTX, uFlags);
  258. SOFF(SETUPCTX, X20);
  259. SOFF(SETUPCTX, iY);
  260. SOFF(SETUPCTX, Attr);
  261. SOFF(SETUPCTX, DAttrDX);
  262. SOFF(SETUPCTX, DAttrDY);
  263. SOFF(SETUPCTX, DAttrNC);
  264. SOFF(SETUPCTX, DAttrCY);
  265. SOFF(SETUPCTX, pPrim);
  266. SOFF(SETUPCTX, bNextValid);
  267. SOFF(SETUPCTX, fDX10);
  268. SOFF(SETUPCTX, fDX20);
  269. SOFF(SETUPCTX, fDY10);
  270. SOFF(SETUPCTX, fDY20);
  271. SOFF(SETUPCTX, fOoDet);
  272. SOFF(SETUPCTX, fNX10);
  273. SOFF(SETUPCTX, fNX20);
  274. SOFF(SETUPCTX, fNY10);
  275. SOFF(SETUPCTX, fNY20);
  276. SOFF(SETUPCTX, fDX);
  277. SOFF(SETUPCTX, fDY);
  278. SOFF(SETUPCTX, fX20NC);
  279. SOFF(SETUPCTX, fX20CY);
  280. SOFF(SETUPCTX, pCtx);
  281. printf("\n");
  282. COMMENT("D3DTLVERTEX");
  283. SPRE("TL");
  284. SOFF(D3DTLVERTEX, dvSZ);
  285. SOFF(D3DTLVERTEX, dvRHW);
  286. SOFF(D3DTLVERTEX, dcColor);
  287. SOFF(D3DTLVERTEX, dcSpecular);
  288. SOFF(D3DTLVERTEX, dvTU);
  289. SOFF(D3DTLVERTEX, dvTV);
  290. printf("\n");
  291. COMMENT("RASTCTX");
  292. SPRE("RCTX");
  293. SOFF(D3DI_RASTCTX, pdwRenderState);
  294. printf("\n");
  295. COMMENT("Flags");
  296. EQ("TRIP_X_DEC", TRIP_X_DEC);
  297. EQ("TRIP_RASTPRIM_OVERFLOW", TRIP_RASTPRIM_OVERFLOW);
  298. EQ("TRIP_FIXED_OVERFLOW", TRIP_FIXED_OVERFLOW);
  299. printf("\n");
  300. COMMENT("D3DRENDERSTATE values.");
  301. EQ("RS_ZBIAS", D3DRENDERSTATE_ZBIAS*sizeof(DWORD));
  302. EQ("RS_WRAPU", D3DRENDERSTATE_WRAPU*sizeof(DWORD));
  303. EQ("RS_WRAPV", D3DRENDERSTATE_WRAPV*sizeof(DWORD));
  304. EQ("RS_SHADEMODE", D3DRENDERSTATE_SHADEMODE*sizeof(DWORD));
  305. EQ("RS_STENCILREF", D3DRENDERSTATE_STENCILREF*sizeof(DWORD));
  306. EQ("RS_STENCILMASK", D3DRENDERSTATE_STENCILMASK*sizeof(DWORD));
  307. EQ("RS_STENCILPASS", D3DRENDERSTATE_STENCILPASS*sizeof(DWORD));
  308. EQ("RS_STENCILZFAIL", D3DRENDERSTATE_STENCILZFAIL*sizeof(DWORD));
  309. EQ("RS_STENCILFAIL", D3DRENDERSTATE_STENCILFAIL*sizeof(DWORD));
  310. EQ("RS_STENCILWRITEMASK", D3DRENDERSTATE_STENCILWRITEMASK*sizeof(DWORD));
  311. EQ("RS_ALPHAREF", D3DRENDERSTATE_ALPHAREF*sizeof(DWORD));
  312. EQ("RS_ROP2", D3DRENDERSTATE_ROP2*sizeof(DWORD));
  313. EQ("RS_TEXTUREPERSPECTIVE", D3DRENDERSTATE_TEXTUREPERSPECTIVE*sizeof(DWORD));
  314. EQ("RS_FOGCOLOR", D3DRENDERSTATE_FOGCOLOR*sizeof(DWORD));
  315. EQ("RS_FOGENABLE", D3DRENDERSTATE_FOGENABLE*sizeof(DWORD));
  316. EQ("RS_TEXTUREFACTOR", D3DRENDERSTATE_TEXTUREFACTOR*sizeof(DWORD));
  317. printf("\n");
  318. COMMENT("Raster Op values.");
  319. EQ("R2_BLACK", R2_BLACK);
  320. EQ("R2_NOTMERGEPEN", R2_NOTMERGEPEN);
  321. EQ("R2_MASKNOTPEN", R2_MASKNOTPEN);
  322. EQ("R2_NOTCOPYPEN", R2_NOTCOPYPEN);
  323. EQ("R2_MASKPENNOT", R2_MASKPENNOT);
  324. EQ("R2_NOT", R2_NOT);
  325. EQ("R2_XORPEN", R2_XORPEN);
  326. EQ("R2_NOTMASKPEN", R2_NOTMASKPEN);
  327. EQ("R2_MASKPEN", R2_MASKPEN);
  328. EQ("R2_NOTXORPEN", R2_NOTXORPEN);
  329. EQ("R2_NOP", R2_NOP);
  330. EQ("R2_MERGENOTPEN", R2_MERGENOTPEN);
  331. EQ("R2_COPYPEN", R2_COPYPEN);
  332. EQ("R2_MERGEPENNOT", R2_MERGEPENNOT);
  333. EQ("R2_MERGEPEN", R2_MERGEPEN);
  334. EQ("R2_WHITE", R2_WHITE);
  335. EQ("D3DSTENCILOP_KEEP", D3DSTENCILOP_KEEP);
  336. EQ("D3DSTENCILOP_ZERO", D3DSTENCILOP_ZERO);
  337. EQ("D3DSTENCILOP_REPLACE", D3DSTENCILOP_REPLACE);
  338. EQ("D3DSTENCILOP_INCRSAT", D3DSTENCILOP_INCRSAT);
  339. EQ("D3DSTENCILOP_DECRSAT", D3DSTENCILOP_DECRSAT);
  340. EQ("D3DSTENCILOP_INVERT", D3DSTENCILOP_INVERT);
  341. EQ("D3DSTENCILOP_INCR", D3DSTENCILOP_INCR);
  342. EQ("D3DSTENCILOP_DECR", D3DSTENCILOP_DECR);
  343. printf("\n");
  344. COMMENT("Miscellaneous defines.");
  345. EQ("D3DSHADE_FLAT", D3DSHADE_FLAT);
  346. EQ("D3DTFG_LINEAR", D3DTFG_LINEAR);
  347. EQ("D3DTFG_POINT", D3DTFG_POINT);
  348. EQ("TEX_TO_FINAL_SHIFT", TEX_TO_FINAL_SHIFT);
  349. EQ("TEX_SHIFT", TEX_SHIFT);
  350. EQ("TEX_FINAL_SHIFT", TEX_FINAL_SHIFT);
  351. EQ("RAST_STYPE_B5G6R5", RAST_STYPE_B5G6R5);
  352. EQ("RAST_STYPE_B5G5R5", RAST_STYPE_B5G5R5);
  353. /*
  354. printf("\n");
  355. COMMENT("FP constants.");
  356. TEXTERN("_g_fTwoPow8", "DWORD");
  357. TEXTERN("_g_fTwoPow16", "DWORD");
  358. TEXTERN("_g_fOoTwoPow16", "DWORD");
  359. TEXTERN("_g_fTwoPow20", "DWORD");
  360. TEXTERN("_g_fTwoPow31", "DWORD");
  361. TEXTERN("_g_fTwoPow39", "DWORD");
  362. EQ("C_Z_LIMIT", C_Z_LIMIT);
  363. EQ("C_OOW_LIMIT", C_OOW_LIMIT);
  364. EQ("C_COLOR_LIMIT", C_COLOR_LIMIT);
  365. EQ("C_TEX_LIMIT", C_TEX_LIMIT);
  366. //TEQF("Z_SCALE", "_g_fTwoPow%d", (Z_SHIFT));
  367. //TEQF("OOW_SCALE", "_g_fTwoPow%d", (OOW_SHIFT));
  368. //TEQF("OOW_W_SCALE", "_g_fTwoPow%d", (OOW_W_SHIFT));
  369. //TEQF("COLOR_SCALE", "_g_fTwoPow%d", (COLOR_SHIFT));
  370. //TEQF("TEX_SCALE", "_g_fTwoPow%d", (TEX_SHIFT));
  371. */
  372. exit(0);
  373. }