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