Index: vlib/cg2.c
===================================================================
--- vlib/cg2.c	(revision e225e77aba20391e2188eb15a49190b1d473d368)
+++ vlib/cg2.c	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -1,2 +1,3 @@
+#include "all.h"
 
 /* Character generator table -- 12V by 8H */
Index: vlib/cg2.x
===================================================================
--- vlib/cg2.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
+++ vlib/cg2.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -0,0 +1,13 @@
+#pragma once
+
+#include "stdint.h"
+
+/*
+   =============================================================================
+	cg2.c -- global variables
+   =============================================================================
+*/
+
+extern	int16_t		cg_rows;
+extern	int16_t		cgtable[12][256];
+
Index: vlib/cg3.c
===================================================================
--- vlib/cg3.c	(revision e225e77aba20391e2188eb15a49190b1d473d368)
+++ vlib/cg3.c	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -2,4 +2,6 @@
 /* 14V by 8H */
 /* Generated:  1989-11-16  15:40:14 */
+
+#include "all.h"
 
 /* int16_t	cg_rows = 14; */
Index: vlib/cg3.x
===================================================================
--- vlib/cg3.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
+++ vlib/cg3.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -0,0 +1,12 @@
+#pragma once
+
+#include "stdint.h"
+
+/*
+   =============================================================================
+	cg3.c -- global variables
+   =============================================================================
+*/
+
+extern	int16_t		cg3[14][256];
+
Index: vlib/glcinit.c
===================================================================
--- vlib/glcinit.c	(revision e225e77aba20391e2188eb15a49190b1d473d368)
+++ vlib/glcinit.c	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -59,7 +59,5 @@
 */
 
-#include "stddefs.h"
-#include "hwdefs.h"
-#include "glcdefs.h"
+#include "all.h"
 
 uint16_t	lcdbase;	/* LCD graphics base address */
@@ -328,2 +326,3 @@
 }
 
+
Index: vlib/glcinit.x
===================================================================
--- vlib/glcinit.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
+++ vlib/glcinit.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -0,0 +1,36 @@
+#pragma once
+
+#include "stdint.h"
+
+/*
+   =============================================================================
+	glcinit.c -- global variables
+   =============================================================================
+*/
+
+extern	int8_t		glc_is1[];
+extern	int8_t		glc_is2[];
+extern	uint16_t	lcdbase;
+extern	uint16_t	lcdbit;
+extern	uint16_t	lcdcol;
+extern	uint16_t	lcdctl1;
+extern	uint16_t	lcdctl2;
+extern	uint16_t	lcdcurs;
+extern	uint16_t	lcdrow;
+extern	uint16_t	lcdx;
+extern	uint16_t	lcdy;
+
+/*
+   =============================================================================
+	glcinit.c -- global functions
+   =============================================================================
+*/
+
+extern	uint16_t	GLCcrc(uint16_t row, uint16_t col);
+extern	void		GLCcurs(int16_t crs);
+extern	uint16_t	GLCcxy(uint16_t x, uint16_t y);
+extern	void		GLCdisp(int16_t dsp, int16_t crs, int16_t blk1, int16_t blk2, int16_t blk3);
+extern	void		GLCinit(void);
+extern	void		GLCtext(uint16_t row, uint16_t col, int8_t *s);
+extern	void		GLCwrts(int8_t *s);
+
Index: vlib/lseg.c
===================================================================
--- vlib/lseg.c	(revision e225e77aba20391e2188eb15a49190b1d473d368)
+++ vlib/lseg.c	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -7,5 +7,7 @@
 */
 
-void	(*point)(int16_t x, int16_t y, int16_t pen);
+#include "all.h"
+
+void   (*point)(int16_t x, int16_t y, int16_t pen);
 
 #define	ABS(x)	((x) < 0 ? (-(x)) : (x))
Index: vlib/lseg.x
===================================================================
--- vlib/lseg.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
+++ vlib/lseg.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -0,0 +1,20 @@
+#pragma once
+
+#include "stdint.h"
+
+/*
+   =============================================================================
+	lseg.c -- global variables
+   =============================================================================
+*/
+
+extern	void		(*point)(int16_t x, int16_t y, int16_t pen);
+
+/*
+   =============================================================================
+	lseg.c -- global functions
+   =============================================================================
+*/
+
+extern	void		lseg(int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t t);
+
Index: vlib/vbfill4.c
===================================================================
--- vlib/vbfill4.c	(revision e225e77aba20391e2188eb15a49190b1d473d368)
+++ vlib/vbfill4.c	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -8,4 +8,6 @@
 */
 
+#include "all.h"
+
 static int16_t	fm[] = {	/* fill masks */
 
Index: vlib/vbfill4.x
===================================================================
--- vlib/vbfill4.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
+++ vlib/vbfill4.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -0,0 +1,12 @@
+#pragma once
+
+#include "stdint.h"
+
+/*
+   =============================================================================
+	vbfill4.c -- global functions
+   =============================================================================
+*/
+
+extern	void		vbfill4(uint16_t *obj, int16_t obwidth, int16_t xmin, int16_t ymin, int16_t xmax, int16_t ymax, uint16_t color);
+
Index: vlib/vclrs.c
===================================================================
--- vlib/vclrs.c	(revision e225e77aba20391e2188eb15a49190b1d473d368)
+++ vlib/vclrs.c	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -16,5 +16,5 @@
 */
 
-extern	void	vputc(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t c, uint16_t attrib);
+#include "all.h"
 
 /*
Index: vlib/vclrs.x
===================================================================
--- vlib/vclrs.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
+++ vlib/vclrs.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -0,0 +1,12 @@
+#pragma once
+
+#include "stdint.h"
+
+/*
+   =============================================================================
+	vclrs.c -- global functions
+   =============================================================================
+*/
+
+extern	void		vclrs(uint16_t obase[], int16_t row, int16_t col, int16_t nc, int16_t ch, int16_t atr);
+
Index: vlib/vhinit.c
===================================================================
--- vlib/vhinit.c	(revision e225e77aba20391e2188eb15a49190b1d473d368)
+++ vlib/vhinit.c	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -16,9 +16,5 @@
 #define	FASTCHIP	1	/* non-zero if it's the fast VSDD chip */
 
-#include "hwdefs.h"
-#include "vsdd.h"
-#include "memory.h"
-
-#include "vsddsw.h"
+#include "all.h"
 
 #define	VREG(h,v)	((h<<10)|v)
@@ -100,2 +96,3 @@
 	memcpyw(v_cgtab, cgtable, 256 * cg_rows);
 }
+
Index: vlib/vhinit.x
===================================================================
--- vlib/vhinit.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
+++ vlib/vhinit.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -0,0 +1,25 @@
+#pragma once
+
+#include "stdint.h"
+#include "vsdd.h"
+
+/*
+   =============================================================================
+	vhinit.c -- global variables
+   =============================================================================
+*/
+
+extern	struct	octent	*v_curob;
+extern	int16_t		v_nobj;
+extern	int16_t		v_obpri;
+extern	struct	octent	v_obtab[16];
+extern	int16_t		vr_data[];
+
+/*
+   =============================================================================
+	vhinit.c -- global functions
+   =============================================================================
+*/
+
+extern	void		VHinit(void);
+
Index: vlib/vmput.c
===================================================================
--- vlib/vmput.c	(revision e225e77aba20391e2188eb15a49190b1d473d368)
+++ vlib/vmput.c	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -19,5 +19,5 @@
 */
 
-extern	void	vputc(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t c, uint16_t attrib);
+#include "all.h"
 
 /*
Index: vlib/vmput.x
===================================================================
--- vlib/vmput.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
+++ vlib/vmput.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -0,0 +1,13 @@
+#pragma once
+
+#include "stdint.h"
+
+/*
+   =============================================================================
+	vmput.c -- global functions
+   =============================================================================
+*/
+
+extern	void		vmput(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t ma, int8_t *ms[]);
+extern	void		vmputa(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t *ma[], int8_t *ms[]);
+
Index: vlib/vobjfns.c
===================================================================
--- vlib/vobjfns.c	(revision e225e77aba20391e2188eb15a49190b1d473d368)
+++ vlib/vobjfns.c	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -53,10 +53,5 @@
 */
 
-#include "biosdefs.h"
-#include "graphdef.h"
-#include "hwdefs.h"
-#include "stddefs.h"
-#include "vsdd.h"
-#include "vsddvars.h"
+#include "all.h"
 
 extern	void	vbank(uint16_t b);
@@ -269,2 +264,3 @@
 	}
 }
+
Index: vlib/vobjfns.x
===================================================================
--- vlib/vobjfns.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
+++ vlib/vobjfns.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -0,0 +1,25 @@
+#pragma once
+
+#include "stdint.h"
+
+/*
+   =============================================================================
+	vobjfns.c -- global variables
+   =============================================================================
+*/
+
+extern	uint16_t	vi_ctl;
+extern	int16_t		vi_dis;
+extern	int16_t		wsize;
+
+/*
+   =============================================================================
+	vobjfns.c -- global functions
+   =============================================================================
+*/
+
+extern	void		CpyObj(uint16_t *from, uint16_t *to, uint16_t w, uint16_t h, uint16_t sw);
+extern	void		SelObj(int16_t obj);
+extern	void		SetObj(int16_t obj, int16_t type, int16_t bank, int16_t xpix, int16_t ypix, int16_t x0, int16_t y0, int16_t flags, int16_t pri, uint16_t *base);
+extern	void		SetPri(int16_t obj, int16_t pri);
+
Index: vlib/vputs.c
===================================================================
--- vlib/vputs.c	(revision e225e77aba20391e2188eb15a49190b1d473d368)
+++ vlib/vputs.c	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -12,5 +12,5 @@
 */
 
-#include <stddefs.h>
+#include "all.h"
 
 extern	void	vputc(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t c, uint16_t attrib);
@@ -72,2 +72,3 @@
 	}
 }
+
Index: vlib/vputs.x
===================================================================
--- vlib/vputs.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
+++ vlib/vputs.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -0,0 +1,13 @@
+#pragma once
+
+#include "stdint.h"
+
+/*
+   =============================================================================
+	vputs.c -- global functions
+   =============================================================================
+*/
+
+extern	void		vputs(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t attrib, int8_t *str);
+extern	void		vputsa(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t *attrib, int8_t *str);
+
Index: vlib/vputsv.c
===================================================================
--- vlib/vputsv.c	(revision e225e77aba20391e2188eb15a49190b1d473d368)
+++ vlib/vputsv.c	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -12,5 +12,5 @@
 */
 
-#include "stddefs.h"
+#include "all.h"
 
 extern	void	vputcv(uint16_t *adr, uint16_t row, uint16_t col, uint8_t chr, uint16_t atr, uint16_t cols);
@@ -73,2 +73,3 @@
 	}
 }
+
Index: vlib/vputsv.x
===================================================================
--- vlib/vputsv.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
+++ vlib/vputsv.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -0,0 +1,13 @@
+#pragma once
+
+#include "stdint.h"
+
+/*
+   =============================================================================
+	vputsv.c -- global functions
+   =============================================================================
+*/
+
+extern	void		vputsav(uint16_t *sbase, uint16_t row, uint16_t col, int8_t *str, uint16_t *attrib, uint16_t len);
+extern	void		vputsv(uint16_t *sbase, uint16_t row, uint16_t col, int8_t *str, uint16_t attrib, uint16_t len);
+
Index: vlib/vsetpal.c
===================================================================
--- vlib/vsetpal.c	(revision e225e77aba20391e2188eb15a49190b1d473d368)
+++ vlib/vsetpal.c	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -5,4 +5,6 @@
    =============================================================================
 */
+
+#include "all.h"
 
 #define	PALETTE		((uint16_t *)0x280000L)
Index: vlib/vsetpal.x
===================================================================
--- vlib/vsetpal.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
+++ vlib/vsetpal.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -0,0 +1,21 @@
+#pragma once
+
+#include "stdint.h"
+
+/*
+   =============================================================================
+	vsetpal.c -- global variables
+   =============================================================================
+*/
+
+extern	int16_t		dfltpal[16][3];
+
+/*
+   =============================================================================
+	vsetpal.c -- global functions
+   =============================================================================
+*/
+
+extern	void		vsetpal(uint16_t slot, uint16_t red, uint16_t grn, uint16_t blu);
+extern	void		vsndpal(int16_t pp[16][3]);
+
Index: vlib/vsinit.c
===================================================================
--- vlib/vsinit.c	(revision e225e77aba20391e2188eb15a49190b1d473d368)
+++ vlib/vsinit.c	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -7,9 +7,5 @@
 */
 
-#include "hwdefs.h"
-#include "graphdef.h"
-#include "vsdd.h"
-#include "vsddvars.h"
-#include "memory.h"
+#include "all.h"
 
 /*
@@ -26,2 +22,3 @@
 	v_curob = &v_obtab[0];
 }
+
Index: vlib/vsinit.x
===================================================================
--- vlib/vsinit.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
+++ vlib/vsinit.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -0,0 +1,10 @@
+#pragma once
+
+/*
+   =============================================================================
+	vsinit.c -- global functions
+   =============================================================================
+*/
+
+extern	void		VSinit(void);
+
Index: vlib/vspray4.c
===================================================================
--- vlib/vspray4.c	(revision e225e77aba20391e2188eb15a49190b1d473d368)
+++ vlib/vspray4.c	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -6,6 +6,5 @@
 */
 
-#include "stddefs.h"
-#include "vsddsw.h"
+#include "all.h"
 
 static 	int8_t cl[81];
@@ -62,2 +61,3 @@
 	}
 }
+
Index: vlib/vspray4.x
===================================================================
--- vlib/vspray4.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
+++ vlib/vspray4.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -0,0 +1,12 @@
+#pragma once
+
+#include "stdint.h"
+
+/*
+   =============================================================================
+	vspray4.c -- global functions
+   =============================================================================
+*/
+
+extern	void		vspray4(uint16_t *vobj, int16_t vwid, int16_t fg, int16_t vb, int16_t pitch, int8_t *ml[]);
+
Index: vlib/vtext.c
===================================================================
--- vlib/vtext.c	(revision e225e77aba20391e2188eb15a49190b1d473d368)
+++ vlib/vtext.c	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -7,4 +7,6 @@
    =============================================================================
 */
+
+#include "all.h"
 
 static int16_t	msk[] = { 0xFF00, 0x00FF };
Index: vlib/vtext.x
===================================================================
--- vlib/vtext.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
+++ vlib/vtext.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -0,0 +1,12 @@
+#pragma once
+
+#include "stdint.h"
+
+/*
+   =============================================================================
+	vtext.c -- global functions
+   =============================================================================
+*/
+
+extern	void		vtext(uint16_t *obj, uint16_t nc, uint16_t row, uint16_t col, int8_t *ip);
+
Index: vlib/vwputm.c
===================================================================
--- vlib/vwputm.c	(revision e225e77aba20391e2188eb15a49190b1d473d368)
+++ vlib/vwputm.c	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -16,5 +16,5 @@
 */
 
-#include <vsdd.h>
+#include "all.h"
 
 extern	void	vwputs(int16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str);
@@ -34,2 +34,3 @@
 }
 	
+
Index: vlib/vwputm.x
===================================================================
--- vlib/vwputm.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
+++ vlib/vwputm.x	(revision 39a696bd71d6ae6c71a378daf9b52b4be6f64983)
@@ -0,0 +1,12 @@
+#pragma once
+
+#include "stdint.h"
+
+/*
+   =============================================================================
+	vwputm.c -- global functions
+   =============================================================================
+*/
+
+extern	void		vwputm(uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *ml[]);
+
