summaryrefslogtreecommitdiff
path: root/utils/5coff/auxi.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/5coff/auxi.h')
-rw-r--r--utils/5coff/auxi.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/utils/5coff/auxi.h b/utils/5coff/auxi.h
new file mode 100644
index 00000000..e9907523
--- /dev/null
+++ b/utils/5coff/auxi.h
@@ -0,0 +1,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;