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

Comparing trunk/Search/Search.cpp (file contents):
Revision 45 by douglas, 2003-01-29T21:23:17-08:00 vs.
Revision 183 by douglas, 2003-07-05T23:31:12-07:00

# Line 61 | Line 61
61  
62   string program;
63   string programName = "Douglas Thrift's Search Engine";
64 < string programVersion = "1.1";
64 > string programVersion = "1.2alpha";
65   bool debug = false;
66  
67   int main(int argc, char* argv[])
# Line 227 | Line 227 | int main(int argc, char* argv[])
227                  else if (arg == "-D")
228                  {
229                          debug = true;
230 +                        cerr.setf(ios_base::boolalpha);
231                  }
232                  else
233                  {
# Line 386 | Line 387 | string platform()
387  
388   void usage()
389   {
390 + #ifdef _WIN32
391 +        OSVERSIONINFO* computer = new OSVERSIONINFO;
392 +        computer->dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
393 +        GetVersionEx(computer);
394 +
395 +        string program = ::program;
396 +        if (computer->dwPlatformId != VER_PLATFORM_WIN32_NT)
397 +        {
398 +                program = "Search";
399 +        }
400 +
401 +        delete computer;
402 + #endif // _WIN32
403 +
404          string tab(8 + program.length(), ' ');
405  
406          cout << "Usage: " << program << " [index ...] [-P page] [-h header] [-b bo"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines