aboutsummaryrefslogtreecommitdiff
path: root/conform
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-09-04 20:47:21 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-09-04 20:47:21 +0000
commitb92a20b5603bfb7cd7cd775f3ca9099731ac63cf (patch)
treec69e17148e280664329a85a1cb2ef96cb4d6237c /conform
parent9fc2e09ffad2c702b6768bc4560b0cc55fce0914 (diff)
downloadglibc-b92a20b5603bfb7cd7cd775f3ca9099731ac63cf.zip
glibc-b92a20b5603bfb7cd7cd775f3ca9099731ac63cf.tar.gz
glibc-b92a20b5603bfb7cd7cd775f3ca9099731ac63cf.tar.bz2
conformtest: Fix namespace testing.
Diffstat (limited to 'conform')
-rw-r--r--conform/conformtest.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/conform/conformtest.pl b/conform/conformtest.pl
index ec2e9c3..8b97d0d 100644
--- a/conform/conformtest.pl
+++ b/conform/conformtest.pl
@@ -236,6 +236,8 @@ sub newtoken {
for ($idx = 0; $idx <= $#allow; ++$idx) {
return if (poorfnmatch ($allow[$idx], $token));
}
+
+ $errors{$token} = 1;
}
@@ -786,7 +788,7 @@ while ($#headers >= 0) {
if (/^element *({([^}]*)}|([^ ]*)) *({([^}]*)}|([^ ]*)) *([A-Za-z0-9_]*) *(.*)/) {
push @allow, $7;
} elsif (/^(macro|constant|macro-constant|macro-int-constant) +([a-zA-Z0-9_]*) *(?:{([^}]*)} *)?(?:([>=<!]+) ([A-Za-z0-9_-]*))?/) {
- push @allow, $1;
+ push @allow, $2;
} elsif (/^(type|tag) *({([^}]*)|([a-zA-Z0-9_]*))/) {
my($type) = "$3$4";