103 const char *arg_start =
NULL;
104 const char *arg_end =
NULL;
109 if (strlen(arg_start) == 0) {
113 arg_end = strchr(arg_start,
' ');
114 if (arg_end ==
NULL) {
116 arg_len = strlen(arg_start);
118 arg_len = arg_end - arg_start;
122 memcpy(recv_buf, arg_start, arg_len);
123 recv_buf[arg_len] = 0x00;
126 return arg_start - raw_string + arg_len;
131 RZ_LOG_ERROR(
"assembler: lua: %s is not a valid number argument\n",
str);
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
static void list(RzEgg *egg)
char * luaop_new_str_2arg(char *opname, int a, int b)
bool lua_is_valid_num_value_string(const char *str)
char * luaop_new_str_2arg_ex(char *opname, int a, int b, int isk)
char * luaop_new_str_3arg(char *opname, int a, int b, int c)
int lua_load_next_arg_start(const char *raw_string, char *recv_buf)
char * luaop_new_str_3arg_ex(char *opname, int a, int b, int c, int isk)
bool free_lua_opnames(LuaOpNameList list)
LuaInstruction lua_build_instruction(const ut8 *buf)
int lua_convert_str_to_num(const char *str)
char * luaop_new_str_1arg(char *opname, int a)
void lua_set_instruction(LuaInstruction instruction, ut8 *data)
char * luaop_new_str_1arg_ex(char *opname, int a, int isk)
#define RZ_LOG_ERROR(fmtstr,...)
RZ_API bool rz_is_valid_input_num_value(RzNum *num, const char *input_value)
RZ_API char * rz_str_newf(const char *fmt,...) RZ_PRINTF_CHECK(1
RZ_API const char * rz_str_trim_head_ro(const char *str)