diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-04-01 16:02:43 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-04-01 16:02:43 -0300 |
commit | 59744f03112d4d0a3b589d99c780c24186e277fc (patch) | |
tree | fde44ed71f6eb111d677fc7f929acd2ed5088929 /inout.c | |
parent | bb2e2bec18a322c27066c5898a239129cee46ec9 (diff) | |
download | lua-59744f03112d4d0a3b589d99c780c24186e277fc.tar.gz lua-59744f03112d4d0a3b589d99c780c24186e277fc.tar.bz2 lua-59744f03112d4d0a3b589d99c780c24186e277fc.zip |
"storeglobal" changed to "setglobal"
Diffstat (limited to 'inout.c')
-rw-r--r-- | inout.c | 6 |
1 files changed, 3 insertions, 3 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.50 1997/03/31 20:59:09 roberto Exp roberto $"; | 8 | char *rcs_inout="$Id: inout.c,v 2.51 1997/04/01 17:31:42 roberto Exp roberto $"; |
9 | 9 | ||
10 | #include <stdio.h> | 10 | #include <stdio.h> |
11 | #include <string.h> | 11 | #include <string.h> |
@@ -190,7 +190,7 @@ static void luaI_setglobal (void) | |||
190 | lua_Object value = lua_getparam(2); | 190 | lua_Object value = lua_getparam(2); |
191 | luaL_arg_check(value != LUA_NOOBJECT, "setglobal", 2, NULL); | 191 | luaL_arg_check(value != LUA_NOOBJECT, "setglobal", 2, NULL); |
192 | lua_pushobject(value); | 192 | lua_pushobject(value); |
193 | lua_storeglobal(luaL_check_string(1, "setglobal")); | 193 | lua_setglobal(luaL_check_string(1, "setglobal")); |
194 | lua_pushobject(value); /* return given value */ | 194 | lua_pushobject(value); /* return given value */ |
195 | } | 195 | } |
196 | 196 | ||
@@ -199,7 +199,7 @@ static void luaI_basicsetglobal (void) | |||
199 | lua_Object value = lua_getparam(2); | 199 | lua_Object value = lua_getparam(2); |
200 | luaL_arg_check(value != LUA_NOOBJECT, "basicsetglobal", 2, NULL); | 200 | luaL_arg_check(value != LUA_NOOBJECT, "basicsetglobal", 2, NULL); |
201 | lua_pushobject(value); | 201 | lua_pushobject(value); |
202 | lua_basicstoreglobal(luaL_check_string(1, "basicsetglobal")); | 202 | lua_basicsetglobal(luaL_check_string(1, "basicsetglobal")); |
203 | lua_pushobject(value); /* return given value */ | 203 | lua_pushobject(value); /* return given value */ |
204 | } | 204 | } |
205 | 205 | ||