Skip to content

Commit

Permalink
omit include path (bios, lio)
Browse files Browse the repository at this point in the history
  • Loading branch information
yui authored and nmlgc committed Nov 10, 2015
1 parent f968b63 commit 2d699da
Show file tree
Hide file tree
Showing 27 changed files with 94 additions and 65 deletions.
2 changes: 0 additions & 2 deletions android-project/jni/src/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ NP2_PATH := $(LOCAL_PATH)/../np2
LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(SDL_PATH)/include \
$(LOCAL_PATH) \
$(NP2_PATH) \
$(NP2_PATH)/bios \
$(NP2_PATH)/cbus \
$(NP2_PATH)/common \
$(NP2_PATH)/embed \
Expand All @@ -23,7 +22,6 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(SDL_PATH)/include \
$(NP2_PATH)/generic \
$(NP2_PATH)/i286c \
$(NP2_PATH)/io \
$(NP2_PATH)/lio \
$(NP2_PATH)/mem \
$(NP2_PATH)/sdl2 \
$(NP2_PATH)/sound \
Expand Down
41 changes: 23 additions & 18 deletions bios/bios.c
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
#include "compiler.h"
#include "strres.h"
#include "dosio.h"
#include "cpucore.h"
#include "pccore.h"
#include "iocore.h"
#include "bios.h"
#include "biosmem.h"
#include "sxsibios.h"
#include "lio.h"
#include "vram.h"
#include "fddfile.h"
#include "fdd_mtr.h"
#include "fdfmt.h"
#include "keytable.res"
#include "itfrom.res"
#include "startup.res"
#include "biosfd80.res"
/**
* @file bios.c
* @brief Implementation of BIOS
*/

#include "compiler.h"
#include "bios.h"
#include "biosmem.h"
#include "sxsibios.h"
#include "strres.h"
#include "cpucore.h"
#include "pccore.h"
#include "iocore.h"
#include "lio/lio.h"
#include "vram.h"
#include "fddfile.h"
#include "fdd_mtr.h"
#include "fdfmt.h"
#include "dosio.h"
#include "keytable.res"
#include "itfrom.res"
#include "startup.res"
#include "biosfd80.res"


#define BIOS_SIMULATE
Expand Down
8 changes: 8 additions & 0 deletions bios/bios.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* @file bios.h
* @brief Interface of BIOS
*/

#pragma once

#include "cpumem.h"

enum {
BIOS_SEG = 0xfd80,
Expand Down
6 changes: 6 additions & 0 deletions bios/biosmem.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @file biosmem.h
* @brief Defines of BIOS memory
*/

#pragma once

enum {
MEMB_EXPMMSZ = 0x00401,
Expand Down
12 changes: 8 additions & 4 deletions bios/sxsibios.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
#include "compiler.h"
/**
* @file sxsibios.c
* @brief Implementation of SxSI BIOS
*/

#include "compiler.h"
#include "sxsibios.h"
#include "biosmem.h"
#include "cpucore.h"
#include "pccore.h"
#include "bios.h"
#include "biosmem.h"
#include "sxsibios.h"
#include "scsicmd.h"
#include "sxsi.h"
#include "timing.h"
Expand Down
7 changes: 6 additions & 1 deletion bios/sxsibios.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @file sxsibios.h
* @brief Interface of SxSI BIOS
*/

#pragma once

enum {
SXSIBIOS_SASI = 0,
Expand Down Expand Up @@ -27,4 +33,3 @@ void np2sysp_scsidev(const void *arg1, long arg2);
#ifdef __cplusplus
}
#endif

2 changes: 2 additions & 0 deletions i286c/cpumem.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

#pragma once

#ifndef MEMCALL
#define MEMCALL
#endif
Expand Down
2 changes: 1 addition & 1 deletion i286c/i286c_mn.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "i286c.h"
#include "pccore.h"
#include "iocore.h"
#include "bios.h"
#include "bios/bios.h"
#include "i286c.mcr"
#if defined(ENABLE_TRAP)
#include "trap/inttrap.h"
Expand Down
2 changes: 1 addition & 1 deletion i286c/v30patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "v30patch.h"
#include "pccore.h"
#include "iocore.h"
#include "bios.h"
#include "bios/bios.h"
#include "dmav30.h"
#include "i286c.mcr"
#if defined(ENABLE_TRAP)
Expand Down
2 changes: 2 additions & 0 deletions i286x/cpumem.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

#pragma once

#ifndef MEMCALL
#define MEMCALL
#endif
Expand Down
2 changes: 1 addition & 1 deletion i286x/i286x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "i286x.mcr"
#include "i286xea.mcr"
#include "v30patch.h"
#include "bios.h"
#include "bios/bios.h"
#include "dmax86.h"
#if defined(ENABLE_TRAP)
#include "trap/inttrap.h"
Expand Down
2 changes: 1 addition & 1 deletion i286x/v30patch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "i286xrep.h"
#include "i286xcts.h"
#include "pccore.h"
#include "bios.h"
#include "bios/bios.h"
#include "iocore.h"
#include "i286x.mcr"
#include "i286xea.mcr"
Expand Down
2 changes: 1 addition & 1 deletion i386c/ia32/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "pccore.h"
#include "iocore.h"
#include "dmax86.h"
#include "bios.h"
#include "bios/bios.h"
#include "break.h"


Expand Down
2 changes: 1 addition & 1 deletion io/np2sysp.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "cpucore.h"
#include "pccore.h"
#include "iocore.h"
#include "sxsibios.h"
#include "bios/sxsibios.h"
#if defined(SUPPORT_HOSTDRV)
#include "hostdrv.h"
#endif
Expand Down
2 changes: 1 addition & 1 deletion lio/gput1.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "cpucore.h"
#include "pccore.h"
#include "iocore.h"
#include "bios.h"
#include "bios/bios.h"
#include "lio.h"
#include "vram.h"

Expand Down
4 changes: 2 additions & 2 deletions lio/gscreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#include "cpucore.h"
#include "pccore.h"
#include "iocore.h"
#include "bios.h"
#include "biosmem.h"
#include "bios/bios.h"
#include "bios/biosmem.h"
#include "lio.h"
#include "vram.h"

Expand Down
26 changes: 15 additions & 11 deletions lio/lio.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
#include "compiler.h"
#include "cpucore.h"
#include "pccore.h"
#include "iocore.h"
#include "gdc_sub.h"
#include "bios.h"
#include "biosmem.h"
#include "vram.h"
#include "lio.h"
#include "lio.res"

/**
* @file lio.c
* @brief Implementation of LIO
*/

#include "compiler.h"
#include "lio.h"
#include "cpucore.h"
#include "pccore.h"
#include "iocore.h"
#include "gdc_sub.h"
#include "bios/bios.h"
#include "bios/biosmem.h"
#include "vram.h"
#include "lio.res"

void lio_initialize(void) {

Expand Down
6 changes: 6 additions & 0 deletions lio/lio.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @file lio.h
* @brief Interface of LIO
*/

#pragma once

enum {
LIO_SEGMENT = 0xf990,
Expand Down
4 changes: 2 additions & 2 deletions pccore.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#include "pc9861k.h"
#include "mpu98ii.h"
#include "amd98.h"
#include "bios.h"
#include "biosmem.h"
#include "bios/bios.h"
#include "bios/biosmem.h"
#include "vram.h"
#include "scrndraw.h"
#include "dispsync.h"
Expand Down
4 changes: 0 additions & 4 deletions sdl2/MacOSX/np2sdl2.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1735,7 +1735,6 @@
./np2sdl2,
..,
../..,
../../bios,
../../cbus,
../../common,
../../embed,
Expand All @@ -1746,7 +1745,6 @@
../../generic,
../../i286c,
../../io,
../../lio,
../../mem,
../../sound,
../../vram,
Expand All @@ -1773,7 +1771,6 @@
./np2sdl2,
..,
../..,
../../bios,
../../cbus,
../../common,
../../embed,
Expand All @@ -1784,7 +1781,6 @@
../../generic,
../../i286c,
../../io,
../../lio,
../../mem,
../../sound,
../../vram,
Expand Down
4 changes: 0 additions & 4 deletions sdl2/iOS/np2sdl2.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,6 @@
.,
..,
../..,
../../bios,
../../cbus,
../../common,
../../embed,
Expand All @@ -1711,7 +1710,6 @@
../../generic,
../../i286c,
../../io,
../../lio,
../../mem,
../../sound,
../../vram,
Expand Down Expand Up @@ -1741,7 +1739,6 @@
.,
..,
../..,
../../bios,
../../cbus,
../../common,
../../embed,
Expand All @@ -1752,7 +1749,6 @@
../../generic,
../../i286c,
../../io,
../../lio,
../../mem,
../../sound,
../../vram,
Expand Down
8 changes: 4 additions & 4 deletions sdl2/win32/np2sdl2.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\;.\;..\..\;..\..\bios;..\..\cbus;..\..\common;..\..\embed;..\..\embed\menu;..\..\embed\menubase;..\..\fdd;..\..\font;..\..\generic;..\..\i286c;..\..\io;..\..\lio;..\..\mem;..\..\sound;..\..\vram;..\..\zlib"
AdditionalIncludeDirectories="..\;.\;..\..\;..\..\cbus;..\..\common;..\..\embed;..\..\embed\menu;..\..\embed\menubase;..\..\fdd;..\..\font;..\..\generic;..\..\i286c;..\..\io;..\..\mem;..\..\sound;..\..\vram;..\..\zlib"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
MinimalRebuild="true"
BasicRuntimeChecks="3"
Expand Down Expand Up @@ -118,7 +118,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="..\;.\;..\..\;..\..\bios;..\..\cbus;..\..\common;..\..\embed;..\..\embed\menu;..\..\embed\menubase;..\..\fdd;..\..\font;..\..\generic;..\..\i286c;..\..\io;..\..\lio;..\..\mem;..\..\sound;..\..\vram;..\..\zlib"
AdditionalIncludeDirectories="..\;.\;..\..\;..\..\cbus;..\..\common;..\..\embed;..\..\embed\menu;..\..\embed\menubase;..\..\fdd;..\..\font;..\..\generic;..\..\i286c;..\..\io;..\..\mem;..\..\sound;..\..\vram;..\..\zlib"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
MinimalRebuild="true"
BasicRuntimeChecks="3"
Expand Down Expand Up @@ -193,7 +193,7 @@
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories="..\;.\;..\..\;..\..\bios;..\..\cbus;..\..\common;..\..\embed;..\..\embed\menu;..\..\embed\menubase;..\..\fdd;..\..\font;..\..\generic;..\..\i286c;..\..\io;..\..\lio;..\..\mem;..\..\sound;..\..\vram;..\..\zlib"
AdditionalIncludeDirectories="..\;.\;..\..\;..\..\cbus;..\..\common;..\..\embed;..\..\embed\menu;..\..\embed\menubase;..\..\fdd;..\..\font;..\..\generic;..\..\i286c;..\..\io;..\..\mem;..\..\sound;..\..\vram;..\..\zlib"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
Expand Down Expand Up @@ -270,7 +270,7 @@
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories="..\;.\;..\..\;..\..\bios;..\..\cbus;..\..\common;..\..\embed;..\..\embed\menu;..\..\embed\menubase;..\..\fdd;..\..\font;..\..\generic;..\..\i286c;..\..\io;..\..\lio;..\..\mem;..\..\sound;..\..\vram;..\..\zlib"
AdditionalIncludeDirectories="..\;.\;..\..\;..\..\cbus;..\..\common;..\..\embed;..\..\embed\menu;..\..\embed\menubase;..\..\fdd;..\..\font;..\..\generic;..\..\i286c;..\..\io;..\..\mem;..\..\sound;..\..\vram;..\..\zlib"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS"
RuntimeLibrary="2"
EnableFunctionLevelLinking="true"
Expand Down
2 changes: 1 addition & 1 deletion statsave.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "mpu98ii.h"
#include "board14.h"
#include "amd98.h"
#include "bios.h"
#include "bios/bios.h"
#include "vram.h"
#include "palettes.h"
#include "maketext.h"
Expand Down
2 changes: 1 addition & 1 deletion win9x/debuguty/viewcmn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "cpucore.h"
#include "pccore.h"
#include "iocore.h"
#include "bios.h"
#include "bios/bios.h"


const char viewcmn_hex[16] = {
Expand Down
1 change: 0 additions & 1 deletion win9x/np2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
#include "iocore.h"
#include "pc9861k.h"
#include "mpu98ii.h"
#include "bios.h"
#include "scrndraw.h"
#include "sound.h"
#include "beep.h"
Expand Down
2 changes: 1 addition & 1 deletion win9x/np21base.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<AdditionalIncludeDirectories>..\win9x;..\win9x\dialog;..\win9x\mountdir;..\win9x\debuguty;..\;..\common;..\i386c;..\i386c\ia32;..\i386c\ia32\instructions;..\i386c\ia32\instructions\fpu;..\mem;..\io;..\cbus;..\bios;..\lio;..\vram;..\sound;..\fdd;..\font;..\generic;..\zlib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>..\win9x;..\win9x\dialog;..\win9x\mountdir;..\win9x\debuguty;..\;..\common;..\i386c;..\i386c\ia32;..\i386c\ia32\instructions;..\i386c\ia32\instructions\fpu;..\mem;..\io;..\cbus;..\vram;..\sound;..\fdd;..\font;..\generic;..\zlib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4819;4996</DisableSpecificWarnings>
<PreprocessorDefinitions>WIN32;_WINDOWS;SUPPORT_PC9821;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
Expand Down
Loading

0 comments on commit 2d699da

Please sign in to comment.