delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/12/02/07:59:27

Message-ID: <3A28F945.93C0CFCE@softhome.net>
Date: Sat, 02 Dec 2000 14:29:41 +0100
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: lt,en
MIME-Version: 1.0
To: DJGPP Workers <djgpp-workers AT delorie DOT com>
Subject: Patch: testsuite for header file intercompatibility
Reply-To: djgpp-workers AT delorie DOT com

Those tests just include all standard header files to see if there
are any warnings/errors about redefinitions, conflicts, etc.
There are two similar tests - testinc1.c and testinc2.c. The 
difference - one includes <sys/fsext.h> and <stdarg.h>, the 
other one includes <varargs.h>.

Currently they report redefinition warnings between <math.h> and
<libm/math.h>, I'll see later if this is a problem. Or is it expected
behaviour?

OK to commit?

Laurynas

Index: djgpp/tests/include/makefile
===================================================================
RCS file: makefile
diff -N makefile
--- /dev/null   Tue May  5 16:32:27 1998
+++ makefile    Sat Dec  2 07:29:03 2000
@@ -0,0 +1,10 @@
+all : testinc1.exe testinc2.exe
+
+testinc1.exe : testinc1.o
+       gcc $< -o $@
+
+testinc2.exe : testinc2.o
+       gcc $< -o $@
+
+testinc1.o : testinc1.c
+testinc2.o : testinc2.c
Index: djgpp/tests/include/testinc1.c
===================================================================
RCS file: testinc1.c
diff -N testinc1.c
--- /dev/null   Tue May  5 16:32:27 1998
+++ testinc1.c  Sat Dec  2 07:29:03 2000
@@ -0,0 +1,123 @@
+#include <debug/dbgcom.h>
+#include <debug/redir.h>
+#include <debug/stab.h>
+#include <debug/tss.h>
+#include <debug/v2load.h>
+#include <debug/wild.h>
+#include <inlines/ctype.ha>
+#include <inlines/pc.h>
+#include <inlines/ctype.hd>
+#include <libc/asmdefs.h>
+#include <libc/atexit.h>
+#include <libc/bss.h>
+#include <libc/dosexec.h>
+#include <libc/dosio.h>
+#include <libc/environ.h>
+#include <libc/farptrgs.h>
+#include <libc/file.h>
+#include <libc/ieee.h>
+#include <libc/internal.h>
+#include <libc/local.h>
+#include <libc/stdiohk.h>
+#include <libc/stubs.h>
+#include <libc/symlink.h>
+#include <libc/ttyprvt.h>
+#include <libc/unconst.h>
+#include <libm/math.h>
+#include <machine/asm.h>
+#include <machine/endian.h>
+#include <netinet/in.h>
+#include <sys/cdefs.h>
+#include <sys/config.h>
+#include <sys/dir.h>
+#include <sys/djtypes.h>
+#include <sys/dxe.h>
+#include <sys/errno.h>
+#include <sys/exceptn.h>
+#include <sys/farptr.h>
+#include <sys/fcntl.h>
+#include <sys/file.h>
+#include <sys/fsext.h>
+#include <sys/ioctl.h>
+#include <sys/mman.h>
+#include <sys/mono.h>
+#include <sys/movedata.h>
+#include <sys/nearptr.h>
+#include <sys/param.h>
+#include <sys/resource.h>
+#include <sys/segments.h>
+#include <sys/stat.h>
+#include <sys/sysmacros.h>
+#include <sys/system.h>
+#include <sys/time.h>
+#include <sys/timeb.h>
+#include <sys/times.h>
+#include <sys/types.h>
+#include <sys/utsname.h>
+#include <sys/version.h>
+#include <sys/vfs.h>
+#include <sys/wait.h>
+#include <ar.h>
+#include <assert.h>
+#include <bios.h>
+#include <coff.h>
+#include <conio.h>
+#include <crt0.h>
+#include <ctype.h>
+#include <dir.h>
+#include <direct.h>
+#include <dirent.h>
+#include <dos.h>
+#include <dpmi.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <file.h>
+#include <flexlexe.h>
+#include <float.h>
+#include <fnmatch.h>
+#include <ftw.h>
+#include <getpagesize.h>
+#include <glob.h>
+#include <go32.h>
+#include <gppconio.h>
+#include <grp.h>
+#include <ieeefp.h>
+#include <io.h>
+#include <keys.h>
+#include <limits.h>
+#include <locale.h>
+#include <malloc.h>
+#include <math.h>
+#include <mem.h>
+#include <memory.h>
+#include <mntent.h>
+#include <osfcn.h>
+#include <pc.h>
+#include <process.h>
+#include <pwd.h>
+#include <random.h>
+#include <regex.h>
+#include <search.h>
+#include <setjmp.h>
+#include <share.h>
+#include <signal.h>
+#include <std.h>
+#include <stdarg.h>
+#include <stddef.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
+#include <termios.h>
+#include <time.h>
+#include <tzfile.h>
+#include <unistd.h>
+#include <utime.h>
+#include <values.h>
+#include <wchar.h>
+#include <wctype.h>
+
+int main(void)
+{
+   return 0;
+}
Index: djgpp/tests/include/testinc2.c
===================================================================
RCS file: testinc2.c
diff -N testinc2.c
--- /dev/null   Tue May  5 16:32:27 1998
+++ testinc2.c  Sat Dec  2 07:29:03 2000
@@ -0,0 +1,122 @@
+#include <debug/dbgcom.h>
+#include <debug/redir.h>
+#include <debug/stab.h>
+#include <debug/tss.h>
+#include <debug/v2load.h>
+#include <debug/wild.h>
+#include <inlines/ctype.ha>
+#include <inlines/pc.h>
+#include <inlines/ctype.hd>
+#include <libc/asmdefs.h>
+#include <libc/atexit.h>
+#include <libc/bss.h>
+#include <libc/dosexec.h>
+#include <libc/dosio.h>
+#include <libc/environ.h>
+#include <libc/farptrgs.h>
+#include <libc/file.h>
+#include <libc/ieee.h>
+#include <libc/internal.h>
+#include <libc/local.h>
+#include <libc/stdiohk.h>
+#include <libc/stubs.h>
+#include <libc/symlink.h>
+#include <libc/ttyprvt.h>
+#include <libc/unconst.h>
+#include <libm/math.h>
+#include <machine/asm.h>
+#include <machine/endian.h>
+#include <netinet/in.h>
+#include <sys/cdefs.h>
+#include <sys/config.h>
+#include <sys/dir.h>
+#include <sys/djtypes.h>
+#include <sys/dxe.h>
+#include <sys/errno.h>
+#include <sys/exceptn.h>
+#include <sys/farptr.h>
+#include <sys/fcntl.h>
+#include <sys/file.h>
+#include <sys/ioctl.h>
+#include <sys/mman.h>
+#include <sys/mono.h>
+#include <sys/movedata.h>
+#include <sys/nearptr.h>
+#include <sys/param.h>
+#include <sys/resource.h>
+#include <sys/segments.h>
+#include <sys/stat.h>
+#include <sys/sysmacros.h>
+#include <sys/system.h>
+#include <sys/time.h>
+#include <sys/timeb.h>
+#include <sys/times.h>
+#include <sys/types.h>
+#include <sys/utsname.h>
+#include <sys/version.h>
+#include <sys/vfs.h>
+#include <sys/wait.h>
+#include <ar.h>
+#include <assert.h>
+#include <bios.h>
+#include <coff.h>
+#include <conio.h>
+#include <crt0.h>
+#include <ctype.h>
+#include <dir.h>
+#include <direct.h>
+#include <dirent.h>
+#include <dos.h>
+#include <dpmi.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <file.h>
+#include <flexlexe.h>
+#include <float.h>
+#include <fnmatch.h>
+#include <ftw.h>
+#include <getpagesize.h>
+#include <glob.h>
+#include <go32.h>
+#include <gppconio.h>
+#include <grp.h>
+#include <ieeefp.h>
+#include <io.h>
+#include <keys.h>
+#include <limits.h>
+#include <locale.h>
+#include <malloc.h>
+#include <math.h>
+#include <mem.h>
+#include <memory.h>
+#include <mntent.h>
+#include <osfcn.h>
+#include <pc.h>
+#include <process.h>
+#include <pwd.h>
+#include <random.h>
+#include <regex.h>
+#include <search.h>
+#include <setjmp.h>
+#include <share.h>
+#include <signal.h>
+#include <std.h>
+#include <stddef.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
+#include <termios.h>
+#include <time.h>
+#include <tzfile.h>
+#include <unistd.h>
+#include <utime.h>
+#include <values.h>
+#include <varargs.h>
+#include <wchar.h>
+#include <wctype.h>
+
+int main(void)
+{
+   return 0;
+}

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019