mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-06-20 07:37:57 +00:00
regress: fix code style
This commit is contained in:
parent
5de0d5ca70
commit
d957d1efee
|
@ -4,9 +4,10 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#define UC_BUG_WRITE_SIZE 13000
|
||||
#define UC_BUG_WRITE_ADDR 0x1000 // fix this by change this to 0x2000
|
||||
#define UC_BUG_WRITE_ADDR 0x1000
|
||||
|
||||
int main() {
|
||||
int main()
|
||||
{
|
||||
int size;
|
||||
uint8_t *buf;
|
||||
uch uh;
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
#define SIZE 1024*64
|
||||
#define OVERFLOW 1
|
||||
|
||||
int main() {
|
||||
int main()
|
||||
{
|
||||
uch uh;
|
||||
uint8_t *buf, *buf2;
|
||||
int i;
|
||||
|
|
|
@ -72,7 +72,8 @@ static bool hook_mem_invalid(uch handle, uc_mem_type type,
|
|||
#define STACK 0x500000
|
||||
#define STACK_SIZE 0x5000
|
||||
|
||||
int main(int argc, char **argv, char **envp) {
|
||||
int main(int argc, char **argv, char **envp)
|
||||
{
|
||||
uch handle, trace1, trace2;
|
||||
uc_err err;
|
||||
uint8_t bytes[8];
|
||||
|
|
|
@ -8,14 +8,16 @@
|
|||
|
||||
int got_sigill = 0;
|
||||
|
||||
void _interrupt(uch handle, uint32_t intno, void *user_data) {
|
||||
void _interrupt(uch handle, uint32_t intno, void *user_data)
|
||||
{
|
||||
if (intno == 6) {
|
||||
uc_emu_stop (handle);
|
||||
got_sigill = 1;
|
||||
}
|
||||
}
|
||||
|
||||
int main() {
|
||||
int main()
|
||||
{
|
||||
int size;
|
||||
uint8_t *buf;
|
||||
uch uh;
|
||||
|
|
Loading…
Reference in a new issue