30 void*
operator new(
size_t sz) {
31 void* m = my_Tcl_Alloc(sz);
34 void operator delete(
void* m) {
35 my_Tcl_Free((
char*)m);
37 void*
operator new [] (
size_t sz) {
38 void* m = my_Tcl_AttemptAlloc(sz);
42 void operator delete [] (
void* m) {
43 my_Tcl_Free((
char*)m);
51 inline void Init() { ListSize = 0; }
52 inline void Clear() { ListSize = 0; }
64 return Squares[index];
70 for (
uint i=0; i < ListSize; i++) {
71 if (Squares[i] == sq) {
return true; }
81 if (index != ListSize) {
82 Squares[index] = Squares[ListSize];
86 #endif // SCID_SQLIST_H
bool Contains(squareT sq)
const uint MAX_SQUARELIST