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.

935 lines
18 KiB

  1. /*
  2. ** Copyright 1992, Silicon Graphics, Inc.
  3. ** All Rights Reserved.
  4. **
  5. ** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6. ** the contents of this file may not be disclosed to third parties, copied or
  7. ** duplicated in any form, in whole or in part, without the prior written
  8. ** permission of Silicon Graphics, Inc.
  9. **
  10. ** RESTRICTED RIGHTS LEGEND:
  11. ** Use, duplication or disclosure by the Government is subject to restrictions
  12. ** as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13. ** and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14. ** successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15. ** rights reserved under the Copyright Laws of the United States.
  16. **
  17. */
  18. #include <stdlib.h>
  19. #include <setjmp.h>
  20. struct JumpBuffer {
  21. jmp_buf buf;
  22. };
  23. #define mysetjmp(x) setjmp((x)->buf)
  24. #define mylongjmp(x,y) longjmp((x)->buf, y)
  25. /* <<AT&T USL C++ Language System <3.0.1> 02/03/92>> */
  26. /* < ../core/displaylist.c++ > */
  27. void *__vec_new (void *, int , int , void *);
  28. void __vec_ct (void *, int , int , void *);
  29. void __vec_dt (void *, int , int , void *);
  30. void __vec_delete (void *, int , int , void *, int , int );
  31. typedef int (*__vptp)(void);
  32. struct __mptr {short d; short i; __vptp f; };
  33. typedef unsigned int size_t ;
  34. // extern void *malloc (size_t );
  35. // extern void free (void *);
  36. struct JumpBuffer;
  37. struct Buffer;
  38. struct Buffer {
  39. struct Buffer *next__6Buffer ;
  40. };
  41. struct Pool;
  42. enum __Q2_4Pool5Magic { is_allocated__Q2_4Pool5Magic = 62369, is_free__Q2_4Pool5Magic = 61858} ;
  43. struct Pool {
  44. struct Buffer *freelist__4Pool ;
  45. char *blocklist__4Pool [32];
  46. int nextblock__4Pool ;
  47. char *curblock__4Pool ;
  48. int buffersize__4Pool ;
  49. int nextsize__4Pool ;
  50. int nextfree__4Pool ;
  51. int initsize__4Pool ;
  52. char *name__4Pool ;
  53. int magic__4Pool ;
  54. };
  55. void __glgrow__4PoolFv (struct Pool *);
  56. struct PooledObj;
  57. struct PooledObj {
  58. char __W3__9PooledObj ;
  59. };
  60. typedef float REAL ;
  61. typedef void (*Pfvv )(void );
  62. typedef void (*Pfvf )(float *);
  63. typedef int (*cmpfunc )(void *, void *);
  64. typedef REAL Knot ;
  65. typedef REAL *Knot_ptr ;
  66. struct TrimVertex;
  67. struct PwlArc;
  68. struct PwlArc {
  69. char __W3__9PooledObj ;
  70. struct TrimVertex *pts__6PwlArc ;
  71. int npts__6PwlArc ;
  72. long type__6PwlArc ;
  73. };
  74. struct TrimVertex;
  75. struct TrimVertex {
  76. REAL param__10TrimVertex [2];
  77. long nuid__10TrimVertex ;
  78. };
  79. typedef struct TrimVertex *TrimVertex_p ;
  80. struct Bin;
  81. struct Arc;
  82. struct BezierArc;
  83. typedef struct Arc *Arc_ptr ;
  84. enum arc_side { arc_none = 0, arc_right = 1, arc_top = 2, arc_left = 3, arc_bottom = 4} ;
  85. struct Arc;
  86. struct Arc {
  87. char __W3__9PooledObj ;
  88. Arc_ptr prev__3Arc ;
  89. Arc_ptr next__3Arc ;
  90. Arc_ptr link__3Arc ;
  91. struct BezierArc *bezierArc__3Arc ;
  92. struct PwlArc *pwlArc__3Arc ;
  93. long type__3Arc ;
  94. long nuid__3Arc ;
  95. };
  96. extern int __glbezier_tag__3Arc ;
  97. extern int __glarc_tag__3Arc ;
  98. extern int __gltail_tag__3Arc ;
  99. struct Bin;
  100. struct Bin {
  101. struct Arc *head__3Bin ;
  102. struct Arc *current__3Bin ;
  103. };
  104. struct Sorter;
  105. struct Sorter {
  106. int es__6Sorter ;
  107. struct __mptr *__vptr__6Sorter ;
  108. };
  109. struct FlistSorter;
  110. struct FlistSorter {
  111. int es__6Sorter ;
  112. struct __mptr *__vptr__6Sorter ;
  113. };
  114. struct Flist;
  115. struct Flist {
  116. REAL *pts__5Flist ;
  117. int npts__5Flist ;
  118. int start__5Flist ;
  119. int end__5Flist ;
  120. struct FlistSorter sorter__5Flist ;
  121. };
  122. struct Backend;
  123. struct Jarcloc;
  124. struct Jarcloc {
  125. struct Arc *arc__7Jarcloc ;
  126. struct TrimVertex *p__7Jarcloc ;
  127. struct TrimVertex *plast__7Jarcloc ;
  128. };
  129. struct Trimline;
  130. struct Trimline {
  131. struct TrimVertex **pts__8Trimline ;
  132. long numverts__8Trimline ;
  133. long i__8Trimline ;
  134. long size__8Trimline ;
  135. struct Jarcloc jarcl__8Trimline ;
  136. struct TrimVertex t__8Trimline ;
  137. struct TrimVertex b__8Trimline ;
  138. struct TrimVertex *tinterp__8Trimline ;
  139. struct TrimVertex *binterp__8Trimline ;
  140. };
  141. struct Gridline;
  142. struct Gridline {
  143. long v__8Gridline ;
  144. REAL vval__8Gridline ;
  145. long vindex__8Gridline ;
  146. long ustart__8Gridline ;
  147. long uend__8Gridline ;
  148. };
  149. struct Uarray;
  150. struct Uarray {
  151. long size__6Uarray ;
  152. long ulines__6Uarray ;
  153. REAL *uarray__6Uarray ;
  154. };
  155. struct Backend;
  156. struct TrimRegion;
  157. void __gl__dt__8TrimlineFv (struct Trimline *, int );
  158. void __gl__dt__6UarrayFv (struct Uarray *, int );
  159. struct TrimRegion {
  160. struct Trimline left__10TrimRegion ;
  161. struct Trimline right__10TrimRegion ;
  162. struct Gridline top__10TrimRegion ;
  163. struct Gridline bot__10TrimRegion ;
  164. struct Uarray uarray__10TrimRegion ;
  165. REAL oneOverDu__10TrimRegion ;
  166. };
  167. struct GridTrimVertex;
  168. struct __Q2_4Hull4Side;
  169. struct __Q2_4Hull4Side {
  170. struct Trimline *left__Q2_4Hull4Side ;
  171. struct Gridline *line__Q2_4Hull4Side ;
  172. struct Trimline *right__Q2_4Hull4Side ;
  173. long index__Q2_4Hull4Side ;
  174. };
  175. struct Hull;
  176. struct Hull {
  177. struct __Q2_4Hull4Side lower__4Hull ;
  178. struct __Q2_4Hull4Side upper__4Hull ;
  179. struct Trimline fakeleft__4Hull ;
  180. struct Trimline fakeright__4Hull ;
  181. struct TrimRegion *PTrimRegion;
  182. struct TrimRegion OTrimRegion;
  183. };
  184. struct Backend;
  185. struct GridTrimVertex;
  186. struct Mesher;
  187. struct Mesher {
  188. struct __Q2_4Hull4Side lower__4Hull ;
  189. struct __Q2_4Hull4Side upper__4Hull ;
  190. struct Trimline fakeleft__4Hull ;
  191. struct Trimline fakeright__4Hull ;
  192. struct TrimRegion *PTrimRegion;
  193. struct Backend *backend__6Mesher ;
  194. struct Pool p__6Mesher ;
  195. unsigned int stacksize__6Mesher ;
  196. struct GridTrimVertex **vdata__6Mesher ;
  197. struct GridTrimVertex *last__6Mesher [2];
  198. int itop__6Mesher ;
  199. int lastedge__6Mesher ;
  200. struct TrimRegion OTrimRegion;
  201. };
  202. extern float __glZERO__6Mesher ;
  203. struct Backend;
  204. struct GridVertex;
  205. struct GridTrimVertex;
  206. struct CoveAndTiler;
  207. struct CoveAndTiler {
  208. struct Backend *backend__12CoveAndTiler ;
  209. struct TrimRegion *PTrimRegion;
  210. struct TrimRegion OTrimRegion;
  211. };
  212. extern int __glMAXSTRIPSIZE__12CoveAndTil0 ;
  213. struct Backend;
  214. struct Slicer;
  215. struct Slicer {
  216. struct Backend *backend__12CoveAndTiler ;
  217. struct TrimRegion *PTrimRegion;
  218. struct Mesher OMesher;
  219. struct Backend *backend__6Slicer ;
  220. REAL oneOverDu__6Slicer ;
  221. REAL du__6Slicer ;
  222. REAL dv__6Slicer ;
  223. int isolines__6Slicer ;
  224. };
  225. struct BezierArc;
  226. struct TrimVertexPool;
  227. struct ArcTessellator;
  228. struct ArcTessellator {
  229. struct Pool *pwlarcpool__14ArcTessellator ;
  230. struct TrimVertexPool *trimvertexpool__14ArcTessellator ;
  231. };
  232. extern REAL __glgl_Bernstein__14ArcTessell0 [][24][24];
  233. struct TrimVertexPool;
  234. struct TrimVertexPool {
  235. struct Pool pool__14TrimVertexPool ;
  236. struct TrimVertex **vlist__14TrimVertexPool ;
  237. int nextvlistslot__14TrimVertexPool ;
  238. int vlistsize__14TrimVertexPool ;
  239. };
  240. struct Renderhints;
  241. struct Backend;
  242. struct Quilt;
  243. struct Patchlist;
  244. struct Curvelist;
  245. struct JumpBuffer;
  246. struct Subdivider;
  247. enum __Q2_10Subdivider3dir { down__Q2_10Subdivider3dir = 0, same__Q2_10Subdivider3dir = 1, up__Q2_10Subdivider3dir = 2, none__Q2_10Subdivider3dir = 3} ;
  248. struct Subdivider {
  249. struct Slicer slicer__10Subdivider ;
  250. struct ArcTessellator arctessellator__10Subdivider ;
  251. struct Pool arcpool__10Subdivider ;
  252. struct Pool bezierarcpool__10Subdivider ;
  253. struct Pool pwlarcpool__10Subdivider ;
  254. struct TrimVertexPool trimvertexpool__10Subdivider ;
  255. struct JumpBuffer *jumpbuffer__10Subdivider ;
  256. struct Renderhints *renderhints__10Subdivider ;
  257. struct Backend *backend__10Subdivider ;
  258. struct Bin initialbin__10Subdivider ;
  259. struct Arc *pjarc__10Subdivider ;
  260. int s_index__10Subdivider ;
  261. int t_index__10Subdivider ;
  262. struct Quilt *qlist__10Subdivider ;
  263. struct Flist spbrkpts__10Subdivider ;
  264. struct Flist tpbrkpts__10Subdivider ;
  265. struct Flist smbrkpts__10Subdivider ;
  266. struct Flist tmbrkpts__10Subdivider ;
  267. REAL stepsizes__10Subdivider [4];
  268. int showDegenerate__10Subdivider ;
  269. int isArcTypeBezier__10Subdivider ;
  270. };
  271. struct Renderhints;
  272. struct Renderhints {
  273. REAL display_method__11Renderhints ;
  274. REAL errorchecking__11Renderhints ;
  275. REAL subdivisions__11Renderhints ;
  276. REAL tmp1__11Renderhints ;
  277. int displaydomain__11Renderhints ;
  278. int maxsubdivisions__11Renderhints ;
  279. int wiretris__11Renderhints ;
  280. int wirequads__11Renderhints ;
  281. };
  282. struct GridVertex;
  283. struct GridVertex {
  284. long gparam__10GridVertex [2];
  285. };
  286. struct GridTrimVertex;
  287. struct GridTrimVertex {
  288. char __W3__9PooledObj ;
  289. struct TrimVertex dummyt__14GridTrimVertex ;
  290. struct GridVertex dummyg__14GridTrimVertex ;
  291. struct TrimVertex *t__14GridTrimVertex ;
  292. struct GridVertex *g__14GridTrimVertex ;
  293. };
  294. typedef struct GridTrimVertex *GridTrimVertex_p ;
  295. struct BasicCurveEvaluator;
  296. struct BasicSurfaceEvaluator;
  297. struct Backend;
  298. struct Backend {
  299. struct BasicCurveEvaluator *curveEvaluator__7Backend ;
  300. struct BasicSurfaceEvaluator *surfaceEvaluator__7Backend ;
  301. int wireframetris__7Backend ;
  302. int wireframequads__7Backend ;
  303. int npts__7Backend ;
  304. REAL mesh__7Backend [3][4];
  305. int meshindex__7Backend ;
  306. };
  307. struct Mapdesc;
  308. struct Maplist;
  309. void __gl__dt__4PoolFv (struct Pool *, int );
  310. struct Maplist {
  311. struct Pool mapdescPool__7Maplist ;
  312. struct Mapdesc *maps__7Maplist ;
  313. struct Mapdesc **lastmap__7Maplist ;
  314. struct Backend *backend__7Maplist ;
  315. };
  316. struct Mapdesc *__gllocate__7MaplistFl (struct Maplist *, long );
  317. void __glremove__7MaplistFP7Mapdesc (struct Maplist *, struct Mapdesc *);
  318. enum Curvetype { ct_nurbscurve = 0, ct_pwlcurve = 1, ct_none = 2} ;
  319. struct Property;
  320. struct O_surface;
  321. struct O_nurbssurface;
  322. struct O_trim;
  323. struct O_pwlcurve;
  324. struct O_nurbscurve;
  325. struct O_curve;
  326. struct Quilt;
  327. union __Q2_7O_curve4__C1;
  328. union __Q2_7O_curve4__C1 {
  329. struct O_nurbscurve *o_nurbscurve ;
  330. struct O_pwlcurve *o_pwlcurve ;
  331. };
  332. struct O_curve;
  333. struct O_curve {
  334. char __W3__9PooledObj ;
  335. union __Q2_7O_curve4__C1 curve__7O_curve ;
  336. int curvetype__7O_curve ;
  337. struct O_curve *next__7O_curve ;
  338. struct O_surface *owner__7O_curve ;
  339. int used__7O_curve ;
  340. int save__7O_curve ;
  341. long nuid__7O_curve ;
  342. };
  343. struct O_nurbscurve;
  344. struct O_nurbscurve {
  345. char __W3__9PooledObj ;
  346. struct Quilt *bezier_curves__12O_nurbscurve ;
  347. long type__12O_nurbscurve ;
  348. REAL tesselation__12O_nurbscurve ;
  349. int method__12O_nurbscurve ;
  350. struct O_nurbscurve *next__12O_nurbscurve ;
  351. int used__12O_nurbscurve ;
  352. int save__12O_nurbscurve ;
  353. struct O_curve *owner__12O_nurbscurve ;
  354. };
  355. struct O_pwlcurve;
  356. struct O_pwlcurve {
  357. char __W3__9PooledObj ;
  358. struct TrimVertex *pts__10O_pwlcurve ;
  359. int npts__10O_pwlcurve ;
  360. struct O_pwlcurve *next__10O_pwlcurve ;
  361. int used__10O_pwlcurve ;
  362. int save__10O_pwlcurve ;
  363. struct O_curve *owner__10O_pwlcurve ;
  364. };
  365. struct O_trim;
  366. struct O_trim {
  367. char __W3__9PooledObj ;
  368. struct O_curve *o_curve__6O_trim ;
  369. struct O_trim *next__6O_trim ;
  370. int save__6O_trim ;
  371. };
  372. struct O_nurbssurface;
  373. struct O_nurbssurface {
  374. char __W3__9PooledObj ;
  375. struct Quilt *bezier_patches__14O_nurbssurface ;
  376. long type__14O_nurbssurface ;
  377. struct O_surface *owner__14O_nurbssurface ;
  378. struct O_nurbssurface *next__14O_nurbssurface ;
  379. int save__14O_nurbssurface ;
  380. int used__14O_nurbssurface ;
  381. };
  382. struct O_surface;
  383. struct O_surface {
  384. char __W3__9PooledObj ;
  385. struct O_nurbssurface *o_nurbssurface__9O_surface ;
  386. struct O_trim *o_trim__9O_surface ;
  387. int save__9O_surface ;
  388. long nuid__9O_surface ;
  389. };
  390. struct Property;
  391. struct Property {
  392. char __W3__9PooledObj ;
  393. long type__8Property ;
  394. long tag__8Property ;
  395. REAL value__8Property ;
  396. int save__8Property ;
  397. };
  398. struct NurbsTessellator;
  399. struct Knotvector;
  400. struct Quilt;
  401. struct DisplayList;
  402. struct BasicCurveEvaluator;
  403. struct BasicSurfaceEvaluator;
  404. struct NurbsTessellator;
  405. struct NurbsTessellator {
  406. struct Renderhints renderhints__16NurbsTessellator ;
  407. struct Maplist maplist__16NurbsTessellator ;
  408. struct Backend backend__16NurbsTessellator ;
  409. struct Subdivider subdivider__16NurbsTessellator ;
  410. struct JumpBuffer *jumpbuffer__16NurbsTessellator ;
  411. struct Pool o_pwlcurvePool__16NurbsTessellator ;
  412. struct Pool o_nurbscurvePool__16NurbsTessellator ;
  413. struct Pool o_curvePool__16NurbsTessellator ;
  414. struct Pool o_trimPool__16NurbsTessellator ;
  415. struct Pool o_surfacePool__16NurbsTessellator ;
  416. struct Pool o_nurbssurfacePool__16NurbsTessellator ;
  417. struct Pool propertyPool__16NurbsTessellator ;
  418. struct Pool quiltPool__16NurbsTessellator ;
  419. struct TrimVertexPool extTrimVertexPool__16NurbsTessellator ;
  420. int inSurface__16NurbsTessellator ;
  421. int inCurve__16NurbsTessellator ;
  422. int inTrim__16NurbsTessellator ;
  423. int isCurveModified__16NurbsTessellator ;
  424. int isTrimModified__16NurbsTessellator ;
  425. int isSurfaceModified__16NurbsTessellator ;
  426. int isDataValid__16NurbsTessellator ;
  427. int numTrims__16NurbsTessellator ;
  428. int playBack__16NurbsTessellator ;
  429. struct O_trim **nextTrim__16NurbsTessellator ;
  430. struct O_curve **nextCurve__16NurbsTessellator ;
  431. struct O_nurbscurve **nextNurbscurve__16NurbsTessellator ;
  432. struct O_pwlcurve **nextPwlcurve__16NurbsTessellator ;
  433. struct O_nurbssurface **nextNurbssurface__16NurbsTessellator ;
  434. struct O_surface *currentSurface__16NurbsTessellator ;
  435. struct O_trim *currentTrim__16NurbsTessellator ;
  436. struct O_curve *currentCurve__16NurbsTessellator ;
  437. struct DisplayList *dl__16NurbsTessellator ;
  438. struct __mptr *__vptr__16NurbsTessellator ;
  439. };
  440. extern char *__glNurbsErrors [];
  441. typedef struct __mptr PFVS ;
  442. struct Dlnode;
  443. struct Dlnode {
  444. char __W3__9PooledObj ;
  445. PFVS work__6Dlnode ;
  446. void *arg__6Dlnode ;
  447. PFVS cleanup__6Dlnode ;
  448. struct Dlnode *next__6Dlnode ;
  449. };
  450. struct DisplayList;
  451. struct DisplayList {
  452. struct Dlnode *nodes__11DisplayList ;
  453. struct Pool dlnodePool__11DisplayList ;
  454. struct Dlnode **lastNode__11DisplayList ;
  455. struct NurbsTessellator *nt__11DisplayList ;
  456. };
  457. struct Pool *__gl__ct__4PoolFiT1Pc (struct Pool *, int , int , char *);
  458. extern struct __mptr* __ptbl_vec_____core_displaylist_c_____ct_[];
  459. struct DisplayList *__gl__ct__11DisplayListFP16Nur0 (struct DisplayList *__0this , struct NurbsTessellator *__1_nt )
  460. {
  461. void *__1__Xp00uzigaiaa ;
  462. if (__0this || (__0this = (struct DisplayList *)( (__1__Xp00uzigaiaa = malloc ( (sizeof (struct DisplayList))) ), (__1__Xp00uzigaiaa ?(((void *)__1__Xp00uzigaiaa )):(((void *)__1__Xp00uzigaiaa )))) )){
  463. __gl__ct__4PoolFiT1Pc ( (struct Pool *)(& __0this -> dlnodePool__11DisplayList ), (int )(sizeof (struct Dlnode )), 1 , (char *)"dlnodepool")
  464. ;
  465. __0this -> lastNode__11DisplayList = (& __0this -> nodes__11DisplayList );
  466. __0this -> nt__11DisplayList = __1_nt ;
  467. } return __0this ;
  468. }
  469. void __gl__dt__11DisplayListFv (struct DisplayList *__0this ,
  470. int __0__free )
  471. {
  472. struct Dlnode *__1nextNode ;
  473. if (__0this ){
  474. { ;
  475. for(;__0this -> nodes__11DisplayList ;__0this -> nodes__11DisplayList = __1nextNode ) {
  476. __1nextNode = __0this -> nodes__11DisplayList -> next__6Dlnode ;
  477. if (__0this -> nodes__11DisplayList -> cleanup__6Dlnode .i!= 0 )(__0this -> nodes__11DisplayList -> cleanup__6Dlnode .i< 0 )?((*(((void (*)(struct NurbsTessellator *, void *))__0this -> nodes__11DisplayList -> cleanup__6Dlnode .f))))(
  478. (struct NurbsTessellator *)(((struct NurbsTessellator *)((((char *)__0this -> nt__11DisplayList ))+ __0this -> nodes__11DisplayList -> cleanup__6Dlnode .d))), __0this -> nodes__11DisplayList -> arg__6Dlnode ) :((*(((void (*)(struct NurbsTessellator *,
  479. void *))(__0this -> nt__11DisplayList -> __vptr__16NurbsTessellator [__0this -> nodes__11DisplayList -> cleanup__6Dlnode .i]).f))))( (struct NurbsTessellator *)(((struct NurbsTessellator *)((((char *)__0this -> nt__11DisplayList ))+ (__0this -> nt__11DisplayList -> __vptr__16NurbsTessellator [__0this ->
  480. nodes__11DisplayList -> cleanup__6Dlnode .i]).d))), __0this -> nodes__11DisplayList -> arg__6Dlnode ) ;
  481. }
  482. }
  483. if (__0this ){ __gl__dt__4PoolFv ( (struct Pool *)(& __0this -> dlnodePool__11DisplayList ), 2) ;
  484. if (__0__free & 1)( (((void *)__0this )?( free ( ((void *)__0this )) , 0 ) :( 0 ) )) ;
  485. } } }
  486. void __glplay__11DisplayListFv (struct DisplayList *__0this )
  487. {
  488. { { struct Dlnode *__1node ;
  489. __1node = __0this -> nodes__11DisplayList ;
  490. for(;__1node ;__1node = __1node -> next__6Dlnode )
  491. if (__1node -> work__6Dlnode .i!= 0 )(__1node -> work__6Dlnode .i< 0 )?((*(((void (*)(struct NurbsTessellator *, void *))__1node -> work__6Dlnode .f))))(
  492. (struct NurbsTessellator *)(((struct NurbsTessellator *)((((char *)__0this -> nt__11DisplayList ))+ __1node -> work__6Dlnode .d))), __1node -> arg__6Dlnode ) :((*(((void (*)(struct NurbsTessellator *, void *))(__0this ->
  493. nt__11DisplayList -> __vptr__16NurbsTessellator [__1node -> work__6Dlnode .i]).f))))( (struct NurbsTessellator *)(((struct NurbsTessellator *)((((char *)__0this -> nt__11DisplayList ))+ (__0this -> nt__11DisplayList -> __vptr__16NurbsTessellator [__1node -> work__6Dlnode .i]).d))), __1node -> arg__6Dlnode )
  494. ;
  495. }
  496. }
  497. }
  498. void __glendList__11DisplayListFv (struct DisplayList *__0this )
  499. {
  500. ((*__0this -> lastNode__11DisplayList ))= 0 ;
  501. }
  502. void __glappend__11DisplayListFM16N0 (struct DisplayList *__0this , PFVS __1work , void *__1arg , PFVS __1cleanup )
  503. {
  504. struct Dlnode *__1node ;
  505. struct Dlnode *__0__X14 ;
  506. void *__1__Xbuffer00eohgaiaa ;
  507. struct __mptr __1__X15 ;
  508. struct __mptr __1__X16 ;
  509. __1node = ((__0__X14 = (struct Dlnode *)( (((void *)( (((void )0 )), ( (((struct Pool *)((struct Pool *)(& __0this -> dlnodePool__11DisplayList )))->
  510. freelist__4Pool ?( ( (__1__Xbuffer00eohgaiaa = (((void *)((struct Pool *)((struct Pool *)(& __0this -> dlnodePool__11DisplayList )))-> freelist__4Pool ))), (((struct Pool *)((struct Pool *)(& __0this ->
  511. dlnodePool__11DisplayList )))-> freelist__4Pool = ((struct Pool *)((struct Pool *)(& __0this -> dlnodePool__11DisplayList )))-> freelist__4Pool -> next__6Buffer )) , 0 ) :( ( ((!
  512. ((struct Pool *)((struct Pool *)(& __0this -> dlnodePool__11DisplayList )))-> nextfree__4Pool )?( __glgrow__4PoolFv ( ((struct Pool *)((struct Pool *)(& __0this -> dlnodePool__11DisplayList )))) , 0 )
  513. :( 0 ) ), ( (((struct Pool *)((struct Pool *)(& __0this -> dlnodePool__11DisplayList )))-> nextfree__4Pool -= ((struct Pool *)((struct Pool *)(& __0this ->
  514. dlnodePool__11DisplayList )))-> buffersize__4Pool ), ( (__1__Xbuffer00eohgaiaa = (((void *)(((struct Pool *)((struct Pool *)(& __0this -> dlnodePool__11DisplayList )))-> curblock__4Pool + ((struct Pool *)((struct Pool *)(&
  515. __0this -> dlnodePool__11DisplayList )))-> nextfree__4Pool ))))) ) ) , 0 ) ), (((void *)__1__Xbuffer00eohgaiaa ))) ) ))) )?( (__1__X15 =
  516. __1work ), ( (__1__X16 = __1cleanup ), ( (((struct Dlnode *)__0__X14 )-> work__6Dlnode = __1__X15 ), ( (((struct Dlnode *)__0__X14 )-> arg__6Dlnode = __1arg ),
  517. ( (((struct Dlnode *)__0__X14 )-> cleanup__6Dlnode = __1__X16 ), ((((struct Dlnode *)__0__X14 )))) ) ) ) ) :0 );
  518. ((*__0this -> lastNode__11DisplayList ))= __1node ;
  519. __0this -> lastNode__11DisplayList = (& __1node -> next__6Dlnode );
  520. }
  521. /* the end */