summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-08 08:46:46 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-08 10:13:31 +0100
commita44581f6320eeb55835439b1fd51d9b96979899b (patch)
treeb314ed862a3eca2b8648a4697ac12d45097308b2
parent15c2d72b5a2b4657f0c0b6848a1b532a6b92483c (diff)
Make printing asm statements a bit nicer by using fewer spaces.
-rw-r--r--ast.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ast.c b/ast.c
index 99f1993..032e9fe 100644
--- a/ast.c
+++ b/ast.c
@@ -1007,8 +1007,8 @@ static void print_for_statement(const for_statement_t *statement)
*/
static void print_asm_arguments(asm_argument_t const *const arguments)
{
- print_string(" : ");
- separator_t sep = { "", ", " };
+ print_string(" :");
+ separator_t sep = { " ", ", " };
for (asm_argument_t const *i = arguments; i; i = i->next) {
print_string(sep_next(&sep));
if (i->symbol)
@@ -1027,8 +1027,8 @@ static void print_asm_arguments(asm_argument_t const *const arguments)
*/
static void print_asm_clobbers(asm_clobber_t const *const clobbers)
{
- print_string(" : ");
- separator_t sep = { "", ", " };
+ print_string(" :");
+ separator_t sep = { " ", ", " };
for (asm_clobber_t const *i = clobbers; i; i = i->next) {
print_string(sep_next(&sep));
print_quoted_string(&i->clobber, '"');
@@ -1042,8 +1042,8 @@ static void print_asm_clobbers(asm_clobber_t const *const clobbers)
*/
static void print_asm_statement(asm_statement_t const *const stmt)
{
- print_string("asm ");
- if (stmt->is_volatile) print_string("volatile ");
+ print_string("asm");
+ if (stmt->is_volatile) print_string(" volatile");
print_char('(');
print_quoted_string(&stmt->asm_text, '"');