ref: 0bdc41f75c7f007037d8e5ee20e0ecad88bc5558
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->head; sym; sym = sym->next) { r = (*fn)(sym, data); if (r <= 0) return r; } return 1; }