Skip to content

Commit

Permalink
standard beginning of all source files ...
Browse files Browse the repository at this point in the history
... according to comments in impexp.h.
  • Loading branch information
Fish-Git committed Mar 8, 2018
1 parent a0b70fd commit 771dcca
Show file tree
Hide file tree
Showing 66 changed files with 67 additions and 356 deletions.
5 changes: 0 additions & 5 deletions archlvl.c
Expand Up @@ -7,13 +7,8 @@

#include "hstdinc.h"

#if !defined(_ARCHLVL_C_)
#define _ARCHLVL_C_
#endif

#if !defined(_HENGINE_DLL_)
#define _HENGINE_DLL_
#endif

#include "hercules.h"
#include "devtype.h"
Expand Down
7 changes: 1 addition & 6 deletions assist.c
Expand Up @@ -20,13 +20,8 @@

#include "hstdinc.h"

#if !defined(_HENGINE_DLL_)
#define _HENGINE_DLL_
#endif

#if !defined(_ASSIST_C_)
#define _ASSIST_C_
#endif
#define _HENGINE_DLL_

#include "hercules.h"
#include "opcode.h"
Expand Down
5 changes: 0 additions & 5 deletions bldcfg.c
Expand Up @@ -36,13 +36,8 @@

#include "hstdinc.h"

#ifndef _BLDCFG_C_
#define _BLDCFG_C_
#endif

#ifndef _HENGINE_DLL_
#define _HENGINE_DLL_
#endif

#include "hercules.h"
#include "devtype.h"
Expand Down
1 change: 1 addition & 0 deletions cckddasd.c
Expand Up @@ -16,6 +16,7 @@

#define _CCKDDASD_C_
#define _HDASD_DLL_

#include "hercules.h"
#include "devtype.h"
#include "opcode.h"
Expand Down
7 changes: 1 addition & 6 deletions chsc.c
Expand Up @@ -15,13 +15,8 @@

#include "hstdinc.h"

#if !defined(_HENGINE_DLL_)
#define _HENGINE_DLL_
#endif

#if !defined(_CHSC_C_)
#define _CHSC_C_
#endif
#define _HENGINE_DLL_

#include "hercules.h"
#include "opcode.h"
Expand Down
13 changes: 5 additions & 8 deletions clock.c
Expand Up @@ -55,20 +55,18 @@

DISABLE_GCC_WARNING( "-Wunused-function" )

#if !defined(_HENGINE_DLL_)
#define _CLOCK_C_
#define _HENGINE_DLL_
#endif

#include "hercules.h"
#include "opcode.h"
#include "inline.h"
#include "sr.h"

#if !defined(_CLOCK_C_)
#define _CLOCK_C_

#include "clock.h"

#ifndef COMPILE_THIS_ONLY_ONCE
#define COMPILE_THIS_ONLY_ONCE


/*----------------------------------------------------------------------------*/
/* host_ETOD - Primary high-resolution clock fetch and conversion */
Expand Down Expand Up @@ -1073,8 +1071,7 @@ int clock_hresume(void *file)
return 0;
}


#endif
#endif // COMPILE_THIS_ONLY_ONCE


#if defined(FEATURE_INTERVAL_TIMER)
Expand Down
5 changes: 0 additions & 5 deletions cmdtab.c
Expand Up @@ -11,13 +11,8 @@

#include "hstdinc.h"

#ifndef _CMDTAB_C_
#define _CMDTAB_C_
#endif

#ifndef _HENGINE_DLL_
#define _HENGINE_DLL_
#endif

#include "hercules.h"
#include "history.h"
Expand Down
3 changes: 1 addition & 2 deletions cmpsc_2012.c
Expand Up @@ -44,9 +44,8 @@

DISABLE_GCC_WARNING( "-Wunused-function" )

#if !defined(_HENGINE_DLL_)
#define _CMPSC_C_
#define _HENGINE_DLL_
#endif

#if !defined( NOT_HERC ) // (building Hercules?)
#include "hercules.h"
Expand Down
7 changes: 1 addition & 6 deletions cmpscdbg.c
Expand Up @@ -7,13 +7,8 @@

#include "hstdinc.h" // (MUST be first #include in EVERY source file)

#if !defined(_HENGINE_DLL_)
#define _HENGINE_DLL_
#endif

#if !defined(_CMPSCDBG_C_)
#define _CMPSCDBG_C_
#endif
#define _HENGINE_DLL_

#if !defined( NOT_HERC ) // (building Hercules?)
#include "hercules.h"
Expand Down
7 changes: 1 addition & 6 deletions cmpscdct.c
Expand Up @@ -7,13 +7,8 @@

#include "hstdinc.h" // (MUST be first #include in EVERY source file)

#if !defined(_HENGINE_DLL_)
#define _HENGINE_DLL_
#endif

#if !defined(_CMPSCDCT_C_)
#define _CMPSCDCT_C_
#endif
#define _HENGINE_DLL_

#if !defined( NOT_HERC ) // (building Hercules?)
#include "hercules.h"
Expand Down
7 changes: 1 addition & 6 deletions cmpscget.c
Expand Up @@ -7,13 +7,8 @@

#include "hstdinc.h" // (MUST be first #include in EVERY source file)

#if !defined(_HENGINE_DLL_)
#define _HENGINE_DLL_
#endif

#if !defined(_CMPSCGET_C_)
#define _CMPSCGET_C_
#endif
#define _HENGINE_DLL_

#if !defined( NOT_HERC ) // (building Hercules?)
#include "hercules.h"
Expand Down
7 changes: 1 addition & 6 deletions cmpscmem.c
Expand Up @@ -7,13 +7,8 @@

#include "hstdinc.h" // (MUST be first #include in EVERY source file)

#if !defined(_HENGINE_DLL_)
#define _HENGINE_DLL_
#endif

#if !defined(_CMPSCMEM_C_)
#define _CMPSCMEM_C_
#endif
#define _HENGINE_DLL_

#if !defined( NOT_HERC ) // (building Hercules?)
#include "hercules.h"
Expand Down
7 changes: 1 addition & 6 deletions cmpscput.c
Expand Up @@ -7,13 +7,8 @@

#include "hstdinc.h" // (MUST be first #include in EVERY source file)

#if !defined(_HENGINE_DLL_)
#define _HENGINE_DLL_
#endif

#if !defined(_CMPSCPUT_C_)
#define _CMPSCPUT_C_
#endif
#define _HENGINE_DLL_

#if !defined( NOT_HERC ) // (building Hercules?)
#include "hercules.h"
Expand Down
5 changes: 0 additions & 5 deletions config.c
Expand Up @@ -13,13 +13,8 @@

DISABLE_GCC_WARNING( "-Wunused-function" )

#ifndef _CONFIG_C_
#define _CONFIG_C_
#endif

#ifndef _HENGINE_DLL_
#define _HENGINE_DLL_
#endif

#include "hercules.h"
#include "opcode.h"
Expand Down
7 changes: 1 addition & 6 deletions control.c
Expand Up @@ -36,13 +36,8 @@

#include "hstdinc.h"

#if !defined(_HENGINE_DLL_)
#define _HENGINE_DLL_
#endif

#if !defined(_CONTROL_C_)
#define _CONTROL_C_
#endif
#define _HENGINE_DLL_

#include "hercules.h"
#include "opcode.h"
Expand Down
7 changes: 1 addition & 6 deletions cpu.c
Expand Up @@ -34,13 +34,8 @@

#include "hstdinc.h"

#if !defined(_HENGINE_DLL_)
#define _HENGINE_DLL_
#endif

#if !defined(_CPU_C_)
#define _CPU_C_
#endif
#define _HENGINE_DLL_

#include "hercules.h"
#include "opcode.h"
Expand Down
10 changes: 1 addition & 9 deletions crypto.c
Expand Up @@ -8,17 +8,9 @@
#include "hstdinc.h"

#define _CRYPTO_C_

#include "hercules.h"

#ifndef _HENGINE_DLL_
#define _HENGINE_DLL_
#endif

#ifndef _CRYPTO_C_
#define _CRYPTO_C_
#endif

#include "hercules.h"
#include "opcode.h"

//efine WRAPPINGKEYS_DEBUG // (#define for debugging)
Expand Down
1 change: 0 additions & 1 deletion ctcadpt.c
Expand Up @@ -27,7 +27,6 @@
#include "hercules.h"
#include "devtype.h"
#include "ctcadpt.h"

#include "opcode.h"
#include "devtype.h"

Expand Down
9 changes: 1 addition & 8 deletions decimal.c
Expand Up @@ -28,18 +28,11 @@

#include "hstdinc.h"

#if !defined(_HENGINE_DLL_)
#define _HENGINE_DLL_
#endif

#if !defined(_DECIMAL_C_)
#define _DECIMAL_C_
#endif
#define _HENGINE_DLL_

#include "hercules.h"

#include "opcode.h"

#include "inline.h"

#if !defined(_DECIMAL_C)
Expand Down
10 changes: 1 addition & 9 deletions diagmssf.c
Expand Up @@ -17,20 +17,12 @@

#include "hstdinc.h"

#if !defined(_HENGINE_DLL_)
#define _HENGINE_DLL_
#endif

#if !defined(_DIAGMSSF_C_)
#define _DIAGMSSF_C_
#endif
#define _HENGINE_DLL_

#include "hercules.h"

#include "opcode.h"

#include "inline.h"

#include "service.h"

#if !defined(_DIAGMSSF_C)
Expand Down
13 changes: 4 additions & 9 deletions diagnose.c
Expand Up @@ -19,20 +19,15 @@

#include "hstdinc.h"

#ifndef _HENGINE_DLL_
#define _HENGINE_DLL_
#endif

#ifndef _DIAGNOSE_C_
#define _DIAGNOSE_C_
#endif
#define _HENGINE_DLL_

#include "hercules.h"
#include "opcode.h"
#include "inline.h"

#ifndef _DIAGNOSE_H
#define _DIAGNOSE_H
#ifndef COMPILE_THIS_ONLY_ONCE
#define COMPILE_THIS_ONLY_ONCE

/*-------------------------------------------------------------------*/
/* Internal macro definitions */
Expand All @@ -47,7 +42,7 @@
/* Diagnose 308 return codes */
#define DIAG308_RC_OK 1

#endif // _DIAGNOSE_H
#endif // COMPILE_THIS_ONLY_ONCE

#ifndef STOP_CPUS_AND_IPL
#define STOP_CPUS_AND_IPL
Expand Down
5 changes: 0 additions & 5 deletions dyncrypt.c
Expand Up @@ -17,13 +17,8 @@

#include "hstdinc.h"

#ifndef _DYNCRYPT_C_
#define _DYNCRYPT_C_
#endif /* #ifndef _DYNCRYPT_C_ */

#ifndef _DYNCRYPT_DLL_
#define _DYNCRYPT_DLL_
#endif /* #ifndef _DYNCRYPT_DLL_ */

#include "hercules.h"
#include "opcode.h"
Expand Down
7 changes: 1 addition & 6 deletions ecpsvm.c
Expand Up @@ -164,13 +164,8 @@

#include "hstdinc.h"

#if !defined(_HENGINE_DLL_)
#define _HENGINE_DLL_
#endif

#if !defined(_ECPSVM_C_)
#define _ECPSVM_C_
#endif
#define _HENGINE_DLL_

#include "hercules.h"
#include "opcode.h"
Expand Down
7 changes: 1 addition & 6 deletions esame.c
Expand Up @@ -23,13 +23,8 @@

#include "hstdinc.h"

#if !defined(_HENGINE_DLL_)
#define _HENGINE_DLL_
#endif

#if !defined(_ESAME_C_)
#define _ESAME_C_
#endif
#define _HENGINE_DLL_

#include "hercules.h"
#include "opcode.h"
Expand Down

0 comments on commit 771dcca

Please sign in to comment.