]> git.mdlowis.com Git - archive/dlang.git/commitdiff
Scheme environment file is now embedded directly in binary so the parser is completel...
authorMike D. Lowis <mike@mdlowis.com>
Mon, 12 Mar 2012 17:24:52 +0000 (13:24 -0400)
committerMike D. Lowis <mike@mdlowis.com>
Mon, 12 Mar 2012 17:24:52 +0000 (13:24 -0400)
source/visitors/scheme/scheme.cpp

index f1aa4a069bca250075d4efb706226e6816b0e1f0..ba920f0b5ad62482ae0befa219987ff0fc182723 100644 (file)
@@ -3,18 +3,11 @@
 
 using namespace std;
 
+extern char binary_res_environment_scm_start;
+
 Scheme::Scheme(std::ostream& out) : IVisitor(), stream(out) {
-    ifstream input("res/environment.scm");
-    if (input.is_open())
-    {
-        while ( input.good() )
-        {
-            string line;
-            getline(input,line);
-            stream << line << endl;
-        }
-    }
-    input.close();
+    // Print scheme environment to output stream
+    stream << &binary_res_environment_scm_start << endl;
 }
 
 string Scheme::typeToString(ASTNodeType type)