This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

conformtest: Fix typo in handling typed-constant from allow-header


I noticed that conformtest.pl had a typo in the code handling
typed-constant in the data for a header referenced with allow-header
(recording 1 instead of $1 as the allowed symbol).  I've committed as
obvious this patch to fix this.  Tested x86_64.

2012-04-28  Joseph Myers  <joseph@codesourcery.com>

	* conform/conformtest.pl: Fix typo in handling typed-constant from
	allow-header.

diff --git a/conform/conformtest.pl b/conform/conformtest.pl
index 83650c2..2962e55 100644
--- a/conform/conformtest.pl
+++ b/conform/conformtest.pl
@@ -1095,7 +1095,7 @@ while ($#headers >= 0) {
       } elsif (/^constant *([a-zA-Z0-9_]*) *([A-Za-z0-9_]*)?/) {
 	push @allow, $1;
       } elsif (/^typed-constant *([a-zA-Z0-9_]*) *({([^}]*)}|([^ ]*)) *([A-Za-z0-9_]*)?/) {
-	push @allow, 1;
+	push @allow, $1;
       } elsif (/^(type|tag) *({([^}]*)|([a-zA-Z0-9_]*))/) {
 	my($type) = "$3$4";
 

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]