diff options
Diffstat (limited to 'lauxlib.c')
| -rw-r--r-- | lauxlib.c | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lauxlib.c,v 1.34 2000/09/11 17:38:42 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.35 2000/09/11 20:29:27 roberto Exp roberto $ |
| 3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -178,6 +178,11 @@ void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l) { | |||
| 178 | } | 178 | } |
| 179 | 179 | ||
| 180 | 180 | ||
| 181 | void luaL_addstring (luaL_Buffer *B, const char *s) { | ||
| 182 | luaL_addlstring(B, s, strlen(s)); | ||
| 183 | } | ||
| 184 | |||
| 185 | |||
| 181 | void luaL_pushresult (luaL_Buffer *B) { | 186 | void luaL_pushresult (luaL_Buffer *B) { |
| 182 | emptybuffer(B); | 187 | emptybuffer(B); |
| 183 | if (B->level == 0) | 188 | if (B->level == 0) |
