RDF rdf = ns->rdf; RDF_Notification pr = rdf->notifs; RDF_Notification not; if (pr == ns) { rdf->notifs = pr->next; } else { for (not = rdf->notifs; (not != NULL) ; not = not->next) { if (ns == not) { pr->next = not->next; return 0; } pr = not; }
uint16 n = 0; uint16 m = 0; char* next ; RDF r = (RDF) getMem(sizeof(struct RDF_DBStruct)) ; RDFL nrl = (RDFL)getMem(sizeof(struct RDF_ListStruct)); while (*(dataSources + n++)) {} r->translators = (RDFT*)getMem((n) * sizeof(RDFT)); n = 0; while ((next = (char*) *(dataSources + n)) != NULL) { RDFL rl = (RDFL)getMem(sizeof(struct RDF_ListStruct)); r->translators[m] = getTranslator(next); if (r->translators[m] != NULL) { rl->rdf = r; rl->next = r->translators[m]->rdf; r->translators[m]->rdf = rl; m++; } else { freeMem(rl); } n++;
PR_PUBLIC_API(RDF_Error)RDF_DeleteNotifiable (RDF_Notification ns){  RDF rdf = ns->rdf;  RDF_Notification pr = rdf->notifs;  RDF_Notification not;  if (pr == ns) {    rdf->notifs = pr->next;   } else {    for (not = rdf->notifs; (not != NULL) ; not = not->next) {      if (ns == not) {	pr->next = not->next; 	return 0;      }      pr = not;    }  }  freeMem(ns->theEvent);  freeMem(ns);  return 0;}