Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
e42cd381
Commit
e42cd381
authored
Oct 13, 2006
by
Christian Würdig
Browse files
fixed emitter (call printf foreach . line)
parent
eb3a4961
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/scripts/generate_emitter.pl
View file @
e42cd381
...
...
@@ -64,7 +64,7 @@ foreach my $op (keys(%nodes)) {
my
$cnt
=
0
;
my
$buf
=
'
cmd_buf
';
push
(
@obst_func
,
"
cmnt_buf[0] = '
\\
0';
\n
");
push
(
@obst_func
,
$indent
.
"
cmnt_buf[0] = '
\\
0';
\n
");
foreach
$template
(
split
(
/$comment_string_quoted/
,
$fmt
,
2
))
{
my
@params
;
my
$res
=
"";
...
...
@@ -119,13 +119,13 @@ foreach my $op (keys(%nodes)) {
push
(
@obst_func
,
$indent
.
'
lc_esnprintf(arg_env,
'
.
$buf
.
'
, 256, "
'
.
$res
.
'
"
'
.
$parm
.
'
);
'
.
"
\n
");
}
push
(
@obst_func
,
$indent
.
'
lc_efprintf(arg_env, F, "\t%-35s %-60s /* %+F (%+G) */\n", cmd_buf, cmnt_buf, n, n);
'
.
"
\n
");
}
else
{
push
(
@obst_func
,
$template
,"
\n
");
}
}
push
(
@obst_func
,
'
lc_efprintf(arg_env, F, "\t%-35s %-60s /* %+F (%+G) */\n", cmd_buf, cmnt_buf, n, n);
'
.
"
\n
");
push
(
@obst_func
,
"
}
\n\n
");
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment