Remove grep for 570 (all fixed), update older R2_580 to 590 ##abi

This commit is contained in:
Luc Tielen 2023-06-20 16:30:41 +02:00 committed by pancake
parent eb0f571be7
commit e04d50f8e6
9 changed files with 9 additions and 11 deletions

View File

@ -596,7 +596,7 @@ R_API bool r_parse_filter(RParse *p, ut64 addr, RFlag *f, RAnalHint *hint, char
// r_asm_subvar()
// r_asm_replace()
// R2_580 - easier to use, should replace r_asm_filter(), but its not using rflag, analhint, endian, etc
// R2_590 - easier to use, should replace r_asm_filter(), but its not using rflag, analhint, endian, etc
// this function is unused, but there's data we are missing, like the analhint.. that we must ensure that is called before calling this. so we need more tests for this.
R_API char *r_parse_filter_dup(RParse *p, ut64 addr, const char *opstr) {
const size_t out_len = 256;

View File

@ -3066,7 +3066,7 @@ R_API bool r_core_init(RCore *core) {
core->print->offsize = r_core_print_offsize;
core->print->cb_printf = r_cons_printf;
#if R2__WINDOWS__
// XXX R2_580 deprecate this callback? we have the rlog apis
// XXX R2_590 deprecate this callback? we have the rlog apis
core->print->cb_eprintf = win_eprintf;
#endif
core->print->cb_color = r_cons_rainbow_get;

View File

@ -313,7 +313,7 @@ R_API bool r_core_hack(RCore *core, const char *op) {
return false;
}
#if R2_580
// TODO: call RArch.patch() if available, otherwise just do this hack until all anal plugs are moved to arch
// R2_590 TODO: call RArch.patch() if available, otherwise just do this hack until all anal plugs are moved to arch
// r_arch_patch (aop, 0);
RArchSession *acur = R_UNWRAP3 (core, rasm, acur);
if (acur && acur->plugin->patch) {

View File

@ -582,7 +582,7 @@ R_DEPRECATE typedef struct r_anal_var_field_t {
bool field;
} RAnalVarField;
// TO DEPRECATE R2_580
// TO DEPRECATE R2_590
// Use r_anal_get_functions_in¿() instead
R_DEPRECATE R_API RAnalFunction *r_anal_get_fcn_in(RAnal *anal, ut64 addr, int type);
R_DEPRECATE R_API RAnalFunction *r_anal_get_fcn_in_bounds(RAnal *anal, ut64 addr, int type);

View File

@ -420,7 +420,7 @@ typedef struct r_bin_ldr_plugin_t {
bool (*load)(RBin *bin);
} RBinLdrPlugin;
// R2_580 - deprecate this struct which looks dupe from RArchConfig
// R2_590 - deprecate this struct which looks dupe from RArchConfig
typedef struct r_bin_arch_options_t {
const char *arch;
int bits;

View File

@ -75,7 +75,7 @@ R_API RList *r_file_lsrf(const char *dir);
R_API bool r_file_is_newer(const char *f1, const char *f2);
R_API bool r_file_rm_rf(const char *dir);
R_API R_MUSTUSE char *r_file_home(const char *str);
// R2_580: implement r_file_homef() for format string purposes
// R2_590: implement r_file_homef() for format string purposes
// XDG
R_API char *r_xdg_configdir(const char *s);

View File

@ -47,7 +47,7 @@ typedef struct {
RList *cols;
int totalCols;
bool showHeader;
/// R2_580 - squash them all as int showMode and switch it
/// R2_590 - squash them all as int showMode and switch it
bool showFancy;
bool showSQL;
bool showJSON;

View File

@ -942,11 +942,11 @@ R_API int r_main_rasm2(int argc, const char *argv[]) {
if (p) {
*p = 0;
if (*filters) {
// R2_580 r_asm_input_filter (as->a, filters);
// R2_590 r_asm_input_filter (as->a, filters);
r_asm_sub_names_input (as->a, filters);
}
if (p[1]) {
// R2_580 r_asm_output_filter (as->a, p + 1);
// R2_590 r_asm_output_filter (as->a, p + 1);
r_asm_sub_names_output (as->a, p + 1);
}
*p = ':';

View File

@ -39,8 +39,6 @@ git grep 'http:/' libr/| grep -v '/io/' |wc -l
printf -- "strtok\t"
git grep 'strtok (' libr/|wc -l
printf -- "R2_570\t"
git grep 'R2_570' libr/| wc -l
printf -- "R2_580\t"
git grep 'R2_580' libr/| wc -l
printf -- "R2_590\t"