loadmap.c - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
loadmap.c (287B)
---
1 #include <stdio.h>
2
3 #include <scc/mach.h>
4
5 #include "libmach.h"
6
7 #include "elf/fun.h"
8 #include "coff32/fun.h"
9
10 static Map *(*ops[NFORMATS])(Obj *, FILE *) = {
11 [COFF32] = coff32loadmap,
12 [ELF] = elfloadmap,
13 };
14
15 Map *
16 loadmap(Obj *obj, FILE *fp)
17 {
18 return (*ops[objfmt(obj)])(obj, fp);
19 }