code style

This commit is contained in:
Nguyen Anh Quynh
2015-12-10 00:53:48 +08:00
parent 0393d339c0
commit 1b145f431b
8 changed files with 56 additions and 64 deletions

View File

@ -361,14 +361,13 @@ int main(int argc, char **argv, char **envp)
{ {
// dynamically load shared library // dynamically load shared library
#ifdef DYNLOAD #ifdef DYNLOAD
if( !uc_dyn_load(NULL, 0) ) if (!uc_dyn_load(NULL, 0)) {
{ printf("Error dynamically loading shared library.\n");
printf("Error dynamically loading shared library.\n"); printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
printf("Please check that unicorn.dll/unicorn.so is available as well as\n"); printf("any other dependent dll/so files.\n");
printf("any other dependent dll/so files.\n"); printf("The easiest way is to place them in the same directory as this app.\n");
printf("The easiest way is to place them in the same directory as this app.\n"); return 1;
return 1; }
}
#endif #endif
nx_test(); nx_test();

View File

@ -153,14 +153,13 @@ int main(int argc, char **argv, char **envp)
{ {
// dynamically load shared library // dynamically load shared library
#ifdef DYNLOAD #ifdef DYNLOAD
if( !uc_dyn_load(NULL, 0) ) if (!uc_dyn_load(NULL, 0)) {
{ printf("Error dynamically loading shared library.\n");
printf("Error dynamically loading shared library.\n"); printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
printf("Please check that unicorn.dll/unicorn.so is available as well as\n"); printf("any other dependent dll/so files.\n");
printf("any other dependent dll/so files.\n"); printf("The easiest way is to place them in the same directory as this app.\n");
printf("The easiest way is to place them in the same directory as this app.\n"); return 1;
return 1; }
}
#endif #endif
test_arm(); test_arm();

View File

@ -100,14 +100,13 @@ int main(int argc, char **argv, char **envp)
{ {
// dynamically load shared library // dynamically load shared library
#ifdef DYNLOAD #ifdef DYNLOAD
if( !uc_dyn_load(NULL, 0) ) if (!uc_dyn_load(NULL, 0)) {
{ printf("Error dynamically loading shared library.\n");
printf("Error dynamically loading shared library.\n"); printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
printf("Please check that unicorn.dll/unicorn.so is available as well as\n"); printf("any other dependent dll/so files.\n");
printf("any other dependent dll/so files.\n"); printf("The easiest way is to place them in the same directory as this app.\n");
printf("The easiest way is to place them in the same directory as this app.\n"); return 1;
return 1; }
}
#endif #endif
test_arm64(); test_arm64();

View File

@ -162,14 +162,13 @@ int main(int argc, char **argv, char **envp)
{ {
// dynamically load shared library // dynamically load shared library
#ifdef DYNLOAD #ifdef DYNLOAD
if( !uc_dyn_load(NULL, 0) ) if (!uc_dyn_load(NULL, 0)) {
{ printf("Error dynamically loading shared library.\n");
printf("Error dynamically loading shared library.\n"); printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
printf("Please check that unicorn.dll/unicorn.so is available as well as\n"); printf("any other dependent dll/so files.\n");
printf("any other dependent dll/so files.\n"); printf("The easiest way is to place them in the same directory as this app.\n");
printf("The easiest way is to place them in the same directory as this app.\n"); return 1;
return 1; }
}
#endif #endif
test_m68k(); test_m68k();

View File

@ -147,14 +147,13 @@ int main(int argc, char **argv, char **envp)
{ {
// dynamically load shared library // dynamically load shared library
#ifdef DYNLOAD #ifdef DYNLOAD
if( !uc_dyn_load(NULL, 0) ) if (!uc_dyn_load(NULL, 0)) {
{ printf("Error dynamically loading shared library.\n");
printf("Error dynamically loading shared library.\n"); printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
printf("Please check that unicorn.dll/unicorn.so is available as well as\n"); printf("any other dependent dll/so files.\n");
printf("any other dependent dll/so files.\n"); printf("The easiest way is to place them in the same directory as this app.\n");
printf("The easiest way is to place them in the same directory as this app.\n"); return 1;
return 1; }
}
#endif #endif
test_mips_eb(); test_mips_eb();

View File

@ -102,14 +102,13 @@ int main(int argc, char **argv, char **envp)
{ {
// dynamically load shared library // dynamically load shared library
#ifdef DYNLOAD #ifdef DYNLOAD
if( !uc_dyn_load(NULL, 0) ) if (!uc_dyn_load(NULL, 0)) {
{ printf("Error dynamically loading shared library.\n");
printf("Error dynamically loading shared library.\n"); printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
printf("Please check that unicorn.dll/unicorn.so is available as well as\n"); printf("any other dependent dll/so files.\n");
printf("any other dependent dll/so files.\n"); printf("The easiest way is to place them in the same directory as this app.\n");
printf("The easiest way is to place them in the same directory as this app.\n"); return 1;
return 1; }
}
#endif #endif
test_sparc(); test_sparc();

View File

@ -814,14 +814,13 @@ int main(int argc, char **argv, char **envp)
{ {
// dynamically load shared library // dynamically load shared library
#ifdef DYNLOAD #ifdef DYNLOAD
if( !uc_dyn_load(NULL, 0) ) if (!uc_dyn_load(NULL, 0)) {
{ printf("Error dynamically loading shared library.\n");
printf("Error dynamically loading shared library.\n"); printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
printf("Please check that unicorn.dll/unicorn.so is available as well as\n"); printf("any other dependent dll/so files.\n");
printf("any other dependent dll/so files.\n"); printf("The easiest way is to place them in the same directory as this app.\n");
printf("The easiest way is to place them in the same directory as this app.\n"); return 1;
return 1; }
}
#endif #endif
if (argc == 2) { if (argc == 2) {

View File

@ -159,14 +159,13 @@ int main(int argc, char **argv, char **envp)
{ {
// dynamically load shared library // dynamically load shared library
#ifdef DYNLOAD #ifdef DYNLOAD
if( !uc_dyn_load(NULL, 0) ) if (!uc_dyn_load(NULL, 0)) {
{ printf("Error dynamically loading shared library.\n");
printf("Error dynamically loading shared library.\n"); printf("Please check that unicorn.dll/unicorn.so is available as well as\n");
printf("Please check that unicorn.dll/unicorn.so is available as well as\n"); printf("any other dependent dll/so files.\n");
printf("any other dependent dll/so files.\n"); printf("The easiest way is to place them in the same directory as this app.\n");
printf("The easiest way is to place them in the same directory as this app.\n"); return 1;
return 1; }
}
#endif #endif
if (argc == 2) { if (argc == 2) {