Skip to content

Commit

Permalink
Merge rz_asm and rz_analysis into one library but keep deprecated apis.
Browse files Browse the repository at this point in the history
The tms320c64x has been merged into tms320.
  • Loading branch information
wargio committed Mar 7, 2024
1 parent 69c2a4b commit d47ceed
Show file tree
Hide file tree
Showing 762 changed files with 3,098 additions and 3,787 deletions.
3 changes: 1 addition & 2 deletions binrz/rizin/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ rizin_exe = executable('rizin', 'rizin.c',
rz_bin_dep,
rz_flag_dep,
rz_cons_dep,
rz_asm_dep,
rz_arch_dep,
rz_debug_dep,
rz_config_dep,
rz_bp_dep,
rz_reg_dep,
rz_syscall_dep,
rz_analysis_dep,
rz_parse_dep,
rz_egg_dep,
rz_search_dep,
Expand Down
3 changes: 1 addition & 2 deletions binrz/rz-diff/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ executable('rz-diff', 'rz-diff.c',
rz_cons_dep,
rz_core_dep,
rz_bin_dep,
rz_analysis_dep,
rz_asm_dep,
rz_arch_dep,
rz_hash_dep,
rz_config_dep
],
Expand Down
16 changes: 8 additions & 8 deletions librz/arch/analysis.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@
#include <rz_util.h>
#include <rz_list.h>
#include <rz_util/rz_path.h>
#include <rz_arch.h>
#include <rz_lib.h>
#include <config.h>

RZ_LIB_VERSION(rz_analysis);

static RzAnalysisPlugin *analysis_static_plugins[] = { RZ_ANALYSIS_STATIC_PLUGINS };

/**
* \brief Returns the default size byte width of memory access operations.
Expand Down Expand Up @@ -76,7 +72,6 @@ static void global_kv_free(HtPPKv *kv) {
}

RZ_API RzAnalysis *rz_analysis_new(void) {
int i;
RzAnalysis *analysis = RZ_NEW0(RzAnalysis);
if (!analysis) {
return NULL;
Expand Down Expand Up @@ -129,8 +124,13 @@ RZ_API RzAnalysis *rz_analysis_new(void) {
rz_analysis_set_bits(analysis, 32);
analysis->plugins = rz_list_new();
if (analysis->plugins) {
for (i = 0; i < RZ_ARRAY_SIZE(analysis_static_plugins); i++) {
rz_analysis_plugin_add(analysis, analysis_static_plugins[i]);
const size_t n_plugins = rz_arch_get_n_plugins();
for (size_t i = 0; i < n_plugins; i++) {
RzAnalysisPlugin *plugin = rz_arch_get_analysis_plugin(i);
if (!plugin) {
continue;
}
rz_analysis_plugin_add(analysis, plugin);
}
}
analysis->ht_global_var = ht_pp_new(NULL, global_kv_free, NULL);
Expand Down
100 changes: 0 additions & 100 deletions librz/arch/arch-asm/i4004/i4004dis.c

This file was deleted.

147 changes: 0 additions & 147 deletions librz/arch/arch-asm/i8080/i8080dis.c

This file was deleted.

Loading

0 comments on commit d47ceed

Please sign in to comment.