diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-05 16:33:32 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-05 16:33:32 -0300 |
commit | 6e80c1cde193b767d63d2cc30ebd71d65512e061 (patch) | |
tree | cb599bdc956c0dc9b3d469bb01de47185db3e4e2 /lstrlib.c | |
parent | f67f324377aff66d78479eaaffbb94a6b092ae45 (diff) | |
download | lua-6e80c1cde193b767d63d2cc30ebd71d65512e061.tar.gz lua-6e80c1cde193b767d63d2cc30ebd71d65512e061.tar.bz2 lua-6e80c1cde193b767d63d2cc30ebd71d65512e061.zip |
new version for API
Diffstat (limited to 'lstrlib.c')
-rw-r--r-- | lstrlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstrlib.c,v 1.49 2000/08/31 13:30:22 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.50 2000/08/31 20:23:40 roberto Exp roberto $ |
3 | ** Standard library for string operations and pattern-matching | 3 | ** Standard library for string operations and pattern-matching |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -469,7 +469,7 @@ static void add_s (lua_State *L, struct Capture *cap) { | |||
469 | size_t oldbuff; | 469 | size_t oldbuff; |
470 | int n; | 470 | int n; |
471 | const char *s; | 471 | const char *s; |
472 | lua_pushobject(L, 3); | 472 | lua_pushvalue(L, 3); |
473 | n = push_captures(L, cap); | 473 | n = push_captures(L, cap); |
474 | /* function may use buffer, so save it and create a new one */ | 474 | /* function may use buffer, so save it and create a new one */ |
475 | oldbuff = luaL_newbuffer(L, 0); | 475 | oldbuff = luaL_newbuffer(L, 0); |