mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
removed obsolete own memmove implementation (#242)
This commit is contained in:
parent
9b9cab5874
commit
463a18623d
@ -1,3 +1,7 @@
|
||||
2009-02-03 Enrico Weigelt, metux ITS <weigelt@metux.de>
|
||||
|
||||
* edit/editcmd.c, configure.ac: removed obsolete own implementation of memove (#242)
|
||||
|
||||
2009-02-01 Enrico Weigelt, metux ITS <weigelt@metux.de>
|
||||
|
||||
* src/util.c: fixed name_trunc() on NULL or empty parameters
|
||||
|
@ -176,7 +176,7 @@ AC_CHECK_FUNCS([\
|
||||
cfgetospeed \
|
||||
getegid geteuid getgid getsid getuid \
|
||||
initgroups isascii \
|
||||
memcpy memmove memset \
|
||||
memcpy memset \
|
||||
putenv \
|
||||
setreuid setuid statfs strerror strftime sysconf \
|
||||
tcgetattr tcsetattr truncate \
|
||||
|
@ -101,28 +101,6 @@ strcasechr (const char *s, int c)
|
||||
return s;
|
||||
}
|
||||
|
||||
#ifndef HAVE_MEMMOVE
|
||||
/* for Christophe */
|
||||
static void *memmove (void *dest, const void *src, size_t n)
|
||||
{
|
||||
char *t;
|
||||
const char *s;
|
||||
|
||||
if (dest <= src) {
|
||||
t = (char *) dest;
|
||||
s = (const char *) src;
|
||||
while (n--)
|
||||
*t++ = *s++;
|
||||
} else {
|
||||
t = (char *) dest + n;
|
||||
s = (const char *) src + n;
|
||||
while (n--)
|
||||
*--t = *--s;
|
||||
}
|
||||
return dest;
|
||||
}
|
||||
#endif /* !HAVE_MEMMOVE */
|
||||
|
||||
/* #define itoa MY_itoa <---- this line is now in edit.h */
|
||||
static char *
|
||||
MY_itoa (int i)
|
||||
|
@ -647,10 +647,6 @@ extern int errno;
|
||||
char *strdup(const char *s);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_MEMMOVE
|
||||
void *memmove(void *dest,const void *src,int size);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_INITGROUPS
|
||||
int initgroups(char *name,gid_t id);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user