[libav-commits] Fix defining nested macros with computed names

Mans Rullgard git at libav.org
Fri Oct 19 21:32:41 CEST 2012


Module: libav.org
Branch: master
Commit: 4ef872bbb5b869329acbbd9b409e01f4eed4e98d

Author:    Mans Rullgard <mans at mansr.com>
Committer: Mans Rullgard <mans at mansr.com>
Date:      Thu Jun 28 15:02:36 2012 +0100

Fix defining nested macros with computed names

---

 gas-preprocessor.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index d93084b..b9decc2 100755
--- a/gas-preprocessor.pl
+++ b/gas-preprocessor.pl
@@ -223,7 +223,7 @@ sub parse_line {
     } elsif ($macro_level == 0) {
         expand_macros($line);
     } else {
-        if (/\.macro\s+([\d\w\.]+)\s*(.*)/) {
+        if ($line =~ /\.macro\s+([\d\w\.]+)\s*(.*)/) {
             $current_macro = $1;
 
             # commas in the argument list are optional, so only use whitespace as the separator



More information about the libav-commits mailing list