fix rust bindings build on windows (#1584)

Refine rust bindings.
This commit is contained in:
shuffle2
2022-04-16 04:40:04 -07:00
committed by GitHub
parent 9620514b68
commit 2912cd1e29
17 changed files with 268 additions and 320 deletions

View File

@@ -11,7 +11,7 @@ static void uc_common_setup(uc_engine **uc, uc_arch arch, uc_mode mode,
OK(uc_mem_write(*uc, code_start, code, size));
}
static void test_mips_el_ori()
static void test_mips_el_ori(void)
{
uc_engine *uc;
char code[] = "\x56\x34\x21\x34"; // ori $at, $at, 0x3456;
@@ -30,7 +30,7 @@ static void test_mips_el_ori()
OK(uc_close(uc));
}
static void test_mips_eb_ori()
static void test_mips_eb_ori(void)
{
uc_engine *uc;
char code[] = "\x34\x21\x34\x56"; // ori $at, $at, 0x3456;
@@ -49,7 +49,7 @@ static void test_mips_eb_ori()
OK(uc_close(uc));
}
static void test_mips_stop_at_branch()
static void test_mips_stop_at_branch(void)
{
uc_engine *uc;
char code[] =
@@ -71,7 +71,7 @@ static void test_mips_stop_at_branch()
OK(uc_close(uc));
}
static void test_mips_stop_at_delay_slot()
static void test_mips_stop_at_delay_slot(void)
{
uc_engine *uc;
char code[] =
@@ -93,7 +93,7 @@ static void test_mips_stop_at_delay_slot()
OK(uc_close(uc));
}
static void test_mips_lwx_exception_issue_1314()
static void test_mips_lwx_exception_issue_1314(void)
{
uc_engine *uc;
char code[] = "\x0a\xc8\x79\x7e"; // lwx $t9, $t9($s3)