#endif
extern int classsize[];
+extern int typearray[];
+extern int typearray2[];
jmp_buf error_handler;
int instructioncount;
#include "dmalloc.h"
#endif
+int instanceof(struct ___Object___ *ptr, int type) {
+ int i=ptr->type;
+ do {
+ if (i==type)
+ return 1;
+ i=typearray[i];
+ } while(i!=-1);
+ i=ptr->type;
+ if (i>NUMCLASSES) {
+ do {
+ if (i==type)
+ return 1;
+ i=typearray2[i-NUMCLASSES];
+ } while(i!=-1);
+ }
+ return 0;
+}
+
void exithandler(int sig, siginfo_t *info, void * uap) {
exit(0);
}