diff options
Diffstat (limited to 'opcode.c')
| -rw-r--r-- | opcode.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** TecCGraf - PUC-Rio | 3 | ** TecCGraf - PUC-Rio |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char *rcs_opcode="$Id: opcode.c,v 3.66 1996/03/22 19:12:15 roberto Exp roberto $"; | 6 | char *rcs_opcode="$Id: opcode.c,v 3.67 1996/04/22 18:00:37 roberto Exp roberto $"; |
| 7 | 7 | ||
| 8 | #include <setjmp.h> | 8 | #include <setjmp.h> |
| 9 | #include <stdio.h> | 9 | #include <stdio.h> |
| @@ -717,7 +717,7 @@ void *lua_getuserdata (lua_Object object) | |||
| 717 | } | 717 | } |
| 718 | 718 | ||
| 719 | 719 | ||
| 720 | lua_Object lua_getref (lua_Reference ref) | 720 | lua_Object lua_getref (int ref) |
| 721 | { | 721 | { |
| 722 | Object *o = luaI_getref(ref); | 722 | Object *o = luaI_getref(ref); |
| 723 | if (o == NULL) | 723 | if (o == NULL) |
| @@ -729,7 +729,7 @@ lua_Object lua_getref (lua_Reference ref) | |||
| 729 | } | 729 | } |
| 730 | 730 | ||
| 731 | 731 | ||
| 732 | void lua_pushref (lua_Reference ref) | 732 | void lua_pushref (int ref) |
| 733 | { | 733 | { |
| 734 | Object *o = luaI_getref(ref); | 734 | Object *o = luaI_getref(ref); |
| 735 | if (o == NULL) | 735 | if (o == NULL) |
| @@ -738,7 +738,7 @@ void lua_pushref (lua_Reference ref) | |||
| 738 | } | 738 | } |
| 739 | 739 | ||
| 740 | 740 | ||
| 741 | lua_Reference lua_ref (int lock) | 741 | int lua_ref (int lock) |
| 742 | { | 742 | { |
| 743 | adjustC(1); | 743 | adjustC(1); |
| 744 | return luaI_ref(--top, lock); | 744 | return luaI_ref(--top, lock); |
