summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-01-21 20:51:27 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-01-21 21:23:58 (GMT)
commitdd33acbff36c0a3ae4618ac5021e74448cad5ce5 (patch)
tree834351b836760fc54533e2f39c4b8202e695c0e3 /src/arch
parente3ee1abf12d7868f5eaf759e04a4b4911fcdfa91 (diff)
Defined some raw primitives to write or delete comments.
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/instruction.c2
-rw-r--r--src/arch/raw.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/instruction.c b/src/arch/instruction.c
index 184d98c..021bdd4 100644
--- a/src/arch/instruction.c
+++ b/src/arch/instruction.c
@@ -895,7 +895,7 @@ static GBufferLine *_g_arch_instruction_print(const GArchInstruction *instr, GCo
size_t klen; /* Taille de ce mot clef */
size_t i; /* Boucle de parcours */
- result = g_code_buffer_append_new_line(buffer, &instr->range);
+ result = g_code_buffer_prepare_new_line(buffer, &instr->range);
g_buffer_line_add_flag(result, BLF_HAS_CODE);
diff --git a/src/arch/raw.c b/src/arch/raw.c
index 57860c0..d04f141 100644
--- a/src/arch/raw.c
+++ b/src/arch/raw.c
@@ -366,7 +366,7 @@ static GBufferLine *g_raw_instruction_print(const GRawInstruction *instr, GCodeB
else
{
- result = g_code_buffer_append_new_line(buffer, &base->range);
+ result = g_code_buffer_prepare_new_line(buffer, &base->range);
g_buffer_line_add_flag(result, BLF_HAS_CODE);