From 3fa4c64aef5dcd370b2c86613bb64ea5736e97c3 Mon Sep 17 00:00:00 2001 From: chriseth Date: Mon, 9 Mar 2015 22:11:16 +0100 Subject: [PATCH 1/3] Fixed dockerfile. --- docker_emscripten/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/docker_emscripten/Dockerfile b/docker_emscripten/Dockerfile index b593cbf74..06467a2c5 100644 --- a/docker_emscripten/Dockerfile +++ b/docker_emscripten/Dockerfile @@ -10,6 +10,7 @@ RUN apt-get install -qy automake libtool yasm scons RUN useradd -ms /bin/bash user USER user +ENV HOME /home/user WORKDIR /home/user # Emscripten SDK From c6653d5ffc41b7ee2758452d24c683ae18926585 Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Mon, 9 Mar 2015 13:15:59 +0100 Subject: [PATCH 2/3] fixed new line for user input from terminal. --- CommandLineInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CommandLineInterface.cpp b/CommandLineInterface.cpp index 08acb5ebd..01d8f8485 100644 --- a/CommandLineInterface.cpp +++ b/CommandLineInterface.cpp @@ -272,7 +272,7 @@ bool CommandLineInterface::processInput() while (!cin.eof()) { getline(cin, s); - m_sourceCodes[""].append(s); + m_sourceCodes[""].append(s + '\n'); } } else From c7ac1f55b25d3e6becfab02801ae5ea8cf125f82 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 10 Mar 2015 15:11:13 +0100 Subject: [PATCH 3/3] Fixed some checker warnings. --- CommandLineInterface.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/CommandLineInterface.cpp b/CommandLineInterface.cpp index 08acb5ebd..867e832d7 100644 --- a/CommandLineInterface.cpp +++ b/CommandLineInterface.cpp @@ -345,18 +345,11 @@ bool CommandLineInterface::processInput() void CommandLineInterface::handleAst(string const& _argStr) { string title; - string suffix; if (_argStr == g_argAstStr) - { title = "Syntax trees:"; - suffix = ".ast"; - } else if (_argStr == g_argAstJson) - { title = "JSON AST:"; - suffix = ".json"; - } else BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Illegal argStr for AST"));