From 558d500be3e016e032b531122bc66fb6026bcd50 Mon Sep 17 00:00:00 2001 From: pixel Date: Wed, 11 Apr 2007 00:16:30 +0000 Subject: Introducing "safe" mode for openio (even though it's not used yet) and fixed a dumpvar() issue with the \r character. --- lib/BLua.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/BLua.cc b/lib/BLua.cc index fa35f9f..3f7df94 100644 --- a/lib/BLua.cc +++ b/lib/BLua.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: BLua.cc,v 1.39 2007-04-02 23:34:30 pixel Exp $ */ +/* $Id: BLua.cc,v 1.40 2007-04-11 00:16:30 pixel Exp $ */ #include #include "BLua.h" @@ -453,7 +453,7 @@ void Lua::open_table() { unlock(); } -void Lua::open_io() { +void Lua::open_io(bool safe) { lock(); luaopen_io(L); lua_pop(L, 1); @@ -774,6 +774,9 @@ String Lua::escape_string(const String & s) { case '\n': r += "\n"; break; + case '\r': + r += "\r"; + break; case '\0': r += "\\000"; break; -- cgit v1.2.3