diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-01-25 02:44:19 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-01-25 02:44:19 +0000 |
commit | 19533127701e664536aa1eea65d278dbab0ee97e (patch) | |
tree | ea03ca6c0baeacde642bec919ad36d5b500d3dbb /conform/conformtest.pl | |
parent | 45ef592db230404f40a618db0d8be845416c39d3 (diff) | |
download | glibc-19533127701e664536aa1eea65d278dbab0ee97e.tar glibc-19533127701e664536aa1eea65d278dbab0ee97e.tar.gz glibc-19533127701e664536aa1eea65d278dbab0ee97e.tar.bz2 glibc-19533127701e664536aa1eea65d278dbab0ee97e.zip |
Update.
* conform/conformtest.pl (checknamespace): Ignore #undef lines.
Diffstat (limited to 'conform/conformtest.pl')
-rw-r--r-- | conform/conformtest.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/conform/conformtest.pl b/conform/conformtest.pl index 20fdae384e..536dbd79f0 100644 --- a/conform/conformtest.pl +++ b/conform/conformtest.pl @@ -22,6 +22,7 @@ $CFLAGS = "-I. '-D__attribute__(x)=' -D_XOPEN_SOURCE=500"; "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', @@ -214,7 +215,8 @@ sub checknamespace { close (TESTFILE); open (CONTENT, "$CC $CFLAGS -E $fnamebase.c -Wp,-dN | sed -e '/^# [1-9]/d' -e '/^[[:space:]]*\$/d' |"); - while (<CONTENT>) { + loop: while (<CONTENT>) { + next loop if (/^#undef /); chop; if (/^#define (.*)/) { $nerrors = newtoken ($1, $nerrors, @allow); |