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 200 by Douglas Thrift, 2004-08-30T18:09:53-07:00 vs.
Revision 201 by Douglas Thrift, 2004-08-30T19:24:40-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 43 | Line 45 | FeepingCreaturism::FeepingCreaturism()
45          }
46   }
47  
48 + std::string FeepingCreaturism::program;
49 +
50   void FeepingCreaturism::initialize()
51   {
52 <        ext::Handle<xml::Document> document(xml::Parse("FeepingCreaturism.xml"));
53 <        ext::Handle<xml::Node> node(*document/"FeepingCreaturism");
52 >        ext::Handle<xml::Document> document(xml::Parse("jargon.xml"));
53 >        ext::Handle<xml::Node> node(*document/"feepingcreaturism");
54  
55 <        this->path = *node/"Jargon";
56 <        this->matcher = *node/"Matcher";
55 >        this->path = *node/"jargon";
56 >        this->matcher = *node/"matcher";
57  
58          char* path[] = { new char[this->path.size()] };
59  
# Line 60 | Line 64 | void FeepingCreaturism::initialize()
64  
65          if (traversal == NULL)
66          {
67 <                cerr << "FeepingCreaturism: Horrible Failure!\n";
67 >                cerr << program << ": Horrible Failure!\n";
68  
69                  std::exit(1);
70          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines