ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FeepingCreaturism/Jargon.cpp
(Generate patch)

Comparing FeepingCreaturism/Jargon.cpp (file contents):
Revision 226 by Douglas Thrift, 2004-09-06T04:03:48-07:00 vs.
Revision 227 by Douglas Thrift, 2004-09-06T13:23:39-07:00

# Line 7 | Line 7
7   #include "Jargon.hpp"
8   #include "Matcher.hpp"
9  
10 < Jargon::Jargon(const ext::String& path, bool include, const ext::String& relative)
10 > Jargon::Jargon(const ext::String& path, bool include,
11 >        const ext::String& relative) : include(include),
12 >        args(1, FeepingCreaturism::program)
13   {
12        std::vector<std::string> args(1, FeepingCreaturism::program);
13
14          args.push_back("-p");
15          args.push_back("include");
16          args.push_back(lexical_cast<ext::String>(include) + "()");
# Line 24 | Line 24 | Jargon::Jargon(const ext::String& path,
24  
25          args.push_back(path);
26          args.push_back("jargon.xsl");
27 + }
28  
29 <        redi::ipstream pin("/usr/local/bin/Xalan", args);
29 > ios::PrintWriter& operator<<(ios::PrintWriter& pout, const Jargon& jargon)
30 > {
31 >        redi::ipstream pin("/usr/local/bin/Xalan", jargon.args);
32  
33 <        if (include)
33 >        if (jargon.include)
34          {
35                  std::string ignore;
36  
# Line 40 | Line 43 | Jargon::Jargon(const ext::String& path,
43  
44                  std::getline(pin, line);
45  
46 <                buffer << line << '\n';
46 >                pout << line << '\n';
47          }
48          while (pin.good());
49 +
50 +        return pout;
51   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines