diff --git a/binr/rax2/rax2.c b/binr/rax2/rax2.c index c4ac776e4d..19ff271d96 100644 --- a/binr/rax2/rax2.c +++ b/binr/rax2/rax2.c @@ -59,6 +59,8 @@ static int rax (char *str) { " hex -> int ; rax 0xa\n" " -int -> hex ; rax -77\n" " -hex -> int ; rax 0xffffffb3\n" + " int -> bin ; rax b30\n" + " bin -> int ; rax 1010d\n" " float -> hex ; rax 3.33f\n" " hex -> float ; rax Fx40551ed8\n" " oct -> hex ; rax 35o\n" @@ -71,7 +73,13 @@ static int rax (char *str) { return R_TRUE; } if (str[0]=='0' && str[1]=='x') { - out_mode='I'; + out_mode = 'I'; + } else if (str[0]=='b') { + out_mode = 'B'; + str++; + } else if (str[strlen(str)-1]=='d') { + out_mode = 'I'; + str[strlen(str)-1] = 'b'; } else if (str[0]=='F' && str[1]=='x') { out_mode = 'F'; *str = '0'; diff --git a/libr/pkgconfig/libr.pc.acr b/libr/pkgconfig/libr.pc.acr index 075ac8960c..69dfa08863 100644 --- a/libr/pkgconfig/libr.pc.acr +++ b/libr/pkgconfig/libr.pc.acr @@ -7,5 +7,5 @@ Name: libr Description: radare framework libraries Version: 0.1 Requires: -Libs: -L${libdir} -lr_core -lr_lang -lr_search -lr_cmd -lr_asm -lr_util -lr_hash +Libs: -L${libdir} -lr_core -lr_lang -lr_search -lr_cmd -lr_asm -lr_util -lr_hash -lr_vm -lr_socket Cflags: -I${includedir}/libr diff --git a/swig/vapi/r_core.deps b/swig/vapi/r_core.deps index 663297fd93..528019caa5 100644 --- a/swig/vapi/r_core.deps +++ b/swig/vapi/r_core.deps @@ -17,3 +17,4 @@ r_bin r_parse r_lang r_sign +r_print