diff options
author | axis <qt-info@nokia.com> | 2010-12-23 14:52:38 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2010-12-23 14:55:55 (GMT) |
commit | 76c1492a51746730c1b51539b87f8d8c810f44ff (patch) | |
tree | ae54881016ceb0e2d4653e4db98ca6401e22f094 /bin | |
parent | c168138195b623afc523ddd647dcfb690106c845 (diff) | |
download | Qt-76c1492a51746730c1b51539b87f8d8c810f44ff.zip Qt-76c1492a51746730c1b51539b87f8d8c810f44ff.tar.gz Qt-76c1492a51746730c1b51539b87f8d8c810f44ff.tar.bz2 |
Fixed a bug in elf2e32_qtwrapper regarding spaces in def files.
It would not parse the line correctly if a space was missing between
the "@" and the ordinal number.
RevBy: Trust me
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/elf2e32_qtwrapper.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/elf2e32_qtwrapper.pl b/bin/elf2e32_qtwrapper.pl index d91be14..a90877e 100755 --- a/bin/elf2e32_qtwrapper.pl +++ b/bin/elf2e32_qtwrapper.pl @@ -146,7 +146,7 @@ while (1) { $origDefLine = <$origDefFile>; if (defined($origDefLine)) { $origDefLine =~ s/[\n\r]//; - if ($origDefLine =~ /([a-z0-9_]+) +\@ ([0-9]+) (.*)/i) { + if ($origDefLine =~ /([a-z0-9_]+) +\@ *([0-9]+) (.*)/i) { $origSym = $1; $origOrdinal = $2; $origExtraData = $3; @@ -161,7 +161,7 @@ while (1) { if ($savedNewDefFileLine) { # This happens if the new def file was missing an entry. $newDefLine = $savedNewDefFileLine; - $newDefLine =~ /([a-z0-9_]+) +\@ ([0-9]+) (.*)/i or die("$0: Shouldn't happen"); + $newDefLine =~ /([a-z0-9_]+) +\@ *([0-9]+) (.*)/i or die("$0: Shouldn't happen"); $newSym = $1; $newOrdinal = $2; $newExtraData = $3; @@ -171,7 +171,7 @@ while (1) { $newDefLine = <$newDefFile>; if (defined($newDefLine)) { $newDefLine =~ s/[\n\r]//; - if ($newDefLine =~ /([a-z0-9_]+) +\@ ([0-9]+) (.*)/i) { + if ($newDefLine =~ /([a-z0-9_]+) +\@ *([0-9]+) (.*)/i) { $newSym = $1; $newOrdinal = $2; $newExtraData = $3; |