mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-22 15:21:18 +00:00
Fix build, remove useless debug printfs
This commit is contained in:
parent
eaccd3bb7a
commit
9e08e07b7b
@ -63,7 +63,7 @@ R_API void r_anal_type_define (RAnal *anal, const char *key, const char *value)
|
||||
|
||||
}
|
||||
|
||||
#if UNUSED
|
||||
#if UNUSED_CODE
|
||||
// Define local vars using ctypes! this is code reuse!
|
||||
// ctypes must store get/set access?
|
||||
// where's the scope?
|
||||
|
@ -4,6 +4,7 @@
|
||||
#define ut8 unsigned char
|
||||
static ut8 twok_buf[4][4];
|
||||
static int score =0;
|
||||
static int moves =0;
|
||||
#define INTERNAL static
|
||||
|
||||
INTERNAL void twok_init() {
|
||||
@ -61,6 +62,7 @@ INTERNAL int twok_fin() {
|
||||
|
||||
INTERNAL void twok_move(int d) {
|
||||
int i, j, k;
|
||||
moves++;
|
||||
if (d=='a') {
|
||||
twok_add ();
|
||||
} else
|
||||
@ -158,10 +160,6 @@ INTERNAL void twok_print() {
|
||||
twok_buf[i][2], twok_buf[i][3]);
|
||||
}
|
||||
|
||||
INTERNAL int twok_score () {
|
||||
return score;
|
||||
}
|
||||
|
||||
#if 0
|
||||
int main() {
|
||||
char buf[128];
|
||||
@ -187,7 +185,8 @@ R_API void r_cons_2048() {
|
||||
twok_add ();
|
||||
while (twok_fin()) {
|
||||
r_cons_clear00();
|
||||
r_cons_printf ("[r2048] score: %d\n", twok_score ());
|
||||
r_cons_printf ("[r2048] score: %d moves: %d\n",
|
||||
score, moves);
|
||||
r_cons_flush ();
|
||||
twok_print();
|
||||
ch = r_cons_readchar ();
|
||||
@ -196,10 +195,10 @@ R_API void r_cons_2048() {
|
||||
twok_add ();
|
||||
}
|
||||
r_cons_clear00();
|
||||
r_cons_printf ("[r2048] score: %d\n", twok_score ());
|
||||
r_cons_printf ("[r2048] score: %d\n", score );
|
||||
r_cons_flush ();
|
||||
twok_print();
|
||||
r_cons_printf ("\n [r2048.score] %d\n", twok_score ());
|
||||
r_cons_printf ("\n [r2048.score] %d\n", score );
|
||||
r_cons_any_key ();
|
||||
r_cons_set_raw (0);
|
||||
}
|
||||
|
@ -713,7 +713,7 @@ R_API void r_core_anal_fcn_local_list(RCore *core, RAnalFunction *fcn, int rad)
|
||||
}
|
||||
} else
|
||||
if (fcn) {
|
||||
eprintf ("TODO: sdbize\n");
|
||||
//eprintf ("TODO: sdbize\n");
|
||||
#if 0
|
||||
&& fcn->locals) {
|
||||
RAnalFcnLocal *loc;
|
||||
@ -1306,7 +1306,7 @@ R_API RList* r_core_anal_cycles (RCore *core, int ccl)
|
||||
r_list_append (hooks, ch);
|
||||
ch = NULL;
|
||||
ccl -= op->failcycles;
|
||||
eprintf ("0x%08"PFMT64x" > ?\r");
|
||||
eprintf ("0x%08"PFMT64x" > ?\r", op->addr);
|
||||
break;
|
||||
case R_ANAL_OP_TYPE_CCALL:
|
||||
ch = R_NEW0 (RAnalCycleHook);
|
||||
|
@ -732,7 +732,8 @@ static void handle_show_functions (RCore *core, RDisasmState *ds) {
|
||||
RAnalFunction *f = r_anal_fcn_find (core->anal, ds->at, R_ANAL_FCN_TYPE_NULL);
|
||||
//ds->pre = " ";
|
||||
if (f) {
|
||||
eprintf ("TODO: list from anal->sdb_fcns/fcn.0x%%x.locals|args\n");
|
||||
#warning TODO list from anal->sdb_fcns/fcn.0x%%x.locals|args
|
||||
|
||||
#if 0
|
||||
if (f->locals != NULL) {
|
||||
RAnalFcnLocal *f_loc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user