mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-14 00:38:55 +00:00
8579a5b41f
- Propagate @VERSION@ from ACR - All *2 apps are now supporting a -V flag to show the version * Fix .dr* command in r_core debugger - dr now supports [regtype] [bitsize] arguments - Check dr? for help * Added some 8, 16 bit registers to the dbg.ptrace backend - Just for testing :) * Check build of the whole source tree - test programs are now in ${prefix}/bin/libr-test * Fix lot of warnings and bugs * Simplify some code * Some rapification * Fix segfault in r_reg related to unallocated arenas - New function r_reg_type_by_name() resolves string->id * Fix help of rax2
25 lines
491 B
C
25 lines
491 B
C
/* dummy extension for libr (radare2) */
|
|
|
|
#include "r_lib.h"
|
|
#include "r_lang.h"
|
|
|
|
static int dummy_run(void *user, const char *code, int len)
|
|
{
|
|
printf("Evaluating '%s'\n", code);
|
|
return R_TRUE;
|
|
}
|
|
|
|
static struct r_lang_handle_t r_lang_plugin_dummy = {
|
|
.name = "dummy",
|
|
.desc = "Dummy language extension",
|
|
.help = NULL,
|
|
.run = (void*)&dummy_run,
|
|
.run_file = NULL,
|
|
.set_argv = NULL,
|
|
};
|
|
|
|
struct r_lib_struct_t radare_plugin = {
|
|
.type = R_LIB_TYPE_LANG,
|
|
.data = &r_lang_plugin_dummy
|
|
};
|