diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-10-04 14:13:02 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-10-04 14:13:02 -0300 |
commit | 68f337dfa617732646a4a974eb33b25daf45a1e2 (patch) | |
tree | 81e72eaf0ada8a2246c6cf1af2d96ddaef41d117 /inout.c | |
parent | f132ac03bcaf0163f1f86b5114c93a753e17f28b (diff) | |
download | lua-68f337dfa617732646a4a974eb33b25daf45a1e2.tar.gz lua-68f337dfa617732646a4a974eb33b25daf45a1e2.tar.bz2 lua-68f337dfa617732646a4a974eb33b25daf45a1e2.zip |
Garbage collection of functions + header structure for functions
Diffstat (limited to 'inout.c')
-rw-r--r-- | inout.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5,7 +5,7 @@ | |||
5 | ** Also provides some predefined lua functions. | 5 | ** Also provides some predefined lua functions. |
6 | */ | 6 | */ |
7 | 7 | ||
8 | char *rcs_inout="$Id: inout.c,v 2.19 1995/05/02 18:43:03 roberto Exp roberto $"; | 8 | char *rcs_inout="$Id: inout.c,v 2.20 1995/05/16 17:23:58 roberto Exp $"; |
9 | 9 | ||
10 | #include <stdio.h> | 10 | #include <stdio.h> |
11 | #include <stdlib.h> | 11 | #include <stdlib.h> |
@@ -222,7 +222,7 @@ void lua_print (void) | |||
222 | { | 222 | { |
223 | if (lua_isnumber(obj)) printf("%g\n",lua_getnumber(obj)); | 223 | if (lua_isnumber(obj)) printf("%g\n",lua_getnumber(obj)); |
224 | else if (lua_isstring(obj)) printf("%s\n",lua_getstring(obj)); | 224 | else if (lua_isstring(obj)) printf("%s\n",lua_getstring(obj)); |
225 | else if (lua_isfunction(obj)) printf("function: %p\n",bvalue(luaI_Address(obj))); | 225 | else if (lua_isfunction(obj)) printf("function: %p\n",(luaI_Address(obj))->value.tf); |
226 | else if (lua_iscfunction(obj)) printf("cfunction: %p\n",lua_getcfunction(obj) | 226 | else if (lua_iscfunction(obj)) printf("cfunction: %p\n",lua_getcfunction(obj) |
227 | ); | 227 | ); |
228 | else if (lua_isuserdata(obj)) printf("userdata: %p\n",lua_getuserdata(obj)); | 228 | else if (lua_isuserdata(obj)) printf("userdata: %p\n",lua_getuserdata(obj)); |