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