summaryrefslogtreecommitdiff
path: root/src/decomp/expr
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2010-12-02 00:59:53 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2010-12-02 00:59:53 (GMT)
commit957f50b657456c4c7da2778197c144548eded8cd (patch)
tree9aea0e8ffb4dc62b23fd324b55910916cef95167 /src/decomp/expr
parentf2d479c16a427696790441fa1459e7194f49bb6a (diff)
Improved the rendering of decompiled Dex code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@196 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/decomp/expr')
-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.c6
-rw-r--r--src/decomp/expr/pseudo.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/src/decomp/expr/arithm.c b/src/decomp/expr/arithm.c
index 605830d..0ca73ac 100644
--- a/src/decomp/expr/arithm.c
+++ b/src/decomp/expr/arithm.c
@@ -189,7 +189,7 @@ static void g_arithm_expression_print(const GArithmExpression *expr, GCodeBuffer
break;
}
- g_buffer_line_insert_text(line, BLC_ASSEMBLY, sign, 3, RTT_SIGNS);
+ g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, sign, 3, RTT_SIGNS);
g_dec_instruction_print(G_DEC_INSTRUCTION(expr->op2),
buffer, line, output);
diff --git a/src/decomp/expr/array.c b/src/decomp/expr/array.c
index 497e47a..c14374b 100644
--- a/src/decomp/expr/array.c
+++ b/src/decomp/expr/array.c
@@ -151,11 +151,11 @@ static void g_array_access_print(const GArrayAccess *expr, GCodeBuffer *buffer,
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_insert_text(line, BLC_ASSEMBLY_HEAD, "[", 1, RTT_RAW);
g_dec_instruction_print(G_DEC_INSTRUCTION(expr->index),
buffer, line, output);
- g_buffer_line_insert_text(line, BLC_ASSEMBLY, "]", 1, RTT_RAW);
+ g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, "]", 1, RTT_RAW);
}
diff --git a/src/decomp/expr/assign.c b/src/decomp/expr/assign.c
index 561fb0f..29eb0f8 100644
--- a/src/decomp/expr/assign.c
+++ b/src/decomp/expr/assign.c
@@ -151,7 +151,7 @@ static void g_assign_expression_print(const GAssignExpression *expr, GCodeBuffer
g_dec_instruction_print(G_DEC_INSTRUCTION(expr->dest),
buffer, line, output);
- g_buffer_line_insert_text(line, BLC_ASSEMBLY, " = ", 3, RTT_SIGNS);
+ g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, " = ", 3, RTT_SIGNS);
g_dec_instruction_print(G_DEC_INSTRUCTION(expr->src),
buffer, line, output);
diff --git a/src/decomp/expr/call.c b/src/decomp/expr/call.c
index 8f73c4f..05e596a 100644
--- a/src/decomp/expr/call.c
+++ b/src/decomp/expr/call.c
@@ -154,10 +154,10 @@ static void g_routine_call_print(const GRoutineCall *expr, GCodeBuffer *buffer,
const char *name; /* Désignation de la routine */
name = g_binary_routine_get_name(expr->routine);
- g_buffer_line_insert_text(line, BLC_ASSEMBLY, name, strlen(name), RTT_RAW);
+ g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, name, strlen(name), RTT_RAW);
- g_buffer_line_insert_text(line, BLC_ASSEMBLY, "(", 1, RTT_PUNCT);
+ g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, "(", 1, RTT_PUNCT);
- g_buffer_line_insert_text(line, BLC_ASSEMBLY, ")", 1, RTT_PUNCT);
+ g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, ")", 1, RTT_PUNCT);
}
diff --git a/src/decomp/expr/pseudo.c b/src/decomp/expr/pseudo.c
index abfcd4d..06ba184 100644
--- a/src/decomp/expr/pseudo.c
+++ b/src/decomp/expr/pseudo.c
@@ -151,7 +151,7 @@ static void g_pseudo_register_print(const GPseudoRegister *reg, GCodeBuffer *buf
snprintf(label, 32, "var%d", reg->index);
- g_buffer_line_insert_text(line, BLC_ASSEMBLY, label, strlen(label), RTT_RAW);
+ g_buffer_line_insert_text(line, BLC_ASSEMBLY_HEAD, label, strlen(label), RTT_RAW);
}