summaryrefslogtreecommitdiff
path: root/src/decomp/expr
diff options
context:
space:
mode:
Diffstat (limited to 'src/decomp/expr')
-rw-r--r--src/decomp/expr/access.c2
-rw-r--r--src/decomp/expr/arithm.c2
-rw-r--r--src/decomp/expr/array.c4
-rw-r--r--src/decomp/expr/assign.c2
-rw-r--r--src/decomp/expr/call.c10
-rw-r--r--src/decomp/expr/dalvik/array.c4
-rw-r--r--src/decomp/expr/pseudo.c4
-rw-r--r--src/decomp/expr/return.c4
-rw-r--r--src/decomp/expr/text.c6
9 files changed, 19 insertions, 19 deletions
diff --git a/src/decomp/expr/access.c b/src/decomp/expr/access.c
index 0af60c7..d7d354d 100644
--- a/src/decomp/expr/access.c
+++ b/src/decomp/expr/access.c
@@ -239,7 +239,7 @@ static GBufferLine *g_access_expression_print(const GAccessExpression *expr, GCo
result = g_dec_instruction_print(G_DEC_INSTRUCTION(expr->owner),
buffer, line, output);
- g_buffer_line_insert_text(result, BLC_ASSEMBLY_HEAD, ".", 3, RTT_PUNCT);
+ g_buffer_line_append_text(result, BLC_ASSEMBLY_HEAD, ".", 3, RTT_PUNCT, NULL);
result = g_dec_instruction_print(G_DEC_INSTRUCTION(expr->target),
buffer, result, output);
diff --git a/src/decomp/expr/arithm.c b/src/decomp/expr/arithm.c
index f14086d..7314dde 100644
--- a/src/decomp/expr/arithm.c
+++ b/src/decomp/expr/arithm.c
@@ -276,7 +276,7 @@ static GBufferLine *g_arithm_expression_print(const GArithmExpression *expr, GCo
break;
}
- g_buffer_line_insert_text(result, BLC_ASSEMBLY_HEAD, sign, 3, RTT_SIGNS);
+ g_buffer_line_append_text(result, BLC_ASSEMBLY_HEAD, sign, 3, RTT_SIGNS, NULL);
result = g_dec_instruction_print(G_DEC_INSTRUCTION(expr->op2),
buffer, result, output);
diff --git a/src/decomp/expr/array.c b/src/decomp/expr/array.c
index d335f61..5c18c11 100644
--- a/src/decomp/expr/array.c
+++ b/src/decomp/expr/array.c
@@ -239,12 +239,12 @@ static GBufferLine *g_array_access_print(const GArrayAccess *expr, GCodeBuffer *
result = g_dec_instruction_print(G_DEC_INSTRUCTION(expr->array),
buffer, line, output);
- g_buffer_line_insert_text(result, BLC_ASSEMBLY_HEAD, "[", 1, RTT_RAW);
+ g_buffer_line_append_text(result, BLC_ASSEMBLY_HEAD, "[", 1, RTT_RAW, NULL);
result = g_dec_instruction_print(G_DEC_INSTRUCTION(expr->index),
buffer, result, output);
- g_buffer_line_insert_text(result, BLC_ASSEMBLY_HEAD, "]", 1, RTT_RAW);
+ g_buffer_line_append_text(result, BLC_ASSEMBLY_HEAD, "]", 1, RTT_RAW, NULL);
return result;
diff --git a/src/decomp/expr/assign.c b/src/decomp/expr/assign.c
index 9a5b308..f4ab149 100644
--- a/src/decomp/expr/assign.c
+++ b/src/decomp/expr/assign.c
@@ -239,7 +239,7 @@ static GBufferLine *g_assign_expression_print(const GAssignExpression *expr, GCo
result = g_dec_instruction_print(G_DEC_INSTRUCTION(expr->dest),
buffer, line, output);
- g_buffer_line_insert_text(result, BLC_ASSEMBLY_HEAD, " = ", 3, RTT_SIGNS);
+ g_buffer_line_append_text(result, BLC_ASSEMBLY_HEAD, " = ", 3, RTT_SIGNS, NULL);
result = g_dec_instruction_print(G_DEC_INSTRUCTION(expr->src),
buffer, result, output);
diff --git a/src/decomp/expr/call.c b/src/decomp/expr/call.c
index 8382b6d..7a09c37 100644
--- a/src/decomp/expr/call.c
+++ b/src/decomp/expr/call.c
@@ -238,9 +238,9 @@ static GBufferLine *g_routine_call_print(const GRoutineCall *call, GCodeBuffer *
size_t i; /* Boucle de parcours */
name = g_binary_routine_get_name(call->routine);
- g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, name, strlen(name), RTT_RAW);
+ g_buffer_line_append_text(line, BLC_ASSEMBLY_HEAD, name, strlen(name), RTT_RAW, NULL);
- g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, "(", 1, RTT_PUNCT);
+ g_buffer_line_append_text(line, BLC_ASSEMBLY_HEAD, "(", 1, RTT_PUNCT, NULL);
if (call->count > 0)
{
@@ -248,8 +248,8 @@ static GBufferLine *g_routine_call_print(const GRoutineCall *call, GCodeBuffer *
for (i = 1; i < call->count; i++)
{
- g_buffer_line_insert_text(result, BLC_ASSEMBLY_HEAD, ",", 1, RTT_PUNCT);
- g_buffer_line_insert_text(result, BLC_ASSEMBLY_HEAD, " ", 1, RTT_RAW);
+ g_buffer_line_append_text(result, BLC_ASSEMBLY_HEAD, ",", 1, RTT_PUNCT, NULL);
+ g_buffer_line_append_text(result, BLC_ASSEMBLY_HEAD, " ", 1, RTT_RAW, NULL);
g_dec_instruction_print(call->args[i], buffer, result, output);
@@ -258,7 +258,7 @@ static GBufferLine *g_routine_call_print(const GRoutineCall *call, GCodeBuffer *
}
else result = line;
- g_buffer_line_insert_text(result, BLC_ASSEMBLY_HEAD, ")", 1, RTT_PUNCT);
+ g_buffer_line_append_text(result, BLC_ASSEMBLY_HEAD, ")", 1, RTT_PUNCT, NULL);
return result;
diff --git a/src/decomp/expr/dalvik/array.c b/src/decomp/expr/dalvik/array.c
index 018952a..7806349 100644
--- a/src/decomp/expr/dalvik/array.c
+++ b/src/decomp/expr/dalvik/array.c
@@ -148,8 +148,8 @@ static void g_dalvik_alength_print(const GDalvikALength *expr, GCodeBuffer *buff
g_dec_instruction_print(G_DEC_INSTRUCTION(expr->array),
buffer, line, output);
- g_buffer_line_insert_text(line, BLC_ASSEMBLY, ".", 1, RTT_RAW);
+ g_buffer_line_append_text(line, BLC_ASSEMBLY, ".", 1, RTT_RAW, NULL);
- g_buffer_line_insert_text(line, BLC_ASSEMBLY, "length", 6, RTT_RAW);
+ g_buffer_line_append_text(line, BLC_ASSEMBLY, "length", 6, RTT_RAW, NULL);
}
diff --git a/src/decomp/expr/pseudo.c b/src/decomp/expr/pseudo.c
index 85a9e72..0ee83b9 100644
--- a/src/decomp/expr/pseudo.c
+++ b/src/decomp/expr/pseudo.c
@@ -179,13 +179,13 @@ static GBufferLine *g_pseudo_register_print(const GPseudoRegister *reg, GCodeBuf
if (reg->var != NULL)
{
name = g_binary_variable_to_string(reg->var, true);
- g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, name, strlen(name), RTT_RAW);
+ g_buffer_line_append_text(line, BLC_ASSEMBLY_HEAD, name, strlen(name), RTT_RAW, NULL);
free(name);
}
else
{
snprintf(label, 32, "%s%zu", reg->name, reg->index);
- g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, label, strlen(label), RTT_RAW);
+ g_buffer_line_append_text(line, BLC_ASSEMBLY_HEAD, label, strlen(label), RTT_RAW, NULL);
}
return line;
diff --git a/src/decomp/expr/return.c b/src/decomp/expr/return.c
index b61eb39..8758042 100644
--- a/src/decomp/expr/return.c
+++ b/src/decomp/expr/return.c
@@ -226,11 +226,11 @@ static GBufferLine *g_return_expression_print(const GReturnExpression *expr, GCo
{
GBufferLine *result; /* Ligne à retourner */
- g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, "return", 6, RTT_KEY_WORD);
+ g_buffer_line_append_text(line, BLC_ASSEMBLY_HEAD, "return", 6, RTT_KEY_WORD, NULL);
if (expr->payload != NULL)
{
- g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, " ", 1, RTT_RAW);
+ g_buffer_line_append_text(line, BLC_ASSEMBLY_HEAD, " ", 1, RTT_RAW, NULL);
result = g_dec_instruction_print(G_DEC_INSTRUCTION(expr->payload),
buffer, line, output);
diff --git a/src/decomp/expr/text.c b/src/decomp/expr/text.c
index 9991b85..d4d5f85 100644
--- a/src/decomp/expr/text.c
+++ b/src/decomp/expr/text.c
@@ -150,9 +150,9 @@ GDecInstruction *g_str_expression_new(const char *value)
static GBufferLine *g_str_expression_print(const GStrExpression *expr, GCodeBuffer *buffer, GBufferLine *line, GLangOutput *output)
{
- g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, "\"", 1, RTT_STRING);
- g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, expr->value, expr->len, RTT_STRING);
- g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, "\"", 1, RTT_STRING);
+ g_buffer_line_append_text(line, BLC_ASSEMBLY_HEAD, "\"", 1, RTT_STRING, NULL);
+ g_buffer_line_append_text(line, BLC_ASSEMBLY_HEAD, expr->value, expr->len, RTT_STRING, NULL);
+ g_buffer_line_append_text(line, BLC_ASSEMBLY_HEAD, "\"", 1, RTT_STRING, NULL);
return line;