1 #include "c.h"
2 #define I(f) null_##f
3 
I(gen)4 static Node I(gen)(Node p) { return p; }
I(address)5 static void I(address)(Symbol q, Symbol p, long n) {}
I(blockbeg)6 static void I(blockbeg)(Env *e) {}
I(blockend)7 static void I(blockend)(Env *e) {}
I(defaddress)8 static void I(defaddress)(Symbol p) {}
I(defconst)9 static void I(defconst)(int suffix, int size, Value v) {}
I(defstring)10 static void I(defstring)(int len, char *s) {}
I(defsymbol)11 static void I(defsymbol)(Symbol p) {}
I(emit)12 static void I(emit)(Node p) {}
I(export)13 static void I(export)(Symbol p) {}
I(function)14 static void I(function)(Symbol f, Symbol caller[], Symbol callee[], int ncalls) {}
I(global)15 static void I(global)(Symbol p) {}
I(import)16 static void I(import)(Symbol p) {}
I(local)17 static void I(local)(Symbol p) {}
I(progbeg)18 static void I(progbeg)(int argc, char *argv[]) {}
I(progend)19 static void I(progend)(void) {}
I(segment)20 static void I(segment)(int s) {}
I(space)21 static void I(space)(int n) {}
I(stabblock)22 static void I(stabblock)(int brace, int lev, Symbol *p) {}
I(stabend)23 static void I(stabend)(Coordinate *cp, Symbol p, Coordinate **cpp, Symbol *sp, Symbol *stab) {}
I(stabfend)24 static void I(stabfend)(Symbol p, int lineno) {}
I(stabinit)25 static void I(stabinit)(char *file, int argc, char *argv[]) {}
I(stabline)26 static void I(stabline)(Coordinate *cp) {}
I(stabsym)27 static void I(stabsym)(Symbol p) {}
I(stabtype)28 static void I(stabtype)(Symbol p) {}
29 
30 
31 Interface nullIR = {
32 	{1, 1, 0},	/* char */
33 	{2, 2, 0},	/* short */
34 	{4, 4, 0},	/* int */
35 	{8, 8, 1},	/* long */
36 	{8 ,8, 1},	/* long long */
37 	{4, 4, 1},	/* float */
38 	{8, 8, 1},	/* double */
39 	{16,16,1},	/* long double */
40 	{4, 4, 0},	/* T* */
41 	{0, 4, 0},	/* struct */
42 	1,		/* little_endian */
43 	0,		/* mulops_calls */
44 	0,		/* wants_callb */
45 	0,		/* wants_argb */
46 	1,		/* left_to_right */
47 	0,		/* wants_dag */
48 	0,		/* unsigned_char */
49 	I(address),
50 	I(blockbeg),
51 	I(blockend),
52 	I(defaddress),
53 	I(defconst),
54 	I(defstring),
55 	I(defsymbol),
56 	I(emit),
57 	I(export),
58 	I(function),
59 	I(gen),
60 	I(global),
61 	I(import),
62 	I(local),
63 	I(progbeg),
64 	I(progend),
65 	I(segment),
66 	I(space),
67 	I(stabblock),
68 	I(stabend),
69 	I(stabfend),
70 	I(stabinit),
71 	I(stabline),
72 	I(stabsym),
73 	I(stabtype)
74 };
75