Merge branch 'master' into v3

This commit is contained in:
Nguyen Anh Quynh 2015-04-07 13:21:56 +08:00
commit 60b6f9e0f0
31 changed files with 39 additions and 31 deletions

View File

@ -8,7 +8,7 @@
#include "SStream.h"
#include "cs_priv.h"
#include "inttypes.h"
#include "myinttypes.h"
#include "utils.h"
#ifdef _MSC_VER

View File

@ -16,7 +16,7 @@
#ifdef CAPSTONE_HAS_ARM64
#include "../../inttypes.h"
#include "../../myinttypes.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -15,7 +15,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "../../inttypes.h"
#include "../../myinttypes.h"
#include "ARMAddressingModes.h"
#include "ARMBaseInfo.h"

View File

@ -19,7 +19,7 @@
#include <stdio.h> // DEBUG
#include <stdlib.h>
#include <string.h>
#include "../../inttypes.h"
#include "../../myinttypes.h"
#include "ARMInstPrinter.h"
#include "ARMAddressingModes.h"

View File

@ -19,7 +19,7 @@
#include <stdio.h>
#include <string.h>
#include "../../inttypes.h"
#include "../../myinttypes.h"
#include "../../utils.h"

View File

@ -16,7 +16,7 @@
#ifdef CAPSTONE_HAS_MIPS
#include "../../inttypes.h"
#include "../../myinttypes.h"
#include <stdlib.h>
#include <stdio.h> // debug
#include <string.h>

View File

@ -10,7 +10,7 @@
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
#include <stdio.h> // debug
#include "../../inttypes.h"
#include "../../myinttypes.h"
/// printInstruction - This method is automatically generated by tablegen
/// from the instruction set description.

View File

@ -10,7 +10,7 @@
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
#include <stdio.h> // debug
#include "../../inttypes.h"
#include "../../myinttypes.h"
/// printInstruction - This method is automatically generated by tablegen

View File

@ -10,7 +10,7 @@
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
#include <stdio.h> // debug
#include "../../inttypes.h"
#include "../../myinttypes.h"
/// printInstruction - This method is automatically generated by tablegen

View File

@ -19,7 +19,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../../inttypes.h"
#include "../../myinttypes.h"
#include "SystemZInstPrinter.h"
#include "../../MCInst.h"

View File

@ -19,7 +19,7 @@
#if defined(CAPSTONE_HAS_X86) && !defined(CAPSTONE_DIET) && !defined(CAPSTONE_X86_ATT_DISABLE)
#include <ctype.h>
#include "../../inttypes.h"
#include "../../myinttypes.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -19,7 +19,7 @@
#ifdef CAPSTONE_HAS_X86
#include "../../inttypes.h" // debug
#include "../../myinttypes.h" // debug
#include <string.h>
#include "../../cs_priv.h"

View File

@ -18,7 +18,7 @@
#ifdef CAPSTONE_HAS_X86
#include <ctype.h>
#include "../../inttypes.h"
#include "../../myinttypes.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -10,7 +10,7 @@
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
#include <stdio.h> // debug
#include "../../inttypes.h"
#include "../../myinttypes.h"
/// printInstruction - This method is automatically generated by tablegen

View File

@ -19,7 +19,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../../inttypes.h"
#include "../../myinttypes.h"
#include "XCoreInstPrinter.h"
#include "../../MCInst.h"

View File

@ -13,13 +13,21 @@ install:
rm -rf $(OBJDIR) src/
rm -rf prebuilt/win64/capstone.dll
rm -rf prebuilt/win32/capstone.dll
python setup.py build -b $(OBJDIR) install
if test -n "${DESTDIR}"; then \
python setup.py build -b $(OBJDIR) install --root="${DESTDIR}"; \
else \
python setup.py build -b $(OBJDIR) install; \
fi
install3:
rm -rf $(OBJDIR) src/
rm -rf prebuilt/win64/capstone.dll
rm -rf prebuilt/win32/capstone.dll
python3 setup.py build -b $(OBJDIR) install
if test -n "${DESTDIR}"; then \
python3 setup.py build -b $(OBJDIR) install --root="${DESTDIR}"; \
else \
python3 setup.py build -b $(OBJDIR) install; \
fi
# NOTE: Newer cython can be installed by: sudo pip install --upgrade cython
install_cython:

View File

@ -183,7 +183,7 @@ typedef struct x86_op_mem {
typedef struct cs_x86_op {
x86_op_type type; // operand type
union {
unsigned int reg; // register value for REG operand
x86_reg reg; // register value for REG operand
int64_t imm; // immediate value for IMM operand
double fp; // floating point value for FP operand
x86_op_mem mem; // base/index/scale/disp value for MEM operand

View File

@ -9,7 +9,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../../inttypes.h"
#include "../../myinttypes.h"
#include <capstone.h>

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "../inttypes.h"
#include "../myinttypes.h"
#include <capstone.h>

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "../inttypes.h"
#include "../myinttypes.h"
#include <capstone.h>

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "../inttypes.h"
#include "../myinttypes.h"
#include <capstone.h>

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "../inttypes.h"
#include "../myinttypes.h"
#include <capstone.h>

View File

@ -4,7 +4,7 @@
// This sample code demonstrates the APIs cs_malloc() & cs_disasm_iter().
#include <stdio.h>
#include <stdlib.h>
#include "../inttypes.h"
#include "../myinttypes.h"
#include <capstone.h>

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "../inttypes.h"
#include "../myinttypes.h"
#include <capstone.h>

View File

@ -2,7 +2,7 @@
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013> */
#include <stdio.h>
#include "../inttypes.h"
#include "../myinttypes.h"
#include <capstone.h>

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "../inttypes.h"
#include "../myinttypes.h"
#include <capstone.h>

View File

@ -2,7 +2,7 @@
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
#include <stdio.h>
#include "../inttypes.h"
#include "../myinttypes.h"
#include <capstone.h>

View File

@ -2,7 +2,7 @@
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
#include <stdio.h>
#include "../inttypes.h"
#include "../myinttypes.h"
#include <capstone.h>

View File

@ -3,7 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "../inttypes.h"
#include "../myinttypes.h"
#include <capstone.h>

View File

@ -2,7 +2,7 @@
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014 */
#include <stdio.h>
#include "../inttypes.h"
#include "../myinttypes.h"
#include <capstone.h>