Index: ram/scfield.c
===================================================================
--- ram/scfield.c	(revision 6262b5c7974b08ad57f56d797cf7106c80531276)
+++ ram/scfield.c	(revision b28a12ef97b945387f5b106a616f46d89ccff6b6)
@@ -6,167 +6,7 @@
 */
 
-#include "all.h"
+#include "ram.h"
 
 #define	PCENTER		256L
-
-/* functions defined elsewhere */
-
-extern	void	*memset(void *vp, int8_t c, int16_t n);
-
-extern	void	cxkstd(void);
-extern	void	cykstd(void);
-extern	void	select(void);
-extern	int16_t	oktode(struct s_entry *ep);
-extern	int16_t	stdctp3(void);
-extern	void	stddkey(int16_t k);
-extern	void	nokey(void);
-extern	void	stdmkey(void);
-
-extern	int16_t	et_strn(int16_t n);
-extern	int16_t	ef_strn(int16_t n);
-extern	int16_t	rd_strn(int16_t n);
-extern	int16_t	nd_strn(int16_t n, int16_t k);
-extern	int16_t	et_snbt(int16_t n);
-extern	int16_t	ef_snbt(int16_t n);
-extern	int16_t	rd_snbt(int16_t n);
-extern	int16_t	nd_snbt(int16_t n, int16_t k);
-
-extern	int16_t	et_ioas(int16_t n);
-extern	int16_t	ef_ioas(int16_t n);
-extern	int16_t	rd_ioas(int16_t n);
-extern	int16_t	nd_ioas(int16_t n, int16_t k);
-extern	int16_t	et_tune(int16_t n);
-extern	int16_t	ef_tune(int16_t n);
-extern	int16_t	rd_tune(int16_t n);
-extern	int16_t	nd_tune(int16_t n, int16_t k);
-extern	int16_t	et_tmpo(int16_t n);
-extern	int16_t	ef_tmpo(int16_t n);
-extern	int16_t	rd_tmpo(int16_t n);
-extern	int16_t	nd_tmpo(int16_t n, int16_t k);
-extern	int16_t	et_intp(int16_t n);
-extern	int16_t	ef_intp(int16_t n);
-extern	int16_t	rd_intp(int16_t n);
-extern	int16_t	nd_intp(int16_t n, int16_t k);
-
-extern	int16_t	et_inst(int16_t n);
-extern	int16_t	ef_inst(int16_t n);
-extern	int16_t	rd_inst(int16_t n);
-extern	int16_t	nd_inst(int16_t n, int16_t k);
-extern	int16_t	et_trns(int16_t n);
-extern	int16_t	ef_trns(int16_t n);
-extern	int16_t	rd_trns(int16_t n);
-extern	int16_t	nd_trns(int16_t n, int16_t k);
-extern	int16_t	et_dyn(int16_t n);
-extern	int16_t	ef_dyn(int16_t n);
-extern	int16_t	rd_dyn(int16_t n);
-extern	int16_t	nd_dyn(int16_t n, int16_t k);
-extern	int16_t	et_loc(int16_t n);
-extern	int16_t	ef_loc(int16_t n);
-extern	int16_t	rd_loc(int16_t n);
-extern	int16_t	nd_loc(int16_t n, int16_t k);
-extern	int16_t	et_vel(int16_t n);
-extern	int16_t	ef_vel(int16_t n);
-extern	int16_t	rd_vel(int16_t n);
-extern	int16_t	nd_vel(int16_t n, int16_t k);
-
-extern	int16_t	et_res1(int16_t n);
-extern	int16_t	ef_res1(int16_t n);
-extern	int16_t	rd_res1(int16_t n);
-extern	int16_t	nd_res1(int16_t n, int16_t k);
-extern	int16_t	et_aval(int16_t n);
-extern	int16_t	ef_aval(int16_t n);
-extern	int16_t	rd_aval(int16_t n);
-extern	int16_t	nd_aval(int16_t n, int16_t k);
-extern	int16_t	et_agrp(int16_t n);
-extern	int16_t	ef_agrp(int16_t n);
-extern	int16_t	rd_agrp(int16_t n);
-extern	int16_t	nd_agrp(int16_t n, int16_t k);
-
-extern	int16_t	et_scor(int16_t n);
-extern	int16_t	ef_scor(int16_t n);
-extern	int16_t	rd_scor(int16_t n);
-extern	int16_t	nd_scor(int16_t n, int16_t k);
-
-/* forward references */
-
-int16_t	et_null(int16_t n);
-int16_t	ef_null(int16_t n);
-int16_t	rd_null(int16_t n);
-int16_t	nd_null(int16_t n, int16_t k);
-void	sdcxu(void);
-void	sdcyu(void);
-void	sdxkey(void);
-void	sdmkey(void);
-int16_t	scntfld(int16_t k);
-
-extern	int16_t delnote(void);
-extern	int16_t sc_refr(int32_t t);
-extern	void curset(struct curpak *s);
-extern	void ds_anrs(void);
-extern	void ds_anvl(void);
-extern	void dsgmode(int16_t n);
-extern	void dsgstat(int16_t n);
-extern	void dsgtme(int16_t n);
-extern	void dsvmode(int16_t n);
-extern	void dswin(int16_t n);
-extern	void sdmenu(int16_t n);
-extern	void vtcxupd(void);
-extern	void vtcyupd(void);
-
-/* 
-
-*/
-
-/* variables defined elsewhere */
-
-extern	int16_t	ancmsw;
-extern	int16_t	angroup;
-extern	int16_t	astat;
-extern	int16_t	clkrun;
-extern	int16_t	cmfirst;
-extern	int16_t	cmtype;
-extern	int16_t	curhold;
-extern	int16_t	cxrate;
-extern	int16_t	cxval;
-extern	int16_t	cyrate;
-extern	int16_t	cyval;
-extern	int16_t	hcwval;
-extern	int16_t	insmode;
-extern	int16_t	oldpk;
-extern	int16_t	oldsl;
-extern	int16_t	pkctrl;
-extern	int16_t	recsw;
-extern	int16_t	scmctl;
-extern	int16_t	sdmctl;
-extern	int16_t	sliders;
-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	vtxval;
-extern	int16_t	vtyval;
-
-extern	int32_t	ctime;
-extern	int32_t	t_ins;
-
-extern	int16_t	crate1[];
-extern	int16_t	ehdlist[];
-extern	int16_t	grpmode[];
-extern	int16_t	grpstat[];
-extern	int16_t	grptmap[];
-extern	int16_t	sdmlim[][4];
-extern	int16_t	varmode[8][16];
-
-extern	LPF	(*swpt)[];
-extern	LPF	(*oldsw)[];
-
-extern	struct	selbox	*csbp;
-
-extern	struct	selbox	sdboxes[];
-
-extern	struct	s_entry	*peg;
 
 /* 
