summaryrefslogtreecommitdiff
path: root/lib/BLua.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/BLua.cc')
-rw-r--r--lib/BLua.cc7
1 files changed, 5 insertions, 2 deletions
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 <stdlib.h>
#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;