diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-10-13 12:16:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-10-13 12:16:25 -0300 |
commit | b17c76817d008de0e0de460c5d0fac4741d0fe02 (patch) | |
tree | 02b5b942ab01853a5be4f385dceb8ec567c13008 /opcode.c | |
parent | b074306267b70015d770cb33c78dcf6cfe53fb45 (diff) | |
download | lua-b17c76817d008de0e0de460c5d0fac4741d0fe02.tar.gz lua-b17c76817d008de0e0de460c5d0fac4741d0fe02.tar.bz2 lua-b17c76817d008de0e0de460c5d0fac4741d0fe02.zip |
new function "luaI_findconstantbyname".
Diffstat (limited to 'opcode.c')
-rw-r--r-- | opcode.c | 4 |
1 files changed, 2 insertions, 2 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.41 1995/10/09 13:10:20 roberto Exp roberto $"; | 6 | char *rcs_opcode="$Id: opcode.c,v 3.42 1995/10/09 18:45:59 roberto Exp roberto $"; |
7 | 7 | ||
8 | #include <setjmp.h> | 8 | #include <setjmp.h> |
9 | #include <stdlib.h> | 9 | #include <stdlib.h> |
@@ -678,7 +678,7 @@ void lua_pushstring (char *s) | |||
678 | */ | 678 | */ |
679 | void lua_pushliteral (char *s) | 679 | void lua_pushliteral (char *s) |
680 | { | 680 | { |
681 | tsvalue(top) = lua_constant[luaI_findconstant(lua_constcreate(s))]; | 681 | tsvalue(top) = lua_constant[luaI_findconstantbyname(s)]; |
682 | tag(top) = LUA_T_STRING; | 682 | tag(top) = LUA_T_STRING; |
683 | incr_top; | 683 | incr_top; |
684 | } | 684 | } |