cc: fix ts_pop() when type is NULL
[neatcc.git] / gen.h
blob2454aebe9ae95b043a005019744338ee8d356400
1 #define SECSIZE (1 << 12)
2 #define MAXTMP (1 << 12)
4 /* basic types */
5 #define BT_SZMASK 0x00ff
6 #define BT_SIGNED 0x0100
7 #define BT_FLOAT 0x0200
8 #define BT_SZ(bt) ((bt) & BT_SZMASK)
10 void o_func_beg(char *name);
11 void o_func_end(void);
12 void o_ret(unsigned bt);
14 void o_num(int n, unsigned bt);
15 void o_local(long addr, unsigned bt);
16 void o_assign(unsigned bt);
17 void o_deref(unsigned bt);
18 void o_arrayderef(unsigned bt);
19 void o_addr(void);
20 void o_symaddr(char *name, unsigned bt);
21 void o_call(int argc, unsigned *bt, unsigned ret_vs);
22 void o_add(void);
23 void o_sub(void);
24 void o_mul(void);
25 void o_shl(void);
26 void o_shr(void);
28 long o_mklocal(int size);
29 long o_arg(int i, unsigned bt);
30 void o_droptmp(int n);
31 void o_tmpswap(void);
32 long o_mklabel(void);
33 void o_jz(long addr);
34 void o_jmp(long addr);
35 long o_jmpstub(void);
36 long o_jzstub(void);
37 void o_filljmp(long addr);
39 void out_init(void);
40 void out_write(int fd);
41 void out_func_beg(char *name);
42 void out_func_end(char *buf, int len);
43 void out_rela(char *name, int off);