mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-03 12:12:06 +00:00
f343c4d74f
* Out of file reads (padding) filled by 0xff * Added r_sys_cmd () to wrap r_system() * Fix debug registers command to display segment and flag registers - Some draft changes in r_debug (signal handling and backtrace) * Fix warnings in r_line * Many more indentation fixes - Added st32 and st8 basic types
29 lines
553 B
C
29 lines
553 B
C
/* radare - LGPL - Copyright 2007-2010 pancake<nopcode.org> */
|
|
|
|
#include <r_line.h>
|
|
|
|
RLine r_line_instance;
|
|
#define I r_line_instance
|
|
|
|
/* definitions to be removed */
|
|
int r_line_dietline_init();
|
|
void r_line_hist_free();
|
|
|
|
R_API RLine *r_line_init () {
|
|
I.prompt = strdup ("> ");
|
|
if (!r_line_dietline_init ())
|
|
eprintf ("error: r_line_dietline_init\n");
|
|
return &I;
|
|
}
|
|
|
|
R_API RLine *r_line_new () {
|
|
return r_line_init ();
|
|
}
|
|
|
|
R_API void r_line_free () {
|
|
// XXX: prompt out of the heap?
|
|
free ((void*)I.prompt);
|
|
I.prompt = NULL;
|
|
r_line_hist_free ();
|
|
}
|