2001-01-24 Ulrich Drepper <drepper@redhat.com>
+ * conform/conformtest.pl: Handle allow-header correctly.
+
+ * conform/data/time.h-data: Use correct comment form.
+
* conform/conformtest.pl (checknamespace): Ignore #undef lines.
* configure.in: Comment out binutils version test.
"dlfcn.h", "dirent.h", "ctype.h", "cpio.h", "assert.h",
"arpa/inet.h", "aio.h");
-@headers = ("aio.h");
-
# These are the ISO C99 keywords.
@keywords = ('auto', 'break', 'case', 'char', 'const', 'continue', 'default',
'do', 'double', 'else', 'enum', 'extern', 'float', 'for', 'goto',
print TESTFILE "#include <$h>\n";
close (TESTFILE);
- open (CONTENT, "$CC $CFLAGS -E $fnamebase.c -Wp,-dN | sed -e '/^# [1-9]/d' -e '/^[[:space:]]*\$/d' |");
+ open (CONTENT, "$CC $CFLAGS -E $fnamebase.c -P -Wp,-dN | sed -e '/^# [1-9]/d' -e '/^[[:space:]]*\$/d' |");
loop: while (<CONTENT>) {
next loop if (/^#undef /);
chop;
compiletest ($fnamebase, "Test availability of macro $macro",
"Macro \"$macro\" is not available.", $missing);
- } elsif (/^allow *(.*)/) {
- my($pattern) = $1;
- push @allow, $pattern;
- next control;
} elsif (/^allow-header *(.*)/) {
my($pattern) = $1;
push @allowheader, $pattern;
next control;
+ } elsif (/^allow *(.*)/) {
+ my($pattern) = $1;
+ push @allow, $pattern;
+ next control;
} else {
# printf ("line is `%s'\n", $_);
next control;
} elsif (/^allow *(.*)/) {
push @allow, $1;
} elsif (/^allow-header *(.*)/) {
+ # XXX We should have a test for recursive dependencies here.
push @allowheader, $1;
}
}