From: Erwin Janssen Date: Mon, 9 Jan 2017 11:50:49 +0000 (+0100) Subject: Remove checks bcopy and bzero from features/sfio X-Git-Tag: 2.42.0~213^2~2^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9320297db5d7cc6b6a21d9398ded931656cd603d;p=graphviz Remove checks bcopy and bzero from features/sfio 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. --- diff --git a/lib/sfio/features/sfio b/lib/sfio/features/sfio index 6ef9b3091..20fd54053 100644 --- a/lib/sfio/features/sfio +++ b/lib/sfio/features/sfio @@ -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 #include @@ -343,22 +340,6 @@ proto open note{ open() has a vararg prototype }end compile{ } }end -proto bcopy note{ bcopy() has prototype }end compile{ - #include - main() - { char buf[128]; - bcopy(buf, "abc", 3); - } -}end - -proto bzero note{ bzero() has prototype }end compile{ - #include - main() - { char buf[128]; - bzero(buf, 128); - } -}end - lib poll_fd_1 note{ fd is first arg to poll() }end execute{ #include _BEGIN_EXTERNS_ diff --git a/lib/sfio/sfhdr.h b/lib/sfio/sfhdr.h index 6eea4d02d..a6a6700be 100644 --- a/lib/sfio/sfhdr.h +++ b/lib/sfio/sfhdr.h @@ -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 diff --git a/windows/include/FEATURE/sfio b/windows/include/FEATURE/sfio index f2137b3d9..4c0259b8b 100644 --- a/windows/include/FEATURE/sfio +++ b/windows/include/FEATURE/sfio @@ -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