aboutsummaryrefslogtreecommitdiff
path: root/lauxlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-09-12 10:48:22 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-09-12 10:48:22 -0300
commit4ef14ba28094b9db88cedd9876d9bad79cc03374 (patch)
treef6c0ab0a39c468042a43c743d09e5051a6c8a5ae /lauxlib.c
parentb8d57092ebbaefb088bf63fca7fa91f77545beda (diff)
downloadlua-4ef14ba28094b9db88cedd9876d9bad79cc03374.tar.gz
lua-4ef14ba28094b9db88cedd9876d9bad79cc03374.tar.bz2
lua-4ef14ba28094b9db88cedd9876d9bad79cc03374.zip
new function `luaL_addstring'
Diffstat (limited to 'lauxlib.c')
-rw-r--r--lauxlib.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lauxlib.c b/lauxlib.c
index ee715ab5..2648444d 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -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
181void luaL_addstring (luaL_Buffer *B, const char *s) {
182 luaL_addlstring(B, s, strlen(s));
183}
184
185
181void luaL_pushresult (luaL_Buffer *B) { 186void luaL_pushresult (luaL_Buffer *B) {
182 emptybuffer(B); 187 emptybuffer(B);
183 if (B->level == 0) 188 if (B->level == 0)