diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-31 17:23:40 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-31 17:23:40 -0300 |
commit | f0b3cd1d6f35ba34091450d5e3057269114a17b6 (patch) | |
tree | ceffcf31f1823709b7ab4e63801e5e483abf8490 /lstrlib.c | |
parent | fb5e6d5ac498649b8e1b6bf068d18078ef70d523 (diff) | |
download | lua-f0b3cd1d6f35ba34091450d5e3057269114a17b6.tar.gz lua-f0b3cd1d6f35ba34091450d5e3057269114a17b6.tar.bz2 lua-f0b3cd1d6f35ba34091450d5e3057269114a17b6.zip |
new API functions `pop', `insert', and `move'
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.48 2000/08/29 20:43:28 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.49 2000/08/31 13:30:22 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 | */ |
@@ -481,7 +481,7 @@ static void add_s (lua_State *L, struct Capture *cap) { | |||
481 | s = lua_tostring(L, -1); | 481 | s = lua_tostring(L, -1); |
482 | if (s) | 482 | if (s) |
483 | addnchar(L, lua_tostring(L, -1), lua_strlen(L, -1)); | 483 | addnchar(L, lua_tostring(L, -1), lua_strlen(L, -1)); |
484 | lua_settop(L, -1); /* pop function result */ | 484 | lua_pop(L, 1); /* pop function result */ |
485 | } | 485 | } |
486 | } | 486 | } |
487 | 487 | ||