Fix static build

This commit is contained in:
pancake 2018-10-15 21:43:37 +02:00
parent 2142a8a992
commit a242f56f76
3 changed files with 9 additions and 21 deletions

View File

@ -60,7 +60,7 @@ static const PicMidrangeOpInfo
static const char *PicMidrangeFsrOps[] = {"++FSR%d", "--FSR%d", "FSR%d++",
"FSR%d--"};
R_API PicMidrangeOpcode pic_midrange_get_opcode (ut16 instr) {
PicMidrangeOpcode pic_midrange_get_opcode (ut16 instr) {
if (instr & (1 << 14)) {
return PIC_MIDRANGE_OPCODE_INVALID;
}
@ -147,22 +147,21 @@ R_API PicMidrangeOpcode pic_midrange_get_opcode (ut16 instr) {
return PIC_MIDRANGE_OPCODE_INVALID;
}
R_API const PicMidrangeOpInfo *pic_midrange_get_op_info (PicMidrangeOpcode opcode) {
const PicMidrangeOpInfo *pic_midrange_get_op_info (PicMidrangeOpcode opcode) {
if (opcode >= PIC_MIDRANGE_OPCODE_INVALID) {
return NULL;
}
return &pic_midrange_op_info[opcode];
}
R_API int pic_midrange_disassemble (RAsmOp *op, char *opbuf, const ut8 *b, int l) {
int pic_midrange_disassemble (RAsmOp *op, char *opbuf, const ut8 *b, int l) {
char fsr_op[6];
st16 branch;
#define EMIT_INVALID \
{ \
op->size = 2; \
#define EMIT_INVALID {\
op->size = 2; \
strcpy (opbuf, "invalid"); \
return 1; \
return 1; \
}
if (!b || l < 2) {
EMIT_INVALID

View File

@ -96,8 +96,8 @@ typedef enum {
PIC_MIDRANGE_OPCODE_INVALID
} PicMidrangeOpcode;
R_API PicMidrangeOpcode pic_midrange_get_opcode (ut16 instr);
R_API const PicMidrangeOpInfo *pic_midrange_get_op_info (PicMidrangeOpcode opcode);
R_API int pic_midrange_disassemble (RAsmOp *op, char *opbuf, const ut8 *b, int l);
PicMidrangeOpcode pic_midrange_get_opcode (ut16 instr);
const PicMidrangeOpInfo *pic_midrange_get_op_info (PicMidrangeOpcode opcode);
int pic_midrange_disassemble (RAsmOp *op, char *opbuf, const ut8 *b, int l);
#endif // PIC_MIDRANGE_H

View File

@ -1,11 +0,0 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: libr
Description: radare framework libraries
Version: 0.1
Requires:
Libs: -L${libdir} -lr_core -lr_lang -lr_search -lr_asm -lr_util -lr_reg
Cflags: -I${includedir}/libr