aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-02-17 16:30:36 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-02-17 16:30:36 -0200
commit1f01998516ca5f702af3e3655f6c38bfc581aae3 (patch)
treedb112d9a11e0c39701dd072fb01d210406df92dd
parentc929376d59daa027bbe340ac3a50794592621e88 (diff)
downloadlua-1f01998516ca5f702af3e3655f6c38bfc581aae3.tar.gz
lua-1f01998516ca5f702af3e3655f6c38bfc581aae3.tar.bz2
lua-1f01998516ca5f702af3e3655f6c38bfc581aae3.zip
nobody uses memmove any more.
-rw-r--r--lobject.c17
-rw-r--r--lobject.h10
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 @@
1/* 1/*
2** $Id: lobject.c,v 1.29 1999/12/30 18:28:40 roberto Exp roberto $ 2** $Id: lobject.c,v 1.30 2000/01/25 18:44:21 roberto Exp roberto $
3** Some generic functions over Lua objects 3** Some generic functions over Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -56,21 +56,6 @@ int luaO_equalval (const TObject *t1, const TObject *t2) {
56} 56}
57 57
58 58
59#ifdef OLD_ANSI
60void luaO_memup (void *dest, void *src, int size) {
61 while (size--)
62 ((char *)dest)[size]=((char *)src)[size];
63}
64
65void luaO_memdown (void *dest, void *src, int size) {
66 int i;
67 for (i=0; i<size; i++)
68 ((char *)dest)[i]=((char *)src)[i];
69}
70#endif
71
72
73
74static double expten (unsigned int e) { 59static double expten (unsigned int e) {
75 double exp = 10.0; 60 double exp = 10.0;
76 double res = 1.0; 61 double res = 1.0;
diff --git a/lobject.h b/lobject.h
index 0236aac8..87afb761 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 1.46 2000/02/11 16:52:54 roberto Exp roberto $ 2** $Id: lobject.h,v 1.47 2000/02/14 16:51:08 roberto Exp roberto $
3** Type definitions for Lua objects 3** Type definitions for Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -237,13 +237,5 @@ int luaO_equalval (const TObject *t1, const TObject *t2);
237int luaO_redimension (lua_State *L, int oldsize); 237int luaO_redimension (lua_State *L, int oldsize);
238int luaO_str2d (const char *s, real *result); 238int luaO_str2d (const char *s, real *result);
239 239
240#ifdef OLD_ANSI
241void luaO_memup (void *dest, void *src, int size);
242void luaO_memdown (void *dest, void *src, int size);
243#else
244#include <string.h>
245#define luaO_memup(d,s,n) memmove(d,s,n)
246#define luaO_memdown(d,s,n) memmove(d,s,n)
247#endif
248 240
249#endif 241#endif