ref: a8d4f208d8e94b207c1625fa0008a9f247635dd2
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) { int r; Objsym *sym; for (sym = obj->symbols; sym; sym = sym->next) { r = (*fn)(sym, data); if (r <= 0) return r; } return 1; }