]> granicus.if.org Git - graphviz/commitdiff
Remove checks bcopy and bzero from features/sfio
authorErwin Janssen <erwinjanssen@outlook.com>
Mon, 9 Jan 2017 11:50:49 +0000 (12:50 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Tue, 17 Jan 2017 18:14:56 +0000 (19:14 +0100)
The code contains several checks regarding these functions, but they are
never actually used in lib/sfio. It is therefore not needed to test their
availability.

lib/sfio/features/sfio
lib/sfio/sfhdr.h
windows/include/FEATURE/sfio

index 6ef9b3091af40e4a90c5da46c0ac7bcd40a2a2a9..20fd540535ccaecc58a7a29d525b5f53db8cdd7a 100644 (file)
@@ -33,9 +33,6 @@ exit    cleanup note{ stuck with standard _cleanup }end execute{
         main() { printf("cleanup\n"); exit(1); }
 }end
 
-lib bcopy
-lib bzero
-
 lib memchr note{ see if memchr is fast }end execute{
        #include        <sys/types.h>
        #include        <sys/times.h>
@@ -343,22 +340,6 @@ proto open note{ open() has a vararg prototype }end compile{
        }
 }end
 
-proto bcopy note{ bcopy() has prototype }end compile{
-       #include        <string.h>
-       main()
-       {       char    buf[128];
-               bcopy(buf, "abc", 3);
-       }
-}end
-
-proto bzero note{ bzero() has prototype }end compile{
-       #include        <string.h>
-       main()
-       {       char    buf[128];
-               bzero(buf, 128);
-       }
-}end
-
 lib     poll_fd_1 note{ fd is first arg to poll() }end execute{
         #include <poll.h>
         _BEGIN_EXTERNS_
index 6eea4d02d579a3d712b70b92f175056acbd4032c..a6a6700bee5cdccdfc2db46491b89b4d5c03439a 100644 (file)
@@ -846,13 +846,6 @@ extern "C" {
 #endif /*_hdr_unistd*/
 #endif /* WIN32 */
 
-#if _lib_bcopy && !_proto_bcopy
-    extern void bcopy(const void *, void *, size_t);
-#endif
-#if _lib_bzero && !_proto_bzero
-    extern void bzero(void *, size_t);
-#endif
-
     extern time_t time(time_t *);
     extern int waitpid(int, int *, int);
 #ifndef WIN32
index f2137b3d9366a1095b81575a9b19eef70a505074..4c0259b8b4819b7e5f9f3fc2efc07ffc3248ef04 100644 (file)
@@ -12,8 +12,6 @@
 #define _lib_getpagesize       0       /* getpagesize() in default lib(s) */
 #define _tmp_rmfail    1       /* file not removable if still opened */
 #define _proto_open    1       /* open() has a vararg prototype */
-#define _proto_bcopy   1       /* bcopy() has prototype */
-#define _proto_bzero   1       /* bzero() has prototype */
 #define _lib_strtod    1       /* strtod() in default lib(s) */
 #define _lib_locale    1       /* Check for localeconv */
 #endif