mirror of
https://github.com/simh/simh.git
synced 2026-02-23 23:53:10 +00:00
Migrating scp and library global variables to be declared as extern in the appropriate library include file and remove repetitive declarations in referencing modules.
This commit is contained in:
@@ -379,13 +379,6 @@ int32 hst_p = 0; /* history pointer */
|
||||
int32 hst_lnt = 0; /* history length */
|
||||
InstHistory *hst = NULL; /* instruction history */
|
||||
|
||||
extern int32 sim_int_char;
|
||||
extern int32 sim_interval;
|
||||
extern uint32 sim_brk_types, sim_brk_dflt, sim_brk_summ; /* breakpoint info */
|
||||
extern t_bool sim_idle_enab;
|
||||
extern DEVICE *sim_devices[];
|
||||
extern FILE *sim_log;
|
||||
|
||||
t_bool build_dev_tab (void);
|
||||
t_stat cpu_ex (t_value *vptr, t_addr addr, UNIT *uptr, int32 sw);
|
||||
t_stat cpu_dep (t_value val, t_addr addr, UNIT *uptr, int32 sw);
|
||||
@@ -2321,8 +2314,6 @@ char *cptr = (char *) desc;
|
||||
t_value sim_eval[2];
|
||||
t_stat r;
|
||||
InstHistory *h;
|
||||
extern t_stat fprint_sym (FILE *ofile, t_addr addr, t_value *val,
|
||||
UNIT *uptr, int32 sw);
|
||||
|
||||
if (hst_lnt == 0) /* enabled? */
|
||||
return SCPE_NOFNC;
|
||||
|
||||
@@ -327,9 +327,6 @@
|
||||
extern int32 M[];
|
||||
extern int32 int_hwre[API_HLVL+1];
|
||||
extern UNIT cpu_unit;
|
||||
extern int32 sim_switches;
|
||||
extern int32 sim_is_running;
|
||||
extern FILE *sim_deb;
|
||||
|
||||
int32 dtsa = 0; /* status A */
|
||||
int32 dtsb = 0; /* status B */
|
||||
|
||||
@@ -127,7 +127,6 @@
|
||||
extern int32 M[];
|
||||
extern int32 int_hwre[API_HLVL+1];
|
||||
extern UNIT cpu_unit;
|
||||
extern FILE *sim_deb;
|
||||
|
||||
int32 mt_cu = 0; /* command/unit */
|
||||
int32 mt_sta = 0; /* status register */
|
||||
|
||||
@@ -85,8 +85,6 @@
|
||||
|
||||
extern int32 M[];
|
||||
extern int32 int_hwre[API_HLVL+1], PC, ASW;
|
||||
extern int32 sim_switches;
|
||||
extern int32 sim_is_running;
|
||||
extern UNIT cpu_unit;
|
||||
|
||||
int32 clk_state = 0;
|
||||
@@ -862,7 +860,6 @@ t_stat ptr_boot (int32 unitno, DEVICE *dptr)
|
||||
{
|
||||
size_t i;
|
||||
int32 mask, wd;
|
||||
extern int32 sim_switches;
|
||||
|
||||
#if defined (PDP7)
|
||||
if (sim_switches & SWMASK ('H')) /* hardware RIM load? */
|
||||
|
||||
@@ -345,8 +345,6 @@ return SCPE_OK;
|
||||
|
||||
t_stat sim_load (FILE *fileref, char *cptr, char *fnam, int flag)
|
||||
{
|
||||
extern int32 sim_switches;
|
||||
|
||||
if (flag != 0)
|
||||
return SCPE_NOFNC;
|
||||
if (sim_switches & SWMASK ('S')) /* RIM format? */
|
||||
|
||||
Reference in New Issue
Block a user