@@ -535,44 +535,6 @@ const char utf8_table4[] = {
535535 3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,4 ,4 ,4 ,4 ,5 ,5 ,5 ,5 };
536536
537537
538- #if !defined(VPCOMPAT ) && !defined(HAVE_MEMMOVE )
539- /*************************************************
540- * Emulated memmove() for systems without it *
541- *************************************************/
542-
543- /* This function can make use of bcopy() if it is available. Otherwise do it by
544- steam, as there are some non-Unix environments that lack both memmove() and
545- bcopy(). */
546-
547- static void *
548- emulated_memmove (void * d , const void * s , size_t n )
549- {
550- #ifdef HAVE_BCOPY
551- bcopy (s , d , n );
552- return d ;
553- #else
554- size_t i ;
555- unsigned char * dest = (unsigned char * )d ;
556- const unsigned char * src = (const unsigned char * )s ;
557- if (dest > src )
558- {
559- dest += n ;
560- src += n ;
561- for (i = 0 ; i < n ; ++ i ) * (-- dest ) = * (-- src );
562- return (void * )dest ;
563- }
564- else
565- {
566- for (i = 0 ; i < n ; ++ i ) * dest ++ = * src ++ ;
567- return (void * )(dest - n );
568- }
569- #endif /* not HAVE_BCOPY */
570- }
571- #undef memmove
572- #define memmove (d ,s ,n ) emulated_memmove(d,s,n)
573- #endif /* not VPCOMPAT && not HAVE_MEMMOVE */
574-
575-
576538
577539/*************************************************
578540* Convert code point to UTF-8 *
@@ -1175,28 +1137,6 @@ FWRITE_IGNORE(buf, 1, length, stdout);
11751137
11761138
11771139
1178- #ifndef HAVE_STRERROR
1179- /*************************************************
1180- * Provide strerror() for non-ANSI libraries *
1181- *************************************************/
1182-
1183- /* Some old-fashioned systems still around (e.g. SunOS4) don't have strerror()
1184- in their libraries, but can provide the same facility by this simple
1185- alternative function. */
1186-
1187- extern int sys_nerr ;
1188- extern char * sys_errlist [];
1189-
1190- char *
1191- strerror (int n )
1192- {
1193- if (n < 0 || n >= sys_nerr ) return "unknown error number" ;
1194- return sys_errlist [n ];
1195- }
1196- #endif /* HAVE_STRERROR */
1197-
1198-
1199-
12001140/*************************************************
12011141* Usage function *
12021142*************************************************/
0 commit comments