occurlfunctions.c#243 struct OCTriplestore* store = NULL; #255 store = &ocglobalstate.rc.daprc; #256 triple = store->triples; #259 for(i=0;i<store->ntriples;i++,triple++) { ocrc.c#219 sorttriplestore(struct OCTriplestore* store) #224 if(store == NULL) return; /* nothing to sort */ #225 if(store->ntriples <= 1) return; /* nothing to sort */ #227 storedump("initial:",store->triples,store->ntriples); #229 sorted = (struct OCTriple*)malloc(sizeof(struct OCTriple)*store->ntriples); #236 while(nsorted < store->ntriples) { #239 for(largest=0;largest<store->ntriples;largest++) { #240 if(store->triples[largest].key[0] != '\0') break; #242 OCASSERT(store->triples[largest].key[0] != '\0'); #243 for(i=0;i<store->ntriples;i++) { #244 if(store->triples[i].key[0] != '\0') { /* avoid empty slots */ #245 int lexorder = strcmp(store->triples[i].host,store->triples[largest].host); #246 int leni = strlen(store->triples[i].host); #247 int lenlarge = strlen(store->triples[largest].host); #255 OCASSERT(store->triples[largest].key[0] != 0); #256 sorted[nsorted] = store->triples[largest]; #257 store->triples[largest].key[0] = '\0'; /* kill entry */ #263 memcpy((void*)store->triples,(void*)sorted,sizeof(struct OCTriple)*nsorted); #267 storedump("final .rc order:",store->triples,store->ntriples);
HyperKWIC - Version 7.20DA executed at 11:37 on 27 Oct 2017 | Polyhedron Solutions - INTERNAL USE | COMMERCIAL (Any O/S) SN 4AKIed