comparison mc.h @ 467:32737bad7489

fix list/tag interference
author kono
date Sat, 30 Jul 2005 16:01:45 +0900
parents d88f08d81bba
children 8370ba6e8557
comparison
equal deleted inserted replaced
466:7c3d8237b625 467:32737bad7489
491 extern int insert_ascend(int p,int e,int eq()); 491 extern int insert_ascend(int p,int e,int eq());
492 492
493 extern void free_nptr(NMTBL *n); 493 extern void free_nptr(NMTBL *n);
494 extern NMTBL *get_nptr(); 494 extern NMTBL *get_nptr();
495 495
496 #if 0 496 #if 1
497 extern int heapsize; 497 extern int heapsize;
498 #define CHECK_HEAP(b) ({int _k=(int)(b);if(_k>heapsize)error(-1);_k;}) 498 #define CHECK_HEAP(b) ({int _k=(int)(b);if(_k>heapsize||_k<0)error(-1);_k;})
499 #else 499 #else
500 #define CHECK_HEAP(b) (b) 500 #define CHECK_HEAP(b) (b)
501 #endif 501 #endif
502 502
503 #define car(e) (heap[(int)(CHECK_HEAP(e))]) 503 #define car(e) (heap[(int)(CHECK_HEAP(e))])