mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-01 00:54:24 +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>
|
2009-02-01 Enrico Weigelt, metux ITS <weigelt@metux.de>
|
||||||
|
|
||||||
* src/util.c: fixed name_trunc() on NULL or empty parameters
|
* src/util.c: fixed name_trunc() on NULL or empty parameters
|
||||||
|
@ -176,7 +176,7 @@ AC_CHECK_FUNCS([\
|
|||||||
cfgetospeed \
|
cfgetospeed \
|
||||||
getegid geteuid getgid getsid getuid \
|
getegid geteuid getgid getsid getuid \
|
||||||
initgroups isascii \
|
initgroups isascii \
|
||||||
memcpy memmove memset \
|
memcpy memset \
|
||||||
putenv \
|
putenv \
|
||||||
setreuid setuid statfs strerror strftime sysconf \
|
setreuid setuid statfs strerror strftime sysconf \
|
||||||
tcgetattr tcsetattr truncate \
|
tcgetattr tcsetattr truncate \
|
||||||
|
@ -101,28 +101,6 @@ strcasechr (const char *s, int c)
|
|||||||
return s;
|
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 */
|
/* #define itoa MY_itoa <---- this line is now in edit.h */
|
||||||
static char *
|
static char *
|
||||||
MY_itoa (int i)
|
MY_itoa (int i)
|
||||||
|
@ -647,10 +647,6 @@ extern int errno;
|
|||||||
char *strdup(const char *s);
|
char *strdup(const char *s);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_MEMMOVE
|
|
||||||
void *memmove(void *dest,const void *src,int size);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef HAVE_INITGROUPS
|
#ifndef HAVE_INITGROUPS
|
||||||
int initgroups(char *name,gid_t id);
|
int initgroups(char *name,gid_t id);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user