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 47 by douglas, 2003-02-01T00:20:17-08: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.1rc3";
65   bool debug = false;
66  
67   int main(int argc, char* argv[])
# Line 386 | Line 386 | string platform()
386  
387   void usage()
388   {
389 + #ifdef _WIN32
390 +        OSVERSIONINFO* computer = new OSVERSIONINFO;
391 +        computer->dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
392 +        GetVersionEx(computer);
393 +
394 +        string program = ::program;
395 +        if (computer->dwPlatformId != VER_PLATFORM_WIN32_NT)
396 +        {
397 +                program = "Search";
398 +        }
399 +
400 +        delete computer;
401 + #endif // _WIN32
402 +
403          string tab(8 + program.length(), ' ');
404  
405          cout << "Usage: " << program << " [index ...] [-P page] [-h header] [-b bo"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines