Ensure all header files can be included (in any order) after stdafx.h. (PR #866)

This commit is contained in:
Andrea 2020-11-11 21:15:27 +00:00 committed by GitHub
parent 9cc49af0dc
commit 01ad5d1882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
64 changed files with 105 additions and 52 deletions

View File

@ -1,3 +1,5 @@
#pragma once
/*
* mc6821.h - MC6821 emulation for the 1571 disk drives with DD3.
*

View File

@ -26,7 +26,6 @@
#include "StdAfx.h"
#include <stdio.h>
#include "AY8910.h"
#include "Applewin.h" // For g_fh

View File

@ -1,5 +1,4 @@
#ifndef AY8910_H
#define AY8910_H
#pragma once
#define MAX_8910 4
@ -87,5 +86,3 @@ private:
// Vars shared between all AY's
static double m_fCurrentCLK_AY8910;
};
#endif

View File

@ -86,9 +86,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "CPU.h"
#include "Applewin.h"
#include "CardManager.h"
#include "CPU.h"
#include "Frame.h"
#include "Memory.h"
#include "Mockingboard.h"

View File

@ -1,5 +1,7 @@
#pragma once
#include "Common.h"
struct regsrec
{
BYTE a; // accumulator

View File

@ -29,8 +29,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "Applewin.h"
#include "CardManager.h"
#include "Applewin.h"
#include "Disk.h"
#include "MouseInterface.h"

View File

@ -2,6 +2,7 @@
#include "Card.h"
#include "Disk2CardManager.h"
#include "Common.h"
class CardManager
{

View File

@ -23,6 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "About.h"
#include "../Applewin.h"
#include "../Frame.h"
#include "../resource/resource.h"

View File

@ -1 +1,3 @@
#pragma once
bool AboutDlg(void);

View File

@ -1,5 +1,7 @@
#pragma once
#include "Common.h"
class CConfigNeedingRestart;
__interface IPropertySheet

View File

@ -22,14 +22,14 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "StdAfx.h"
#include "../Common.h"
#include "PageAdvanced.h"
#include "PropertySheetHelper.h"
#include "../Common.h"
#include "../ParallelPrinter.h"
#include "../Registry.h"
#include "../SaveState.h"
#include "../resource/resource.h"
#include "PageAdvanced.h"
#include "PropertySheetHelper.h"
CPageAdvanced* CPageAdvanced::ms_this = 0; // reinit'd in ctor

View File

@ -1,7 +1,9 @@
#pragma once
#include "IPropertySheetPage.h"
#include "PropertySheetDefs.h"
#include "IPropertySheetPage.h"
#include "Common.h"
class CPropertySheetHelper;
class CPageAdvanced : private IPropertySheetPage

View File

@ -23,14 +23,15 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "PageConfig.h"
#include "PropertySheetHelper.h"
#include "../Applewin.h"
#include "../Frame.h"
#include "../Registry.h"
#include "../SerialComms.h"
#include "../Video.h"
#include "../resource/resource.h"
#include "PageConfig.h"
#include "PropertySheetHelper.h"
CPageConfig* CPageConfig::ms_this = 0; // reinit'd in ctor

View File

@ -3,6 +3,8 @@
#include "IPropertySheetPage.h"
#include "PropertySheetDefs.h"
#include "PageConfigTfe.h"
#include "Common.h"
class CPropertySheetHelper;
class CPageConfig : private IPropertySheetPage

View File

@ -23,12 +23,13 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "PageConfigTfe.h"
#include "../Common.h"
#include "../Registry.h"
#include "../resource/resource.h"
#include "../Tfe/Tfe.h"
#include "../Tfe/Tfesupp.h"
#include "PageConfigTfe.h"
CPageConfigTfe* CPageConfigTfe::ms_this = 0; // reinit'd in ctor

View File

@ -23,14 +23,15 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "PageDisk.h"
#include "PropertySheetHelper.h"
#include "../Applewin.h"
#include "../CardManager.h"
#include "../Disk.h" // Drive_e, Disk_Status_e
#include "../Frame.h"
#include "../Registry.h"
#include "../resource/resource.h"
#include "PageDisk.h"
#include "PropertySheetHelper.h"
CPageDisk* CPageDisk::ms_this = 0; // reinit'd in ctor

View File

@ -22,14 +22,15 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "StdAfx.h"
#include "PageInput.h"
#include "PropertySheetHelper.h"
#include "../SaveState_Structs_common.h"
#include "../Common.h"
#include "../Keyboard.h"
#include "../Registry.h"
#include "../resource/resource.h"
#include "PageInput.h"
#include "PropertySheetHelper.h"
CPageInput* CPageInput::ms_this = 0; // reinit'd in ctor

View File

@ -22,16 +22,17 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "StdAfx.h"
#include "PageSound.h"
#include "PropertySheetHelper.h"
#include "../SaveState_Structs_common.h"
#include "../Common.h"
#include "../CardManager.h"
#include "../Mockingboard.h"
#include "../Registry.h"
#include "../Speaker.h"
#include "../resource/resource.h"
#include "PageSound.h"
#include "PropertySheetHelper.h"
CPageSound* CPageSound::ms_this = 0; // reinit'd in ctor

View File

@ -2,6 +2,8 @@
#include "IPropertySheetPage.h"
#include "PropertySheetDefs.h"
#include "Card.h"
class CPropertySheetHelper;
class CPageSound : private IPropertySheetPage

View File

@ -29,10 +29,11 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "PropertySheet.h"
#include "../Applewin.h"
#include "../Frame.h"
#include "../resource/resource.h"
#include "PropertySheet.h"
void CPropertySheet::Init(void)
{

View File

@ -23,6 +23,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "PropertySheetHelper.h"
#include "IPropertySheet.h"
#include "../Applewin.h" // g_nAppMode, g_uScrollLockToggle, sg_PropertySheet
#include "../CardManager.h"
#include "../Disk.h"
@ -30,8 +33,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "../Log.h"
#include "../Registry.h"
#include "../SaveState.h"
#include "IPropertySheet.h"
#include "PropertySheetHelper.h"
/*
Config causing AfterClose msgs:

View File

@ -33,12 +33,13 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//=============================================================================
//#define STRICT
#define DIRECTINPUT_VERSION 0x0800
#include "DirectInput.h"
#include "SoundCore.h" // SAFE_RELEASE()
#include "Log.h"
#include "DirectInput.h"
#include "Common.h"
#define DIRECTINPUT_VERSION 0x0800
#include <dinput.h>
extern bool g_bDisableDirectInput; // currently in AppleWin.h

View File

@ -30,11 +30,12 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "Disk.h"
#include "SaveState_Structs_v1.h"
#include "Applewin.h"
#include "CPU.h"
#include "Disk.h"
#include "DiskImage.h"
#include "Frame.h"
#include "Log.h"

View File

@ -29,10 +29,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "Disk2CardManager.h"
#include "Applewin.h"
#include "CardManager.h"
#include "Disk.h"
#include "Disk2CardManager.h"
bool Disk2CardManager::IsConditionForFullSpeed(void)
{

View File

@ -44,6 +44,7 @@ Writes the following: (in 1 continuous write operation)
#include "StdAfx.h"
#include "DiskFormatTrack.h"
#include "Disk.h"
#include "Log.h"
#include "YamlHelper.h"

View File

@ -23,6 +23,8 @@ along with AppleWin; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "DiskLog.h"
class FormatTrack // Monitor for formatting of track
{
public:

View File

@ -28,8 +28,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "Common.h"
#include "DiskImage.h"
#include "Common.h"
#include "DiskImageHelper.h"

View File

@ -28,6 +28,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "DiskImageHelper.h"
#include "Common.h"
#include "zlib.h"
@ -35,7 +37,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "CPU.h"
#include "DiskImage.h"
#include "DiskImageHelper.h"
#include "Log.h"
#include "Memory.h"

View File

@ -1,6 +1,7 @@
#pragma once
#include "DiskDefs.h"
#include "DiskImage.h"
#include "zip.h"
#define GZ_SUFFIX ".gz"

View File

@ -1,3 +1,5 @@
#pragma once
#define LOG_DISK_ENABLED 0 // Master enable
#define LOG_DISK_TRACKS 1

View File

@ -27,15 +27,14 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "StdAfx.h"
#include <sys/stat.h>
#include "Frame.h"
#include "Applewin.h"
#include "CardManager.h"
#include "CPU.h"
#include "Disk.h"
#include "DiskImage.h"
#include "Harddisk.h"
#include "Frame.h"
#include "Keyboard.h"
#include "Log.h"
#include "Memory.h"

View File

@ -28,13 +28,13 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "Harddisk.h"
#include "Applewin.h"
#include "CardManager.h"
#include "CPU.h"
#include "DiskImage.h" // ImageError_e, Disk_Status_e
#include "DiskImageHelper.h"
#include "Frame.h"
#include "Harddisk.h"
#include "Memory.h"
#include "Registry.h"
#include "SaveState.h"

View File

@ -23,6 +23,8 @@ along with AppleWin; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "DiskImage.h"
enum HardDrive_e
{
HARDDISK_1 = 0,

View File

@ -39,6 +39,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "Joystick.h"
#include "Applewin.h"
#include "CPU.h"
#include "Memory.h"

View File

@ -1,5 +1,6 @@
#pragma once
#include "Common.h"
enum JOYNUM {JN_JOYSTICK0=0, JN_JOYSTICK1};
enum JOY0CHOICE {J0C_DISABLED=0, J0C_JOYSTICK1, J0C_KEYBD_CURSORS, J0C_KEYBD_NUMPAD, J0C_MOUSE, J0C_MAX};

View File

@ -28,9 +28,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "Keyboard.h"
#include "Applewin.h"
#include "Frame.h"
#include "Keyboard.h"
#include "Pravets.h"
#include "Tape.h"
#include "YamlHelper.h"

View File

@ -28,9 +28,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "LanguageCard.h"
#include "Applewin.h"
#include "CPU.h" // GH#700
#include "LanguageCard.h"
#include "Log.h"
#include "Memory.h"
#include "YamlHelper.h"

View File

@ -28,6 +28,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "Log.h"
FILE* g_fh = NULL;
//---------------------------------------------------------------------------

View File

@ -30,6 +30,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "Memory.h"
#include "Applewin.h"
#include "CardManager.h"
#include "CPU.h"
@ -40,7 +41,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "Keyboard.h"
#include "LanguageCard.h"
#include "Log.h"
#include "Memory.h"
#include "Mockingboard.h"
#include "MouseInterface.h"
#include "Video.h"

View File

@ -1,5 +1,7 @@
#pragma once
#include "Common.h"
// Memory Flag
#define MF_80STORE 0x00000001
#define MF_ALTZP 0x00000002

View File

@ -77,6 +77,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "Mockingboard.h"
#include "SaveState_Structs_v1.h"
#include "Applewin.h"
@ -84,7 +85,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "CPU.h"
#include "Log.h"
#include "Memory.h"
#include "Mockingboard.h"
#include "SoundCore.h"
#include "SynchronousEventManager.h"
#include "YamlHelper.h"

View File

@ -41,6 +41,8 @@ Etc.
#include "StdAfx.h"
#include "MouseInterface.h"
#include "SaveState_Structs_common.h"
#include "Common.h"
@ -50,7 +52,6 @@ Etc.
#include "Frame.h" // FrameSetCursorPosByMousePos()
#include "Log.h"
#include "Memory.h"
#include "MouseInterface.h"
#include "Video.h"
#include "NTSC.h" // NTSC_GetCyclesUntilVBlank()
#include "YamlHelper.h"

View File

@ -1,3 +1,5 @@
#pragma once
#include "6821.h"
#include "Common.h"
#include "Card.h"

View File

@ -21,6 +21,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
// Includes
#include "StdAfx.h"
#include "NTSC.h"
#include "Applewin.h"
#include "CPU.h" // CpuGetCyclesThisVideoFrame()
#include "Frame.h"
@ -28,7 +29,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "Video.h" // g_pFramebufferbits
#include "RGBMonitor.h"
#include "NTSC.h"
#include "NTSC_CharSet.h"

View File

@ -1,3 +1,5 @@
#pragma once
// Globals (Public)
extern uint16_t g_nVideoClockVert;
extern uint16_t g_nVideoClockHorz;

View File

@ -20,11 +20,11 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "StdAfx.h"
#include "NTSC_CharSet.h"
#include "Applewin.h"
#include "../resource/resource.h"
#include "Video.h"
#include "NTSC_CharSet.h"
unsigned char csbits_enhanced2e[2][256][8]; // Enhanced //e (2732 4K video ROM)
static unsigned char csbits_2e_pal[2][256][8]; // PAL Original or Enhanced //e (2764 8K video ROM - low 4K) via rocker switch under keyboard

View File

@ -28,10 +28,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "ParallelPrinter.h"
#include "Applewin.h"
#include "Frame.h" // g_hFrameWindow
#include "Memory.h"
#include "ParallelPrinter.h"
#include "Registry.h"
#include "YamlHelper.h"

View File

@ -28,6 +28,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "Pravets.h"
#include "Applewin.h"
#include "Frame.h"
#include "Keyboard.h"

View File

@ -2,11 +2,11 @@
#include "StdAfx.h"
#include "RGBMonitor.h"
#include "Frame.h"
#include "Memory.h" // MemGetMainPtr() MemGetAuxPtr()
#include "Video.h"
#include "Card.h"
#include "RGBMonitor.h"
#include "YamlHelper.h"

View File

@ -1,3 +1,7 @@
#pragma once
#include "Video.h"
// Handling of RGB videocards
enum RGB_Videocard_e

View File

@ -28,6 +28,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "Registry.h"
extern std::string g_sConfigFile;
namespace _ini {

View File

@ -32,9 +32,9 @@
*/
#include "StdAfx.h"
#include "SAM.h"
#include "Applewin.h"
#include "Memory.h"
#include "SAM.h"
#include "Speaker.h"
//

View File

@ -28,6 +28,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "SaveState.h"
#include "YamlHelper.h"
#include "Applewin.h"

View File

@ -35,12 +35,12 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "SerialComms.h"
#include "Applewin.h"
#include "CPU.h"
#include "Frame.h"
#include "Log.h"
#include "Memory.h"
#include "SerialComms.h"
#include "YamlHelper.h"
#include "../resource/resource.h"

View File

@ -28,10 +28,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "SoundCore.h"
#include "Applewin.h"
#include "Frame.h"
#include "Log.h"
#include "SoundCore.h"
#include "Speaker.h"
//-----------------------------------------------------------------------------

View File

@ -28,13 +28,13 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "Speaker.h"
#include "Applewin.h"
#include "CPU.h"
#include "Frame.h"
#include "Log.h"
#include "Memory.h"
#include "SoundCore.h"
#include "Speaker.h"
#include "Video.h" // VideoRedrawScreen()
#include "YamlHelper.h"
#include "Riff.h"

View File

@ -1,8 +1,9 @@
#include "StdAfx.h"
#include "Speech.h"
#ifdef USE_SPEECH_API
#include <sapi.h>
#include "Speech.h"
CSpeech::~CSpeech(void)
{

View File

@ -1,3 +1,5 @@
#pragma once
struct ISpVoice;
class CSpeech

View File

@ -41,8 +41,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "Applewin.h"
#include "SynchronousEventManager.h"
#include "Applewin.h"
void SynchronousEventManager::Insert(SyncEvent* pNewEvent)
{

View File

@ -31,6 +31,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "Tape.h"
#include "Applewin.h"
#include "Keyboard.h"
#include "Memory.h"

View File

@ -28,6 +28,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "Video.h"
#include "Applewin.h"
#include "CPU.h"
#include "Disk.h" // DiskUpdateDriveState()
@ -36,7 +37,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "Log.h"
#include "Memory.h"
#include "Registry.h"
#include "Video.h"
#include "NTSC.h"
#include "RGBMonitor.h"

View File

@ -23,8 +23,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "StdAfx.h"
#include "Log.h"
#include "YamlHelper.h"
#include "Log.h"
int YamlHelper::InitParser(const char* pPathname)
{

View File

@ -15,10 +15,10 @@
#include "StdAfx.h"
#include "z80emu.h"
#include "Applewin.h"
#include "CPU.h"
#include "Memory.h"
#include "z80emu.h"
// Variaveis
static int g_uCPMZ80Slot = 0;

View File

@ -1,3 +1,5 @@
#pragma once
/* Emulador do computador TK3000 //e (Microdigital)
* por Fábio Belavenuto - Copyright (C) 2004
*