/* A special purpose main */ #include "main.h" #include "hash.h" #include "alloc.h" /* Some globals that PCC needs */ int error_level, anerror; void myexit(int n) { exit(n); } #ifdef _MSVC #define random rand #else /* extern int random(void); -- Weimer: not needed! */ #endif int __mmId; int debugMM; int debug; #pragma interceptCasts(on) #ifndef ITERS #define ITERS 500000 #endif // ITERS int main() { /* Test hash tables */ PHASH h = NewHash(); int i; double clk; int count = 0; int sz; // int *foo, *foo1; /* Add and delete random numbers from the hash table */ printf("inserting...\n"); TIMESTART(clk); for(i=0;i