diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-10-23 16:22:50 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-10-23 18:53:25 (GMT) |
commit | 56f7524c4fd0fc14a509be7689f4820b31564dbc (patch) | |
tree | 9c84e11279cd5711a4e0af907ca6160b62317528 /src/arch/instruction.c | |
parent | 3f05bacd4fec23824489b51d964a7ce3565bb85b (diff) |
Deleted a level of data to reduce the memory fingerprint.
Diffstat (limited to 'src/arch/instruction.c')
-rw-r--r-- | src/arch/instruction.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/instruction.c b/src/arch/instruction.c index 1bdb50e..8264f5b 100644 --- a/src/arch/instruction.c +++ b/src/arch/instruction.c @@ -1056,7 +1056,7 @@ static GBufferLine *_g_arch_instruction_print(GArchInstruction *instr, GCodeBuff key = g_arch_instruction_get_keyword(instr, syntax); klen = strlen(key); - g_buffer_line_insert_text(result, BLC_ASSEMBLY_HEAD, key, klen, RTT_INSTRUCTION); + g_buffer_line_append_text(result, BLC_ASSEMBLY_HEAD, key, klen, RTT_INSTRUCTION, NULL); if (instr->operands_count > 0) { @@ -1064,8 +1064,8 @@ static GBufferLine *_g_arch_instruction_print(GArchInstruction *instr, GCodeBuff for (i = 1; i < instr->operands_count; i++) { - g_buffer_line_insert_text(result, BLC_ASSEMBLY, ",", 1, RTT_PUNCT); - g_buffer_line_insert_text(result, BLC_ASSEMBLY, " ", 1, RTT_RAW); + g_buffer_line_append_text(result, BLC_ASSEMBLY, ",", 1, RTT_PUNCT, NULL); + g_buffer_line_append_text(result, BLC_ASSEMBLY, " ", 1, RTT_RAW, NULL); g_arch_operand_print(instr->operands[i], result, syntax); |