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 243 by Douglas Thrift, 2004-09-11T21:27:10-07:00 vs.
Revision 261 by Douglas Thrift, 2004-10-07T22:20:16-07:00

# Line 16 | Line 16 | extern "C"
16   }
17  
18   #include <menes-api/exename.hpp>
19 < #include <menes-app/application.hpp>
19 > #include <menes-app/simple.hpp>
20  
21 < struct FeepingCreaturismCommand : public app::Application
21 > int Main(const app::Options& options)
22   {
23 <        virtual int Run(const app::ArgumentList& args)
24 <        {
25 <                FeepingCreaturism::program = api::GetExecutableName();
23 >        FeepingCreaturism::program = api::GetExecutablePath().GetName();
24  
25 <                FeepingCreaturism creaturism;
25 >        FeepingCreaturism creaturism;
26  
27 <                return 0;
28 <        }
31 < } creaturism;
27 >        return 0;
28 > }
29  
30   FeepingCreaturism::FeepingCreaturism()
31   {
# Line 68 | Line 65 | bool FeepingCreaturism::CaseLess::operat
65          std::transform(one.begin(), one.end(), one_.begin(), ::tolower);
66          std::transform(two.begin(), two.end(), two_.begin(), ::tolower);
67  
68 +        if (one_ == two_) return one < two;
69 +
70          return one_ < two_;
71   }
72  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines