projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
156fd3d
)
When printing AST for asm statements first print outputs, then inputs.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 16 Sep 2008 10:09:34 +0000
(10:09 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 16 Sep 2008 10:09:34 +0000
(10:09 +0000)
[r21998]
ast.c
patch
|
blob
|
history
diff --git
a/ast.c
b/ast.c
index
1dc4398
..
d9d810d
100644
(file)
--- a/
ast.c
+++ b/
ast.c
@@
-1153,18
+1153,19
@@
static void print_asm_statement(const asm_statement_t *statement)
}
fputs("(", out);
print_quoted_string(&statement->asm_text, '"', 1);
}
fputs("(", out);
print_quoted_string(&statement->asm_text, '"', 1);
- if(statement->inputs == NULL && statement->outputs == NULL
- && statement->clobbers == NULL)
+ if (statement->outputs == NULL &&
+ statement->inputs == NULL &&
+ statement->clobbers == NULL)
goto end_of_print_asm_statement;
fputs(" : ", out);
goto end_of_print_asm_statement;
fputs(" : ", out);
- print_asm_arguments(statement->
in
puts);
- if
(statement->out
puts == NULL && statement->clobbers == NULL)
+ print_asm_arguments(statement->
out
puts);
+ if
(statement->in
puts == NULL && statement->clobbers == NULL)
goto end_of_print_asm_statement;
fputs(" : ", out);
goto end_of_print_asm_statement;
fputs(" : ", out);
- print_asm_arguments(statement->
out
puts);
- if(statement->clobbers == NULL)
+ print_asm_arguments(statement->
in
puts);
+ if
(statement->clobbers == NULL)
goto end_of_print_asm_statement;
fputs(" : ", out);
goto end_of_print_asm_statement;
fputs(" : ", out);