Commit Graph

276 Commits

Author SHA1 Message Date
d8ef4914d7 fix some warnings on VS2010 on redefining INTxx_MIN, INTxx_MAX 2017-03-06 14:40:30 +08:00
2fa4744f1d arm64: rename enum arm64_mrs_reg to arm64_sysreg 2017-02-22 15:34:30 +08:00
e213802e63 Fix build under VS2012 (i.e. MSC_VER = 1700)
cstool.c currently imports inttypes.h, which breaks
building on older Visual Studio versions (I've been
testing 2012). This commit removes the explicit include
of inttypes.h, which is already handled in platform.h
(which is included by capstone.h). A define for the
function strtoull (used by cstool) has also been added
to platform.h for the case where MSC_VER <= 1700.

I don't know what effect this will have on OS X builds
as I'm unable to test on that platform.

Also, cstool.c doesn't need to include stdio.h
because it's already included by capstone.h.
2016-12-21 13:12:32 +10:30
8925ff9bde x86: fix X86_REL_ADDR macro - handle two-byte jump instructions 2016-11-21 16:40:42 +01:00
f585a84966 add CS_VERSION_{MAJOR, MINOR, EXTRA} 2016-10-25 14:23:55 +08:00
88edace09c improve dependency on header files *.h, and remove clean from make.sh. see PR #793 2016-10-23 02:02:51 +08:00
78cbed4cc7 fix typo, style
Signed-off-by: Satoshi Tanda <tanda.sat@gmail.com>
2016-09-27 07:39:51 -07:00
fdebc371ba fix annotation. 2016-09-07 09:37:14 +08:00
59df5507c1 edit documents and comments 2016-05-14 16:04:28 -07:00
9f56f757fa Merge branch 'windriver' 2016-05-03 23:04:36 +08:00
db77204caa minor mode: fixed argument name (code documentation) 2016-04-29 09:55:08 -07:00
7cab4dab32 minor typo fix 2016-04-26 14:43:21 -07:00
59cbe18389 add *_MIN *_MAX defines for system has no stdint.h 2016-04-23 15:54:24 -07:00
64e56f46c4 skip stdint.h when not available 2016-04-11 08:48:28 -07:00
3c49d92b9c move contents of myinttype.h to platform.h 2016-04-11 08:01:09 -07:00
4a0f327b0f replace stdint.h in API headers 2016-04-10 08:49:41 -07:00
59814a32fe Add space after CAPSTONE_API 2016-04-09 11:00:00 -07:00
ccd9066461 Replace CAPSTONE_API to mycallback and cs_skipdata_cb_t 2016-04-08 08:14:04 -07:00
375d7432c8 Rename CS_OPT_NONE to CS_OPT_INVALID 2016-04-08 08:05:06 -07:00
6dad56669b Use CAPSTONE_API for cs_skipdata_cb_t 2016-04-03 18:05:58 -07:00
b4bde0cda1 Removed CAPSTONE_CDECL 2016-04-03 11:13:30 -07:00
760940fdce Addressed compile/link errors when built on VS for drivers 2016-03-31 18:14:43 -07:00
f04254a87c Swiched from stdint.h to myinttypes.h 2016-03-31 18:03:33 -07:00
52959a1bb8 Supported a WDK project 2016-03-31 18:02:16 -07:00
cf731a27c2 improve type safety, use ppc_reg instead of unsigned int 2015-12-13 12:53:44 +01:00
1b298977d6 Fix build for cygwin 2015-09-23 00:16:34 +08:00
37590df5ae Fix spelling nits 2015-05-05 13:57:15 -07:00
ac9253cfc5 Update capstone.h 2015-04-25 09:06:46 +08:00
fa20d0d826 Merge branch 'v3' 2015-04-10 23:32:15 +08:00
bcf09f440d Add support to embed Capstone into OS X kernel extensions. 2015-04-10 23:28:12 +08:00
bc96e36ea7 remove stdio.h from capstone.h. this is to make it possible to embed to OSX kernel. issue reported by Pedro 2015-04-09 22:56:36 +08:00
33dd68b1ac Changed type for cs_x86_op.reg
Fixed type for cs_x86_op reg to be a x86_reg instead of unsigned int.  This makes it easier to understand that reg is a x86_reg enumeration versus something else.  It is currently not clear which type reg is.
2015-03-18 15:08:47 -04:00
d83bf84cba Limit exported symbols
Make sure that only symbols that are part of the API are exported by
the library -- similar to __declspec(dllexport) for the MSVC
compiler
2015-02-27 15:51:56 +08:00
56128da515 arm64: for operand type IMM, value should have the type int64_t, not int32_t. all bindings should be fixed 2014-11-17 11:27:15 +08:00
a7b06fda6e capstone.h: add comments on some hardware modes 2014-11-13 12:00:48 +08:00
84df600944 tests: update Mips modes to CS_MODE_MIPS32 & CS_MODE_MIPS64 2014-11-13 11:27:51 +08:00
d3f0373ed1 add CS_MODE_MIPS32 & CS_MODE_MIPS64. these modes are aliases of CS_MODE_32 & CS_MODE_64, so no old code is broken 2014-11-13 11:20:09 +08:00
cc60d10940 mips: add comments on mips32 & mips64 to capstone.h 2014-11-12 18:18:26 +08:00
753f44a6b7 capstone.h: add comment for CS_ARCH_ALL 2014-11-12 11:05:42 +08:00
8cdafda551 arm: add new field mem_barrier to cs_arm struct. this requires changes in bindings 2014-11-11 22:30:30 +08:00
c942f22a09 arm: support new mode CS_MODE_V8 for Armv8 A32 encodings 2014-11-10 21:52:09 +08:00
3ab509192a use common instruction groups across all architectures. this adds cs_group_type to capstone.h. suggestion by @zneak 2014-10-31 14:40:45 +08:00
c58e704517 do not need to explicitly assign values for operand types in the last commit 2014-10-31 13:55:18 +08:00
21ac056728 use common operand types across all architectures. this adds cs_op_type to capstone.h. suggestion by @zneak 2014-10-31 13:08:28 +08:00
a18abdd178 capstone.h: coding style 2014-10-29 21:32:06 +08:00
024e55ebeb capstone.h: add notes on cs_disasm() vs cs_disasm_iter() 2014-10-20 23:32:06 +08:00
de65619fa8 x86: add prefix constants X86_PREFIX_*. suggested by Pancake 2014-10-18 06:15:49 +08:00
85cfb1839c x86: get rid of redundant X86_INS_LOCK/REP/RENE. issue reported by Pancake 2014-10-18 05:53:32 +08:00
aeaff79290 ppc: change type of ppc_op_crx.cond type to ppc_bc 2014-10-17 21:36:38 +08:00
fcc5673070 ppc.h: add a comment for ppc_op_crx 2014-10-17 21:30:30 +08:00