Index: ram/adfield.c
===================================================================
--- ram/adfield.c	(revision 6262b5c7974b08ad57f56d797cf7106c80531276)
+++ ram/adfield.c	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
@@ -6,130 +6,5 @@
 */
 
-#include "all.h"
-
-extern	void	select(void);
-extern	int16_t	whatbox(void);
-extern	void	nokey(void);
-extern	int16_t	nonf(int16_t k);
-extern	int16_t	stdctp4(void);
-extern	void	cxkstd(void);
-extern	void	cykstd(void);
-extern	void	stdmkey(void);
-extern	void	stddkey(int16_t k);
-
-extern	int16_t	et_null(int16_t n);
-extern	int16_t	ef_null(int16_t n);
-extern	int16_t	rd_null(int16_t n);
-extern	int16_t	nd_null(int16_t n, int16_t k);
-extern	int16_t	et_atab(int16_t n);
-extern	int16_t	ef_atab(int16_t n);
-extern	int16_t	rd_atab(int16_t nn);
-extern	int16_t	nd_atab(int16_t nn, int16_t k);
-extern	int16_t	et_aopt(int16_t n);
-extern	int16_t	ef_aopt(int16_t n);
-extern	int16_t	rd_aopt(int16_t nn);
-extern	int16_t	nd_aopt(int16_t nn, int16_t k);
-extern	int16_t	et_avgr(int16_t nn);
-extern	int16_t	ef_avgr(int16_t nn);
-extern	int16_t	rd_avgr(int16_t nn);
-extern	int16_t	nd_avgr(int16_t nn, int16_t k);
-extern	int16_t	et_accn(int16_t n);
-extern	int16_t	ef_accn(int16_t n);
-extern	int16_t	rd_accn(int16_t nn);
-extern	int16_t	nd_accn(int16_t nn, int16_t k);
-extern	int16_t	et_agpt(int16_t n);
-extern	int16_t	ef_agpt(int16_t n);
-extern	int16_t	rd_agpt(int16_t nn);
-extern	int16_t	nd_agpt(int16_t nn, int16_t k);
-extern	int16_t	et_agch(int16_t n);
-extern	int16_t	ef_agch(int16_t n);
-extern	int16_t	rd_agch(int16_t nn);
-extern	int16_t	nd_agch(int16_t nn, int16_t k);
-extern	int16_t	et_ains(int16_t n);
-extern	int16_t	ef_ains(int16_t n);
-extern	int16_t	rd_ains(int16_t nn);
-extern	int16_t	nd_ains(int16_t nn, int16_t k);
-extern	int16_t	et_adyn(int16_t n);
-extern	int16_t	ef_adyn(int16_t n);
-extern	int16_t	rd_adyn(int16_t nn);
-extern	int16_t	nd_adyn(int16_t nn, int16_t k);
-extern	int16_t	et_atun(int16_t n);
-extern	int16_t	ef_atun(int16_t n);
-extern	int16_t	rd_atun(int16_t nn);
-extern	int16_t	nd_atun(int16_t nn, int16_t k);
-extern	int16_t	et_aprg(int16_t n);
-extern	int16_t	ef_aprg(int16_t n);
-extern	int16_t	rd_aprg(int16_t nn);
-extern	int16_t	nd_aprg(int16_t nn, int16_t k);
-extern	int16_t	et_aint(int16_t n);
-extern	int16_t	ef_aint(int16_t n);
-extern	int16_t	rd_aint(int16_t nn);
-extern	int16_t	nd_aint(int16_t nn, int16_t k);
-extern	int16_t	et_arat(int16_t n);
-extern	int16_t	ef_arat(int16_t n);
-extern	int16_t	rd_arat(int16_t nn);
-extern	int16_t	nd_arat(int16_t nn, int16_t k);
-extern	int16_t	et_adep(int16_t n);
-extern	int16_t	ef_adep(int16_t n);
-extern	int16_t	rd_adep(int16_t nn);
-extern	int16_t	nd_adep(int16_t nn, int16_t k);
-
-extern	void	vcputsv(int16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str, int16_t pitch);
-
-extern	void	*memset(void *vp, int8_t c, int16_t n);
-
-extern	int16_t	adnamsw;
-extern	int16_t	asgmod;
-extern	int16_t	astat;
-extern	int16_t	cmtype;
-extern	int16_t	cmfirst;
-extern	int16_t	curasg;
-extern	int16_t	curhold;
-extern	int16_t	curmop;
-extern	int16_t	curslim;
-extern	int16_t	cxval;
-extern	int16_t	cyval;
-extern	int16_t	cxrate;
-extern	int16_t	cyrate;
-extern	int16_t	hcwval;
-extern	int16_t	hitbox;
-extern	int16_t	hitcx;
-extern	int16_t	hitcy;
-extern	int16_t	stccol;
-extern	int16_t	stcrow;
-extern	int16_t	thcwval;
-extern	int16_t	tvcwval;
-extern	int16_t	vcwval;
-extern	int16_t	vtccol;
-extern	int16_t	vtcrow;
-extern	int16_t	vtwcol;
-extern	int16_t	vtwrow;
-extern	int16_t	vtxval;
-extern	int16_t	vtyval;
-
-extern	int16_t	crate1[];
-
-extern	uint16_t *asgob;
-
-extern	struct	asgent	asgtab[];
-
-extern	struct	selbox	adboxes[];
-extern	struct	selbox	*csbp;
-
-extern	int16_t	grp2prt[12][2];
-extern	int16_t	key2grp[];
-extern	int16_t	mctlnum[];
-extern	int16_t	vce2grp[];
-
-/* forward references */
-
-void	adcxupd(void);
-void	adcyupd(void);
-void	ad_xkey(void);
-
-extern	void adswin(int16_t n);
-extern	void curset(struct curpak *s);
-extern	void drawk2g(int16_t grp);
-extern	void modasg(void);
+#include "ram.h"
 
 /* 
