forked from capstone-engine/capstone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Declare global arch arrays with contents (capstone-engine#1171)
This eliminates the need for archs_enable() and eliminates the racey initialization. This makes the architecture-specific init, option, and destroy functions non-static so that they may be called from a different file.
- Loading branch information
Showing
17 changed files
with
347 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* Capstone Disassembly Engine */ | ||
/* By Travis Finkenauer <[email protected]>, 2018 */ | ||
|
||
#ifndef CS_AARCH64_MODULE_H | ||
#define CS_AARCH64_MODULE_H | ||
|
||
#include "../../utils.h" | ||
|
||
cs_err AArch64_global_init(cs_struct *ud); | ||
cs_err AArch64_option(cs_struct *handle, cs_opt_type type, size_t value); | ||
void AArch64_destroy(cs_struct *handle); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* Capstone Disassembly Engine */ | ||
/* By Travis Finkenauer <[email protected]>, 2018 */ | ||
|
||
#ifndef CS_ARM_MODULE_H | ||
#define CS_ARM_MODULE_H | ||
|
||
#include "../../utils.h" | ||
|
||
cs_err ARM_global_init(cs_struct *ud); | ||
cs_err ARM_option(cs_struct *handle, cs_opt_type type, size_t value); | ||
void ARM_destroy(cs_struct *handle); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* Capstone Disassembly Engine */ | ||
/* By Travis Finkenauer <[email protected]>, 2018 */ | ||
|
||
#ifndef CS_MIPS_MODULE_H | ||
#define CS_MIPS_MODULE_H | ||
|
||
#include "../../utils.h" | ||
|
||
cs_err Mips_global_init(cs_struct *ud); | ||
cs_err Mips_option(cs_struct *handle, cs_opt_type type, size_t value); | ||
void Mips_destroy(cs_struct *handle); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* Capstone Disassembly Engine */ | ||
/* By Travis Finkenauer <[email protected]>, 2018 */ | ||
|
||
#ifndef CS_POWERPC_MODULE_H | ||
#define CS_POWERPC_MODULE_H | ||
|
||
#include "../../utils.h" | ||
|
||
cs_err PPC_global_init(cs_struct *ud); | ||
cs_err PPC_option(cs_struct *handle, cs_opt_type type, size_t value); | ||
void PPC_destroy(cs_struct *handle); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* Capstone Disassembly Engine */ | ||
/* By Travis Finkenauer <[email protected]>, 2018 */ | ||
|
||
#ifndef CS_SPARC_MODULE_H | ||
#define CS_SPARC_MODULE_H | ||
|
||
#include "../../utils.h" | ||
|
||
cs_err Sparc_global_init(cs_struct *ud); | ||
cs_err Sparc_option(cs_struct *handle, cs_opt_type type, size_t value); | ||
void Sparc_destroy(cs_struct *handle); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* Capstone Disassembly Engine */ | ||
/* By Travis Finkenauer <[email protected]>, 2018 */ | ||
|
||
#ifndef CS_SYSTEMZ_MODULE_H | ||
#define CS_SYSTEMZ_MODULE_H | ||
|
||
#include "../../utils.h" | ||
|
||
cs_err SystemZ_global_init(cs_struct *ud); | ||
cs_err SystemZ_option(cs_struct *handle, cs_opt_type type, size_t value); | ||
void SystemZ_destroy(cs_struct *handle); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* Capstone Disassembly Engine */ | ||
/* By Travis Finkenauer <[email protected]>, 2018 */ | ||
|
||
#ifndef CS_X86_MODULE_H | ||
#define CS_X86_MODULE_H | ||
|
||
#include "../../utils.h" | ||
|
||
cs_err X86_global_init(cs_struct *ud); | ||
cs_err X86_option(cs_struct *handle, cs_opt_type type, size_t value); | ||
void X86_destroy(cs_struct *handle); | ||
|
||
#endif |
Oops, something went wrong.