diff --git a/capstone-win32-vc/capstone-test-skipdata/capstone-test-skipdata.vcxproj b/capstone-win32-vc/capstone-test-skipdata/capstone-test-skipdata.vcxproj new file mode 100644 index 00000000..e39f3c16 --- /dev/null +++ b/capstone-win32-vc/capstone-test-skipdata/capstone-test-skipdata.vcxproj @@ -0,0 +1,89 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {B09819BB-7EF1-4B04-945D-58117E6940A1} + Win32Proj + capstonetestskipdata + + + + Application + true + v110 + Unicode + + + Application + false + v110 + true + Unicode + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + D:\Codes\capstone\capstone-win32-vc\headers;D:\Codes\capstone\include;%(AdditionalIncludeDirectories) + + + Console + true + true + true + D:\Codes\capstone\capstone-win32-vc\Release;%(AdditionalLibraryDirectories) + capstone-win32.lib;%(AdditionalDependencies) + + + + + + + + + \ No newline at end of file diff --git a/capstone-win32-vc/capstone-win32-vc.sln b/capstone-win32-vc/capstone-win32-vc.sln index 0b546508..2656f780 100644 --- a/capstone-win32-vc/capstone-win32-vc.sln +++ b/capstone-win32-vc/capstone-win32-vc.sln @@ -21,6 +21,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "capstone-test-systemz", "ca EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "capstone-test-detail", "capstone-test-detail\capstone-test-detail.vcxproj", "{A510F308-3094-4FF6-9DFC-539CC5260BA4}" EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "capstone-test-skipdata", "capstone-test-skipdata\capstone-test-skipdata.vcxproj", "{B09819BB-7EF1-4B04-945D-58117E6940A1}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 @@ -67,6 +69,10 @@ Global {A510F308-3094-4FF6-9DFC-539CC5260BA4}.Debug|Win32.Build.0 = Debug|Win32 {A510F308-3094-4FF6-9DFC-539CC5260BA4}.Release|Win32.ActiveCfg = Release|Win32 {A510F308-3094-4FF6-9DFC-539CC5260BA4}.Release|Win32.Build.0 = Release|Win32 + {B09819BB-7EF1-4B04-945D-58117E6940A1}.Debug|Win32.ActiveCfg = Debug|Win32 + {B09819BB-7EF1-4B04-945D-58117E6940A1}.Debug|Win32.Build.0 = Debug|Win32 + {B09819BB-7EF1-4B04-945D-58117E6940A1}.Release|Win32.ActiveCfg = Release|Win32 + {B09819BB-7EF1-4B04-945D-58117E6940A1}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/tests/test_skipdata.c b/tests/test_skipdata.c index 81c5bfc8..8357b665 100644 --- a/tests/test_skipdata.c +++ b/tests/test_skipdata.c @@ -41,18 +41,18 @@ static void test() struct platform platforms[] = { { - .arch = CS_ARCH_X86, - .mode = CS_MODE_32, - .code = (unsigned char*)X86_CODE32, - .size = sizeof(X86_CODE32) - 1, - .comment = "X86 32 (Intel syntax)" + CS_ARCH_X86, + CS_MODE_32, + (unsigned char*)X86_CODE32, + sizeof(X86_CODE32) - 1, + "X86 32 (Intel syntax)" }, { - .arch = CS_ARCH_ARM, - .mode = CS_MODE_ARM, - .code = (unsigned char*)RANDOM_CODE, - .size = sizeof(RANDOM_CODE) - 1, - .comment = "Arm" + CS_ARCH_ARM, + CS_MODE_ARM, + (unsigned char*)RANDOM_CODE, + sizeof(RANDOM_CODE) - 1, + "Arm" }, }; @@ -63,7 +63,7 @@ static void test() size_t count; cs_opt_skipdata skipdata = { // rename default "data" instruction from ".byte" to "db" - .mnemonic = "db", + "db", }; cs_err err;