From 4cad9a3ec31ec7064fe2cacf8c6250272a995d32 Mon Sep 17 00:00:00 2001 From: Max Regan Date: Sat, 20 May 2017 18:59:40 -0700 Subject: [PATCH] gbasm: make some internal functions static --- src/gbasm/opcodes.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gbasm/opcodes.c b/src/gbasm/opcodes.c index 15a0e28..44537ab 100644 --- a/src/gbasm/opcodes.c +++ b/src/gbasm/opcodes.c @@ -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) { @@ -123,7 +123,7 @@ static size_t inc_emit(struct emitter *emitter, } emit(emitter, &opcode, 1); - + return 1; }