mirror of
https://github.com/simh/simh.git
synced 2026-02-08 09:12: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:
@@ -194,9 +194,6 @@ InstHistory *hst = NULL; /* instruction history *
|
||||
int32 rtc_pie = 0; /* rtc pulse ie */
|
||||
int32 rtc_tps = 60; /* rtc ticks/sec */
|
||||
|
||||
extern int32 sim_int_char;
|
||||
extern uint32 sim_brk_types, sim_brk_dflt, sim_brk_summ; /* breakpoint info */
|
||||
|
||||
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);
|
||||
t_stat cpu_reset (DEVICE *dptr);
|
||||
@@ -359,7 +356,6 @@ static const uint32 int_vec[32] = {
|
||||
|
||||
t_stat sim_instr (void)
|
||||
{
|
||||
extern int32 sim_interval;
|
||||
uint32 inst, tinst, pa, save_P, save_mode;
|
||||
t_stat reason, tr;
|
||||
|
||||
@@ -1667,8 +1663,6 @@ char *cptr = (char *) desc;
|
||||
t_stat r;
|
||||
t_value sim_eval;
|
||||
InstHistory *h;
|
||||
extern t_stat fprint_sym (FILE *ofile, t_addr addr, t_value *val,
|
||||
UNIT *uptr, int32 sw);
|
||||
static char *cyc[] = { " ", " ", "INT", "TRP" };
|
||||
|
||||
if (hst_lnt == 0) /* enabled? */
|
||||
|
||||
@@ -86,8 +86,6 @@ extern int32 rtc_pie;
|
||||
extern int32 stop_invins, stop_invdev, stop_inviop;
|
||||
extern uint32 mon_usr_trap;
|
||||
extern UNIT cpu_unit;
|
||||
extern FILE *sim_log;
|
||||
extern DEVICE *sim_devices[];
|
||||
|
||||
t_stat chan_reset (DEVICE *dptr);
|
||||
t_stat chan_read (int32 ch);
|
||||
|
||||
@@ -217,7 +217,6 @@ t_stat sim_load (FILE *fileref, char *cptr, char *fnam, int flag)
|
||||
{
|
||||
int32 i, wd, buf[8];
|
||||
int32 ldr = 1;
|
||||
extern int32 sim_switches;
|
||||
extern uint32 P;
|
||||
|
||||
if ((*cptr != 0) || (flag != 0))
|
||||
|
||||
Reference in New Issue
Block a user