temp=(struct ___Object___ *)node->key;
if(temp->failedstatus==1 && temp->hashcode==currobj->hashcode){
if(temp!=currobj){
- RuntimeHashget(flagptr->objectset, (int)temp, (int *) &ptr);
- RuntimeHashremove(flagptr->objectset, (int)temp, (int) ptr);//remove from wrapper
+ ObjectHashremove(flagptr->objectset, (int)temp);//remove from wrapper
//delete the fields that wont be removed by the GC.
if(temp->exitfses!=NULL) RUNFREE(temp->exitfses);
if(temp->otds!=NULL) RUNFREE(temp->otds);
}
else{
//remove from wrapper
- RuntimeHashget(flagptr->objectset, (int)temp, (int *) &ptr);
- RuntimeHashremove(flagptr->objectset, (int)temp, (int) ptr);
+ ObjectHashremove(flagptr->objectset, (int)temp);
goto nextwrapper;
}
}
while(flagptr!=NULL) {
struct parameterwrapper *next;
struct ___Object___ * tag=ptr->___tags___;
- RuntimeHashget(flagptr->objectset, (int) ptr, (int *) &next);
- RuntimeHashremove(flagptr->objectset, (int)ptr, (int) next);
+ int FIXME;
+ ObjectHashget(flagptr->objectset, (int) ptr, (int *) &next, &FIXME);
+ ObjectHashremove(flagptr->objectset, (int)ptr);
flagptr=next;
}
//test if the predicate member is true
struct parameterwrapper * paramwrapper = objectqueues[currpred->type];
while(paramwrapper!=NULL){
- struct RuntimeIterator * it = allocateRuntimeIterator(paramwrapper->objectset->listhead);
+ struct ObjectIterator * it = allocateObjectIterator(paramwrapper->objectset->listhead);
do{
- struct ___Object___ * obj = (struct ___Object___ *)Runkey(it);
+ struct ___Object___ * obj = (struct ___Object___ *)Objkey(it);
printf("obj type : %i\n", obj->type);
if(obj->type == currpred->type){
//test the predicate
//only if good
goto enqueuetask;
}
- Runnext(it);
- }while(RunhasNext(it));
+ Objnext(it);
+ }while(ObjhasNext(it));
paramwrapper=paramwrapper->next;
}
printf("not the good predicate");
struct taskdescriptor * task=parameter->task;
- RuntimeHashadd(parameter->objectset, (int) ptr, (int) prevptr);//this add the object to parameterwrapper
+ ObjectHashadd(parameter->objectset, (int) ptr, (int) prevptr, 0);//this add the object to parameterwrapper
/* Add enqueued object to parameter vector */
taskpointerarray[parameter->slot]=ptr;
if(obj->failedstatus==1){
struct ___Object___ *temp=NULL;
struct parameterwrapper * ptr;
- struct RuntimeNode * node = pw->objectset->listhead;
+ struct ObjectNode * node = pw->objectset->listhead;
while(node!=NULL){
temp=(struct ___Object___ *)node->key;
if(temp->failedstatus==1 && temp->hashcode==obj->hashcode){
else
#endif
{
- if (!RuntimeHashcontainskey(pw->objectset, (int) parameter)) {
+ if (!ObjectHashcontainskey(pw->objectset, (int) parameter)) {
RUNFREE(currtpd->parameterArray);
RUNFREE(currtpd);
goto newtask;
void processobject(struct parameterwrapper *parameter, int index, struct parameterdescriptor *pd, int *iteratorcount, int * statusarray, int numparams) {
int i;
int tagcount=0;
- struct RuntimeHash * objectset=((struct parameterwrapper *)pd->queue)->objectset;
+ struct ObjectHash * objectset=((struct parameterwrapper *)pd->queue)->objectset;
parameter->iterators[*iteratorcount].istag=0;
parameter->iterators[*iteratorcount].slot=index;
struct parameterwrapper ** ptr=&objectqueues[param->type];
param->queue=parameter;
- parameter->objectset=allocateRuntimeHash(10);
+ parameter->objectset=allocateObjectHash(10);
parameter->numberofterms=param->numberterms;
parameter->intarray=param->intarray;
parameter->numbertags=param->numbertags;
} else if (it->numtags>0) {
it->tagobjindex=0;
} else {
- RuntimeHashiterator(it->objectset, &it->it);
+ ObjectHashiterator(it->objectset, &it->it);
}
}
if (objptr->type!=OBJECTARRAYTYPE) {
if (it->tagobjindex>0)
return 0;
- if (!RuntimeHashcontainskey(it->objectset, (int) objptr))
+ if (!ObjectHashcontainskey(it->objectset, (int) objptr))
return 0;
for(i=1;i<it->numtags;i++) {
struct ___TagDescriptor___ *tag2=objectarray[it->tagbindings[i]];
int i;
for(tagindex=it->tagobjindex;tagindex<ao->___cachedCode___;tagindex++) {
struct ___Object___ *objptr=ARRAYGET(ao, struct ___Object___*, tagindex);
- if (!RuntimeHashcontainskey(it->objectset, (int) objptr))
+ if (!ObjectHashcontainskey(it->objectset, (int) objptr))
continue;
for(i=1;i<it->numtags;i++) {
struct ___TagDescriptor___ *tag2=objectarray[it->tagbindings[i]];
return 0;
}
} else {
- return RunhasNext(&it->it);
+ return ObjhasNext(&it->it);
}
}
}
} else {
/* Iterate object */
- objectarray[it->slot]=(void *)Runkey(&it->it);
- Runnext(&it->it);
+ objectarray[it->slot]=(void *)Objkey(&it->it);
+ Objnext(&it->it);
}
}