ref: c75d39d84fcaf779903f1e76c1ffebccac2de3cc
dir: /src/libmach/objtraverse.c/
#include <stdio.h> #include <scc/mach.h> #include "libmach.h" int objtraverse(Obj *obj, int (*fn)(Symbol *, void *), void *data) { Symbol *sym; for (sym = obj->head; sym; sym = sym->next) { if (!(*fn)(sym, data)) return 0; } return 1; }