ref: e12a1007fa3b9df81e20951314a1fc93f0707382
dir: /src/libmach/setindex.c/
#include <stdio.h> #include <scc/mach.h> #include "libmach.h" extern setidxfun_t setidxv[]; long setindex(int type, long nsyms, Objsymdef *head, FILE *fp) { int fmt; setidxfun_t fn; fmt = FORMAT(type); if (fmt >= NFORMATS) return -1; fn = setidxv[fmt]; return (*fn)(type, nsyms, head, fp); }