Skip to content

Commit

Permalink
rename mapping.c, mapping.h, module.c to have arch prefix. suggested …
Browse files Browse the repository at this point in the history
…by Alex Ionescu
  • Loading branch information
aquynh committed Jan 20, 2014
1 parent 747c4ef commit f328f30
Show file tree
Hide file tree
Showing 23 changed files with 28 additions and 27 deletions.
19 changes: 10 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,36 +53,37 @@ ifneq (,$(findstring x86,$(CAPSTONE_ARCHS)))
LIBOBJ += arch/X86/X86Disassembler.o
LIBOBJ += arch/X86/X86IntelInstPrinter.o
LIBOBJ += arch/X86/X86ATTInstPrinter.o
LIBOBJ += arch/X86/mapping.o arch/X86/module.o
LIBOBJ += arch/X86/X86Mapping.o
LIBOBJ += arch/X86/X86Module.o
endif
ifneq (,$(findstring arm,$(CAPSTONE_ARCHS)))
CFLAGS += -DCAPSTONE_HAS_ARM
LIBOBJ += arch/ARM/ARMDisassembler.o
LIBOBJ += arch/ARM/ARMInstPrinter.o
LIBOBJ += arch/ARM/mapping.o
LIBOBJ += arch/ARM/module.o
LIBOBJ += arch/ARM/ARMMapping.o
LIBOBJ += arch/ARM/ARMModule.o
endif
ifneq (,$(findstring mips,$(CAPSTONE_ARCHS)))
CFLAGS += -DCAPSTONE_HAS_MIPS
LIBOBJ += arch/Mips/MipsDisassembler.o
LIBOBJ += arch/Mips/MipsInstPrinter.o
LIBOBJ += arch/Mips/mapping.o
LIBOBJ += arch/Mips/module.o
LIBOBJ += arch/Mips/MipsMapping.o
LIBOBJ += arch/Mips/MipsModule.o
endif
ifneq (,$(findstring powerpc,$(CAPSTONE_ARCHS)))
CFLAGS += -DCAPSTONE_HAS_POWERPC
LIBOBJ += arch/PowerPC/PPCDisassembler.o
LIBOBJ += arch/PowerPC/PPCInstPrinter.o
LIBOBJ += arch/PowerPC/mapping.o
LIBOBJ += arch/PowerPC/module.o
LIBOBJ += arch/PowerPC/PPCMapping.o
LIBOBJ += arch/PowerPC/PPCModule.o
endif
ifneq (,$(findstring aarch64,$(CAPSTONE_ARCHS)))
CFLAGS += -DCAPSTONE_HAS_ARM64
LIBOBJ += arch/AArch64/AArch64BaseInfo.o
LIBOBJ += arch/AArch64/AArch64Disassembler.o
LIBOBJ += arch/AArch64/AArch64InstPrinter.o
LIBOBJ += arch/AArch64/mapping.o
LIBOBJ += arch/AArch64/module.o
LIBOBJ += arch/AArch64/AArch64Mapping.o
LIBOBJ += arch/AArch64/AArch64Module.o
endif

LIBOBJ += MCInst.o
Expand Down
2 changes: 1 addition & 1 deletion arch/AArch64/AArch64InstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "../../MCRegisterInfo.h"
#include "../../MathExtras.h"

#include "mapping.h"
#include "AArch64Mapping.h"

static char *getRegisterName(unsigned RegNo);
static void printOperand(MCInst *MI, unsigned OpNo, SStream *O);
Expand Down
2 changes: 1 addition & 1 deletion arch/AArch64/mapping.c → arch/AArch64/AArch64Mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "../../include/arm64.h"
#include "../../utils.h"

#include "mapping.h"
#include "AArch64Mapping.h"

#define GET_INSTRINFO_ENUM
#include "AArch64GenInstrInfo.inc"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion arch/AArch64/module.c → arch/AArch64/AArch64Module.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "../../MCRegisterInfo.h"
#include "AArch64Disassembler.h"
#include "AArch64InstPrinter.h"
#include "mapping.h"
#include "AArch64Mapping.h"

void enable_arm64() {}

Expand Down
2 changes: 1 addition & 1 deletion arch/ARM/ARMInstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "../../SStream.h"
#include "../../MCRegisterInfo.h"
#include "../../utils.h"
#include "mapping.h"
#include "ARMMapping.h"

#define GET_SUBTARGETINFO_ENUM
#include "ARMGenSubtargetInfo.inc"
Expand Down
2 changes: 1 addition & 1 deletion arch/ARM/mapping.c → arch/ARM/ARMMapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "../../include/arm.h"
#include "../../cs_priv.h"

#include "mapping.h"
#include "ARMMapping.h"

#define GET_INSTRINFO_ENUM
#include "ARMGenInstrInfo.inc"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion arch/ARM/module.c → arch/ARM/ARMModule.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "../../MCRegisterInfo.h"
#include "ARMDisassembler.h"
#include "ARMInstPrinter.h"
#include "mapping.h"
#include "ARMMapping.h"

static cs_err init(cs_struct *ud)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/Mips/MipsInstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "../../utils.h"
#include "../../SStream.h"
#include "../../MCRegisterInfo.h"
#include "mapping.h"
#include "MipsMapping.h"

#include "MipsInstPrinter.h"

Expand Down
2 changes: 1 addition & 1 deletion arch/Mips/mapping.c → arch/Mips/MipsMapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "../../include/mips.h"
#include "../../utils.h"

#include "mapping.h"
#include "MipsMapping.h"

#define GET_INSTRINFO_ENUM
#include "MipsGenInstrInfo.inc"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion arch/Mips/module.c → arch/Mips/MipsModule.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "../../MCRegisterInfo.h"
#include "MipsDisassembler.h"
#include "MipsInstPrinter.h"
#include "mapping.h"
#include "MipsMapping.h"

void enable_mips() {};

Expand Down
4 changes: 2 additions & 2 deletions arch/PowerPC/PPCInstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
#include "../../SStream.h"
#include "../../MCRegisterInfo.h"
#include "../../MathExtras.h"
#include "mapping.h"
#include "PPCMapping.h"

//#include "mapping.h"
//#include "PPCMapping.h"

static const char *getRegisterName(unsigned RegNo);
static void printOperand(MCInst *MI, unsigned OpNo, SStream *O);
Expand Down
2 changes: 1 addition & 1 deletion arch/PowerPC/mapping.c → arch/PowerPC/PPCMapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "../../include/ppc.h"
#include "../../utils.h"

#include "mapping.h"
#include "PPCMapping.h"

#define GET_INSTRINFO_ENUM
#include "PPCGenInstrInfo.inc"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion arch/PowerPC/module.c → arch/PowerPC/PPCModule.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "../../MCRegisterInfo.h"
#include "PPCDisassembler.h"
#include "PPCInstPrinter.h"
#include "mapping.h"
#include "PPCMapping.h"

void enable_powerpc() {};

Expand Down
2 changes: 1 addition & 1 deletion arch/X86/X86ATTInstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "../../MCInst.h"
#include "../../SStream.h"
#include "../../MCRegisterInfo.h"
#include "mapping.h"
#include "X86Mapping.h"

#define markup(x) ""

Expand Down
2 changes: 1 addition & 1 deletion arch/X86/X86Disassembler.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "X86DisassemblerDecoderCommon.h"
#include "X86DisassemblerDecoder.h"
#include "../../MCInst.h"
#include "mapping.h"
#include "X86Mapping.h"

#define GET_REGINFO_ENUM
#include "X86GenRegisterInfo.inc"
Expand Down
2 changes: 1 addition & 1 deletion arch/X86/X86IntelInstPrinter.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "../../SStream.h"
#include "../../MCRegisterInfo.h"

#include "mapping.h"
#include "X86Mapping.h"

static void printMemReference(MCInst *MI, unsigned Op, SStream *O);

Expand Down
2 changes: 1 addition & 1 deletion arch/X86/mapping.c → arch/X86/X86Mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <string.h>

#include "mapping.h"
#include "X86Mapping.h"
#include "X86DisassemblerDecoder.h"

#include "../../utils.h"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion arch/X86/module.c → arch/X86/X86Module.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "../../MCRegisterInfo.h"
#include "X86Disassembler.h"
#include "X86InstPrinter.h"
#include "mapping.h"
#include "X86Mapping.h"

void enable_x86() {};

Expand Down

0 comments on commit f328f30

Please sign in to comment.