Skip to content

Commit

Permalink
More simplification of includes
Browse files Browse the repository at this point in the history
  • Loading branch information
rhargreaves committed Sep 7, 2024
1 parent 927ebe3 commit a4e1cc7
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 399 deletions.
2 changes: 0 additions & 2 deletions src/scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
#include "midi_receiver.h"
#include "comm/comm_megawifi.h"
#include "comm/comm_demo.h"
#include "sys.h"
#include "types.h"

#define MAX_TICK_HANDLERS 3
#define MAX_FRAME_HANDLERS 6
Expand Down
2 changes: 1 addition & 1 deletion src/scheduler.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once
#include "types.h"
#include "genesis.h"

typedef void(HandlerFunc)(void);

Expand Down
2 changes: 1 addition & 1 deletion src/settings.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once
#include "types.h"
#include "genesis.h"

bool settings_is_megawifi_rom(void);
bool settings_debug_load(void);
Expand Down
3 changes: 0 additions & 3 deletions src/synth.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#include "synth.h"
#include "bits.h"
#include "memory.h"
#include "z80_ctrl.h"
#include "ym2612.h"
#include "debug.h"

static Global global = { .lfoEnable = 1, .lfoFrequency = 0, .specialMode = false };
Expand Down
2 changes: 1 addition & 1 deletion src/synth.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once
#include "types.h"
#include "genesis.h"

#define MAX_FM_OPERATORS 4
#define MAX_FM_CHANS 6
Expand Down
2 changes: 0 additions & 2 deletions src/sys_wraps.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#include "sys_wraps.h"
#include "types.h"
#include "vdp.h"

#ifndef UNIT_TESTS
extern void __real_SYS_disableInts(void);
Expand Down
3 changes: 3 additions & 0 deletions src/sys_wraps.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#pragma once
#include "genesis.h"

#ifndef UNIT_TESTS
void __wrap_SYS_disableInts(void);
void __wrap_SYS_enableInts(void);
Expand Down
Loading

0 comments on commit a4e1cc7

Please sign in to comment.