* Fixes for pkgconfig and vapi deps

* Apply patch from @astralia for rax2
  - support int->bin and bin->int
This commit is contained in:
pancake 2010-11-04 13:19:36 +01:00
parent 4d8a1ef5ad
commit 3a44d471f4
3 changed files with 11 additions and 2 deletions

View File

@ -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';

View File

@ -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

View File

@ -17,3 +17,4 @@ r_bin
r_parse
r_lang
r_sign
r_print