diff --git a/libr/asm/arch/pic/pic_midrange.c b/libr/asm/arch/pic/pic_midrange.c index 50f6bb5cc2..b217e59e19 100644 --- a/libr/asm/arch/pic/pic_midrange.c +++ b/libr/asm/arch/pic/pic_midrange.c @@ -60,7 +60,7 @@ static const PicMidrangeOpInfo static const char *PicMidrangeFsrOps[] = {"++FSR%d", "--FSR%d", "FSR%d++", "FSR%d--"}; -PicMidrangeOpcode pic_midrange_get_opcode (ut16 instr) { +R_API PicMidrangeOpcode pic_midrange_get_opcode (ut16 instr) { if (instr & (1 << 14)) { return PIC_MIDRANGE_OPCODE_INVALID; } @@ -147,14 +147,14 @@ PicMidrangeOpcode pic_midrange_get_opcode (ut16 instr) { return PIC_MIDRANGE_OPCODE_INVALID; } -const PicMidrangeOpInfo *pic_midrange_get_op_info (PicMidrangeOpcode opcode) { +R_API const PicMidrangeOpInfo *pic_midrange_get_op_info (PicMidrangeOpcode opcode) { if (opcode >= PIC_MIDRANGE_OPCODE_INVALID) { return NULL; } return &pic_midrange_op_info[opcode]; } -int pic_midrange_disassemble (RAsmOp *op, char *opbuf, const ut8 *b, int l) { +R_API int pic_midrange_disassemble (RAsmOp *op, char *opbuf, const ut8 *b, int l) { char fsr_op[6]; st16 branch; diff --git a/libr/asm/arch/pic/pic_midrange.h b/libr/asm/arch/pic/pic_midrange.h index 0bc498bada..1f50ba71d2 100644 --- a/libr/asm/arch/pic/pic_midrange.h +++ b/libr/asm/arch/pic/pic_midrange.h @@ -96,8 +96,8 @@ typedef enum { PIC_MIDRANGE_OPCODE_INVALID } PicMidrangeOpcode; -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); +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); #endif // PIC_MIDRANGE_H