extern "C" { }

This commit is contained in:
Kelvin Sherlock 2013-02-06 19:11:18 -05:00
parent 00216c2e65
commit 7e09d6a5c7
6 changed files with 51 additions and 0 deletions

View File

@ -1,6 +1,12 @@
#ifndef CpuIntegration_H
#define CpuIntegration_H
#include <setjmp.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
M68000 = 0,
M68010 = 1,
@ -41,4 +47,8 @@ extern void cpuIntegrationHardReset(void);
extern void cpuIntegrationStartup(void);
extern void cpuIntegrationShutdown(void);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,6 +1,11 @@
#ifndef CpuModule_H
#define CpuModule_H
#ifdef __cplusplus
extern "C" {
#endif
// This header file defines the internal interfaces of the CPU module.
#define CPU_INSTRUCTION_LOGGING
@ -90,4 +95,8 @@ extern void cpuSetModel(ULO major, ULO minor);
extern ULO cpuGetModelMajor(void);
extern ULO cpuGetModelMinor(void);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,6 +1,10 @@
#ifndef CPUMODULE_DISASSEMBLER_H
#define CPUMODULE_DISASSEMBLER_H
#ifdef __cplusplus
extern "C" {
#endif
extern ULO cpuDisOpcode(ULO disasm_pc, STR *saddress, STR *sdata, STR *sinstruction, STR *soperands);
extern ULO cpuDisIllegal(ULO prc, ULO opc, STR *sdata, STR *sinstruction, STR *soperands);
@ -94,4 +98,8 @@ extern ULO cpuDisUnpk(ULO prc, ULO opc, STR *sdata, STR *sinstruction, STR *sope
extern ULO cpuDisCallm(ULO prc, ULO opc, STR *sdata, STR *sinstruction, STR *soperands);
extern ULO cpuDisRtm(ULO prc, ULO opc, STR *sdata, STR *sinstruction, STR *soperands);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,6 +1,10 @@
#ifndef CpuModule_Internal_H
#define CpuModule_Internal_H
#ifdef __cplusplus
extern "C" {
#endif
// This header file defines the internal interfaces of the CPU module.
extern void cpuMakeOpcodeTableForModel(void);
extern void cpuCreateMulTimeTables(void);
@ -196,5 +200,9 @@ static BOOLE cpuIsZeroB(UBY v) {return v == 0;}
static BOOLE cpuIsZeroW(UWO v) {return v == 0;}
static BOOLE cpuIsZeroL(ULO v) {return v == 0;}
#ifdef __cplusplus
}
#endif
#endif

View File

@ -5,6 +5,10 @@
#include <stdio.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Maximum values for memory, don't change */
#define CHIPMEM 0x200000
@ -69,4 +73,8 @@ typedef void (*buseventfunc)(void);
#define FELLOWLONGVERSION "WinFellow Amiga Emulator alpha v0.5.0 - CVS"
#define FELLOWNUMERICVERSION "0.5.0.0"
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,6 +1,10 @@
#ifndef FMEM_H
#define FMEM_H
#ifdef __cplusplus
extern "C" {
#endif
/* Memory access functions */
extern UBY memoryReadByte(ULO address);
@ -149,4 +153,8 @@ extern ULO potgor;
extern ULO memory_fault_address;
extern BOOLE memory_fault_read;
#ifdef __cplusplus
}
#endif
#endif