gbasm: make some internal functions static

This commit is contained in:
2017-05-20 18:59:40 -07:00
parent e64d59c793
commit 4cad9a3ec3

View File

@@ -10,7 +10,7 @@
static bool opcodes_initted = false;
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);
}
@@ -33,8 +33,8 @@ static size_t length_one_byte(
}
#define GEN_FIXED_EMITFN(_name, _data_array) \
size_t _name(struct emitter *emitter, \
const struct gbasm_parsed_inst *inst) \
static size_t _name(struct emitter *emitter, \
const struct gbasm_parsed_inst *inst) \
{ \
const uint8_t raw[] = _data_array; \
emit(emitter, raw, sizeof(raw)); \
@@ -56,7 +56,7 @@ GEN_FIXED_EMITFN(reti_emit, {0xd9})
GEN_FIXED_EMITFN(cpl_emit, {0x2f})
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)
{
if (inst->num_operands > 1) {