Fix warnings and mdisassemble signature

This commit is contained in:
pancake 2013-08-15 17:33:41 +02:00
parent a34df55611
commit daddfcc7b6
3 changed files with 4 additions and 3 deletions

View File

@ -771,7 +771,8 @@ int Printfloat10(char *s,long double ext) {
k=sprintf(s,"-0.0"); // Negative floating 0.0
else if (ext==0.0)
k=sprintf(s,"0.0"); // Print 0 with decimal point
#if __WINDOWS__
#if 0
// Visual Studio only?
else if ((ext>=-1.e10 && ext<-1.0) || (ext>1.0 && ext<=1.e10))
k=sprintf(s,"%#.20lg",ext);
else if ((ext>=-1.0 && ext<=-1.e-5) || (ext>=1.e-5 && ext<=1.0))

View File

@ -18,7 +18,7 @@ static int sh_buffer_read_memory (bfd_vma memaddr, bfd_byte *myaddr, unsigned in
return 0;
}
//int print_insn_shl (bfd_vma memaddr, struct disassemble_info *info);
int print_insn_shl (bfd_vma memaddr, struct disassemble_info *info);
static int symbol_at_address(bfd_vma addr, struct disassemble_info * info) {
return 0;

View File

@ -134,7 +134,7 @@ R_API int r_asm_set_syntax(RAsm *a, int syntax);
R_API int r_asm_set_pc(RAsm *a, ut64 pc);
R_API int r_asm_disassemble(RAsm *a, RAsmOp *op, const ut8 *buf, int len);
R_API int r_asm_assemble(RAsm *a, RAsmOp *op, const char *buf);
R_API RAsmCode* r_asm_mdisassemble(RAsm *a, ut8 *buf, int len);
R_API RAsmCode* r_asm_mdisassemble(RAsm *a, const ut8 *buf, int len);
R_API RAsmCode* r_asm_mdisassemble_hexstr(RAsm *a, const char *hexstr);
R_API RAsmCode* r_asm_massemble(RAsm *a, const char *buf);
R_API RAsmCode* r_asm_assemble_file(RAsm *a, const char *file);