filter_mapping.c
final_realms_fluffos_v1/lib/secure/simul_efun/filter_mapping.c · 324 B
From the archive final_realms_fluffos_v1.zip
Download the archive « Back to the archive contents
varargs mapping filter_mapping(mapping map, string func, mixed ob, mixed extra) {
mixed *bing;
mapping ret;
int i, bingsize;
ret = ([ ]);
bing = keys(map);
for (i=0; i < bingsize; i++) {
if(call_other(ob, func, map[bing[i]], extra ))
ret[bing[i]] = map[bing[i]];
}
return ret;
} /* filter_mapping() */