diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-10-11 18:41:21 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-10-11 18:41:21 -0300 |
| commit | 0c3ea96541525c5e347f1072ac2659f010e2ec34 (patch) | |
| tree | 7d67e22b34a3422465c3dd7ca066fd44cd1aa643 /ltm.c | |
| parent | babaa96eab3a5419889b393424db14377f581a69 (diff) | |
| download | lua-0c3ea96541525c5e347f1072ac2659f010e2ec34.tar.gz lua-0c3ea96541525c5e347f1072ac2659f010e2ec34.tar.bz2 lua-0c3ea96541525c5e347f1072ac2659f010e2ec34.zip | |
no more copytagmethod function
Diffstat (limited to '')
| -rw-r--r-- | ltm.c | 14 |
1 files changed, 0 insertions, 14 deletions
| @@ -108,20 +108,6 @@ static void checktag (lua_State *L, int tag) { | |||
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | 110 | ||
| 111 | LUA_API int lua_copytagmethods (lua_State *L, int tagto, int tagfrom) { | ||
| 112 | int e; | ||
| 113 | lua_lock(L); | ||
| 114 | checktag(L, tagto); | ||
| 115 | checktag(L, tagfrom); | ||
| 116 | for (e=0; e<TM_N; e++) { | ||
| 117 | if (luaT_validevent(tagto, e)) | ||
| 118 | luaT_gettm(G(L), tagto, e) = luaT_gettm(G(L), tagfrom, e); | ||
| 119 | } | ||
| 120 | lua_unlock(L); | ||
| 121 | return tagto; | ||
| 122 | } | ||
| 123 | |||
| 124 | |||
| 125 | int luaT_tag (const TObject *o) { | 111 | int luaT_tag (const TObject *o) { |
| 126 | int t = ttype(o); | 112 | int t = ttype(o); |
| 127 | switch (t) { | 113 | switch (t) { |
