summaryrefslogtreecommitdiff
path: root/utils/5coff/auxi.h
blob: e9907523acaf83a956bc55b21546ce917c929557 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#define	COFFCVT
#define	Sym	Symx
#include "../5l/l.h"
#undef Sym
#include	<mach.h>

/*
 * auxi.c
 */
extern	Symx *hash[NHASH];
Symx	*lookupsym(char*, int);
void	beginsym(void);
void	endsym(void);
void	newsym(int, char*, long, int);

extern	long	autosize;
extern	Prog *firstp, *textp, *curtext, *lastp, *etextp;

/*
 * coff.c
 */
void	coffhdr(void);
void	coffsym(void);
void	cofflc(void);
void	endsym(void);

/*
 * 5coff.c
 */
void	cflush(void);
void	lput(long);
void	cput(int);
void	hputl(int);
void	lputl(long);
long	entryvalue(void);
void	diag(char*, ...);
extern	long	HEADR;			/* length of header */
extern	long	INITDAT;		/* data location */
extern	long	INITRND;		/* data round above text location */
extern	long	INITTEXT;		/* text location */
extern	long	INITENTRY;		/* entry point */
extern	long	textsize;
extern	long	datsize;
extern	long	bsssize;
extern	int	cout;
extern	int	thumb;