mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-03 12:12:06 +00:00
replace usage of killed r_str_trim
This commit is contained in:
parent
50417301a9
commit
3e8a0cc693
@ -53,7 +53,7 @@ static inline int r_asm_pseudo_org(RAsm *a, char *input) {
|
||||
|
||||
static inline int r_asm_pseudo_hex(RAsmOp *op, char *input) {
|
||||
int len = r_hex_str2bin (input, op->buf);
|
||||
strncpy (op->buf_hex, r_str_trim (input), R_ASM_BUFSIZE-1);
|
||||
strncpy (op->buf_hex, r_str_trim_head_tail (input), R_ASM_BUFSIZE-1);
|
||||
return len;
|
||||
}
|
||||
|
||||
|
@ -146,7 +146,7 @@ static int exprmatchreg (RDebug *dbg, const char *regname, const char *expr) {
|
||||
if (!strcmp (regname, s)) {
|
||||
ret = 1;
|
||||
} else {
|
||||
#define CURVAL 0){}r_str_trim(s);if (!strcmp(regname,s) && regval
|
||||
#define CURVAL 0){}r_str_trim_head_tail (s);if (!strcmp(regname,s) && regval
|
||||
ut64 regval = r_debug_reg_get_err (dbg, regname, NULL);
|
||||
if (exprtoken (dbg, s, ">=", &p)) {
|
||||
if (CURVAL >= r_num_math (dbg->num, p))
|
||||
@ -164,7 +164,7 @@ static int exprmatchreg (RDebug *dbg, const char *regname, const char *expr) {
|
||||
if (CURVAL > r_num_math (dbg->num, p))
|
||||
ret = 1;
|
||||
} else if (exprtoken (dbg, s, " ", &p)) {
|
||||
r_str_trim (s);
|
||||
r_str_trim_head_tail (s);
|
||||
if (!strcmp (regname, s)) {
|
||||
ut64 num = r_num_math (dbg->num, p);
|
||||
ret = exprmatch (dbg, num, s);
|
||||
|
Loading…
x
Reference in New Issue
Block a user