Module: gas-preprocessor Branch: master Commit: 78c7176611acbb0adebc45e3cecf95bde9881b33
Author: Martin Storsjo <[email protected]> Committer: Martin Storsjo <[email protected]> Date: Mon Jul 22 12:13:03 2013 +0300 Evaluate expressions in .rept --- gas-preprocessor.pl | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl index 27155d0..755d9fd 100755 --- a/gas-preprocessor.pl +++ b/gas-preprocessor.pl @@ -401,8 +401,6 @@ my @irp_args; my $irp_param; # pass 2: parse .rept and .if variants -# NOTE: since we don't implement a proper parser, using .rept with a -# variable assigned from .set is not supported foreach my $line (@pass1_lines) { # handle .previous (only with regard to .section not .subsection) if ($line =~ /\.(section|text|const_data)/) { @@ -486,7 +484,7 @@ foreach my $line (@pass1_lines) { if ($num_repts =~ s/(\.\w+.*)//) { push(@rept_lines, "$1\n"); } - $num_repts = eval($num_repts); + $num_repts = eval_expr($num_repts); } elsif ($line =~ /\.irp\s+([\d\w\.]+)\s*(.*)/) { $in_irp = 1; $num_repts = 1; _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
