idlc/source/preproc/unix.c | 36 ------------------------------------ 1 file changed, 36 deletions(-)
New commits: commit 41bc308973c8567aaa368949a02f1cf420c1ee8a Author: Tor Lillqvist <t...@iki.fi> Date: Tue Sep 27 15:59:48 2011 +0300 Let's rely on memmove() being sane on all our platforms Defining an own memmove() here is silly. It breaks compilation against MacOSX 10.6 SDK where memmove is a macro. If we really wanted to avoid the system memmove() here, surely we should then use rtl_moveMemory(). But since when is idlcpp performance critical? diff --git a/idlc/source/preproc/unix.c b/idlc/source/preproc/unix.c index b0a8f47..461f1d5 100644 --- a/idlc/source/preproc/unix.c +++ b/idlc/source/preproc/unix.c @@ -212,40 +212,4 @@ void setsource(fp, -1, fd, NULL, 0); } - -/* memmove is defined here because some vendors don't provide it at - all and others do a terrible job (like calling malloc) */ - -#if !defined(__IBMC__) && !defined(WNT) && !defined(__GLIBC__) - -void * - memmove(void *dp, const void *sp, size_t n) -{ - unsigned char *cdp, *csp; - - if (n <= 0) - return 0; - cdp = dp; - csp = (unsigned char *) sp; - if (cdp < csp) - { - do - { - *cdp++ = *csp++; - } while (--n); - } - else - { - cdp += n; - csp += n; - do - { - *--cdp = *--csp; - } while (--n); - } - return 0; -} - -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits