mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 14:40:06 +00:00
Update.
* conform/conformtest.pl: Fix handling of macro-str.
This commit is contained in:
parent
aaca79eb56
commit
7cc9fcf4fd
@ -1,5 +1,7 @@
|
|||||||
2001-01-26 Ulrich Drepper <drepper@redhat.com>
|
2001-01-26 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* conform/conformtest.pl: Fix handling of macro-str.
|
||||||
|
|
||||||
* conform/data/inttypes.h-data: Add missing definition and all of
|
* conform/data/inttypes.h-data: Add missing definition and all of
|
||||||
stdint.h-data.
|
stdint.h-data.
|
||||||
|
|
||||||
|
@ -694,7 +694,7 @@ while ($#headers >= 0) {
|
|||||||
|
|
||||||
compiletest ($fnamebase, "Test for type of function $fname",
|
compiletest ($fnamebase, "Test for type of function $fname",
|
||||||
"Function \"$fname\" has incorrect type.", $res, 0);
|
"Function \"$fname\" has incorrect type.", $res, 0);
|
||||||
} elsif (/^macro-str *([^ ]*)\s*(\".*\")/) {
|
} elsif (/^macro-str *([^ ]*) *(\".*\")/) {
|
||||||
# The above regex doesn't handle a \" in a string.
|
# The above regex doesn't handle a \" in a string.
|
||||||
my($macro) = "$1";
|
my($macro) = "$1";
|
||||||
my($string) = "$2";
|
my($string) = "$2";
|
||||||
@ -721,7 +721,7 @@ while ($#headers >= 0) {
|
|||||||
print TESTFILE "#include <$h>\n";
|
print TESTFILE "#include <$h>\n";
|
||||||
# We can't include <string.h> here.
|
# We can't include <string.h> here.
|
||||||
print TESTFILE "extern int (strcmp)(const char *, const char *);\n";
|
print TESTFILE "extern int (strcmp)(const char *, const char *);\n";
|
||||||
print TESTFILE "int main (void) { return strcmp ($macro, $string) != 0;}\n";
|
print TESTFILE "int main (void) { return (strcmp) ($macro, $string) != 0;}\n";
|
||||||
close (TESTFILE);
|
close (TESTFILE);
|
||||||
|
|
||||||
$res = runtest ($fnamebase, "Testing for value of macro $macro",
|
$res = runtest ($fnamebase, "Testing for value of macro $macro",
|
||||||
|
Loading…
Reference in New Issue
Block a user