From 1f01998516ca5f702af3e3655f6c38bfc581aae3 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 17 Feb 2000 16:30:36 -0200 Subject: [PATCH] nobody uses memmove any more. --- lobject.c | 17 +---------------- lobject.h | 10 +--------- 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/lobject.c b/lobject.c index d89e2211..af98ebf6 100644 --- a/lobject.c +++ b/lobject.c @@ -1,5 +1,5 @@ /* -** $Id: lobject.c,v 1.29 1999/12/30 18:28:40 roberto Exp roberto $ +** $Id: lobject.c,v 1.30 2000/01/25 18:44:21 roberto Exp roberto $ ** Some generic functions over Lua objects ** See Copyright Notice in lua.h */ @@ -56,21 +56,6 @@ int luaO_equalval (const TObject *t1, const TObject *t2) { } -#ifdef OLD_ANSI -void luaO_memup (void *dest, void *src, int size) { - while (size--) - ((char *)dest)[size]=((char *)src)[size]; -} - -void luaO_memdown (void *dest, void *src, int size) { - int i; - for (i=0; i -#define luaO_memup(d,s,n) memmove(d,s,n) -#define luaO_memdown(d,s,n) memmove(d,s,n) -#endif #endif