Skip to content

Commit

Permalink
move declarations out of emulator.h
Browse files Browse the repository at this point in the history
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
  • Loading branch information
gwenhael-le-moine committed Apr 11, 2024
1 parent 645abec commit c31b6c0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/emu_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ t1_t2_ticks get_t1_t2( void )
int i;

gettimeofday( &tv, &tz );

tv.tv_sec -= systime_offset;

if ( timers[ T1_TIMER ].run ) {
Expand Down
12 changes: 0 additions & 12 deletions src/emulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,25 +296,13 @@ typedef struct saturn_t {

extern bool sigalarm_triggered;

extern int set_t1;

extern long sched_adjtime;
extern long schedule_event;

extern char* wire_name;
extern char* ir_name;

extern device_t device;
extern display_t display;

extern saturn_t saturn;

extern bool device_check;
extern bool port1_is_ram;
extern long port1_mask;
extern bool port2_is_ram;
extern long port2_mask;

extern hpkey_t keyboard[ NB_KEYS ];

extern int annunciators_bits[ NB_ANNUNCIATORS ];
Expand Down
7 changes: 7 additions & 0 deletions src/emulator_for_debugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@

#include "emulator.h"

extern device_t device;

extern int set_t1;

extern long sched_adjtime;
extern long schedule_event;

/**************/
/* emu_init.c */
/**************/
Expand Down
13 changes: 13 additions & 0 deletions src/emulator_inner.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@
#define T1_TIMER 0
/* #define T2_TIMER 1 /\* unused? *\/ */

extern device_t device;

extern int set_t1;

extern long sched_adjtime;
extern long schedule_event;

extern bool device_check;
extern bool port1_is_ram;
extern long port1_mask;
extern bool port2_is_ram;
extern long port2_mask;

extern bool adj_time_pending;

extern int start_fields[ 19 ];
Expand Down

0 comments on commit c31b6c0

Please sign in to comment.