/* dict helper functions */
Dict_t *agdtopen(Agraph_t * g, Dtdisc_t * disc, Dtmethod_t * method);
void agdtdisc(Agraph_t * g, Dict_t * dict, Dtdisc_t * disc);
-long agdtdelete(Agraph_t * g, Dict_t * dict, void *obj);
+int agdtdelete(Agraph_t * g, Dict_t * dict, void *obj);
int agdtclose(Agraph_t * g, Dict_t * dict);
void *agdictobjmem(Dict_t * dict, void * p, size_t size,
Dtdisc_t * disc);
return d;
}
-long agdtdelete(Agraph_t * g, Dict_t * dict, void *obj)
+int agdtdelete(Agraph_t * g, Dict_t * dict, void *obj)
{
Ag_dictop_G = g;
- return (long) dtdelete(dict, obj);
+ return dtdelete(dict, obj) != NULL;
}
int agobjfinalize(void * obj)