aboutsummaryrefslogtreecommitdiff
path: root/opcode.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-10-13 12:16:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1995-10-13 12:16:25 -0300
commitb17c76817d008de0e0de460c5d0fac4741d0fe02 (patch)
tree02b5b942ab01853a5be4f385dceb8ec567c13008 /opcode.c
parentb074306267b70015d770cb33c78dcf6cfe53fb45 (diff)
downloadlua-b17c76817d008de0e0de460c5d0fac4741d0fe02.tar.gz
lua-b17c76817d008de0e0de460c5d0fac4741d0fe02.tar.bz2
lua-b17c76817d008de0e0de460c5d0fac4741d0fe02.zip
new function "luaI_findconstantbyname".
Diffstat (limited to 'opcode.c')
-rw-r--r--opcode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcode.c b/opcode.c
index edf8d4c4..97eb3ea5 100644
--- a/opcode.c
+++ b/opcode.c
@@ -3,7 +3,7 @@
3** TecCGraf - PUC-Rio 3** TecCGraf - PUC-Rio
4*/ 4*/
5 5
6char *rcs_opcode="$Id: opcode.c,v 3.41 1995/10/09 13:10:20 roberto Exp roberto $"; 6char *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*/
679void lua_pushliteral (char *s) 679void 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}