gbasm: make some internal functions static
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
static bool opcodes_initted = false;
|
static bool opcodes_initted = false;
|
||||||
static struct tri opcode_tri;
|
static struct tri opcode_tri;
|
||||||
|
|
||||||
bool gbasm_argtype_in_set(uint32_t argtype_set, uint32_t argtype)
|
static bool gbasm_argtype_in_set(uint32_t argtype_set, uint32_t argtype)
|
||||||
{
|
{
|
||||||
return !!(argtype & argtype_set);
|
return !!(argtype & argtype_set);
|
||||||
}
|
}
|
||||||
@@ -33,7 +33,7 @@ static size_t length_one_byte(
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define GEN_FIXED_EMITFN(_name, _data_array) \
|
#define GEN_FIXED_EMITFN(_name, _data_array) \
|
||||||
size_t _name(struct emitter *emitter, \
|
static size_t _name(struct emitter *emitter, \
|
||||||
const struct gbasm_parsed_inst *inst) \
|
const struct gbasm_parsed_inst *inst) \
|
||||||
{ \
|
{ \
|
||||||
const uint8_t raw[] = _data_array; \
|
const uint8_t raw[] = _data_array; \
|
||||||
@@ -56,7 +56,7 @@ GEN_FIXED_EMITFN(reti_emit, {0xd9})
|
|||||||
GEN_FIXED_EMITFN(cpl_emit, {0x2f})
|
GEN_FIXED_EMITFN(cpl_emit, {0x2f})
|
||||||
GEN_FIXED_EMITFN(ccf_emit, {0x3f})
|
GEN_FIXED_EMITFN(ccf_emit, {0x3f})
|
||||||
|
|
||||||
int inc_dec_check(const struct gbasm_parsed_inst *inst,
|
static int inc_dec_check(const struct gbasm_parsed_inst *inst,
|
||||||
const struct gbasm_op_info *op_info)
|
const struct gbasm_op_info *op_info)
|
||||||
{
|
{
|
||||||
if (inst->num_operands > 1) {
|
if (inst->num_operands > 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user