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

Comparing FeepingCreaturism/FeepingCreaturism.cpp (file contents):
Revision 198 by Douglas Thrift, 2004-08-30T18:09:53-07:00 vs.
Revision 202 by Douglas Thrift, 2004-08-30T23:18:58-07:00

# Line 17 | Line 17 | extern "C"
17  
18   int main(int argc, char* argv[])
19   {
20 +        FeepingCreaturism::program = argv[0];
21 +
22          FeepingCreaturism creaturism;
23  
24          return 0;
# Line 39 | Line 41 | FeepingCreaturism::FeepingCreaturism()
41          }
42          else
43          {
44 <                cout << "Status: 301\r\n";
44 >                cout << "Status: 301\r\nLocation: http://" << env.get("HTTP_HOST")
45 >                        << env.get("SCRIPT_NAME") << "/daily/\r\n\r\n";
46          }
47   }
48  
49 + std::string FeepingCreaturism::program;
50 +
51   void FeepingCreaturism::initialize()
52   {
53 <        ext::Handle<xml::Document> document(xml::Parse("FeepingCreaturism.xml"));
54 <        ext::Handle<xml::Node> node(*document/"FeepingCreaturism");
53 >        ext::Handle<xml::Document> document(xml::Parse("jargon.xml"));
54 >        ext::Handle<xml::Node> node(*document/"feepingcreaturism");
55  
56 <        this->path = *node/"Jargon";
57 <        this->matcher = *node/"Matcher";
56 >        this->path = *node/"jargon";
57 >        this->matcher = *node/"matcher";
58  
59          char* path[] = { new char[this->path.size()] };
60  
# Line 60 | Line 65 | void FeepingCreaturism::initialize()
65  
66          if (traversal == NULL)
67          {
68 <                cerr << "FeepingCreaturism: Horrible Failure!\n";
68 >                cerr << program << ": Horrible Failure!\n";
69  
70                  std::exit(1);
71          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines