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 203 by douglas, 2003-07-16T21:59:49-07:00 vs.
Revision 296 by douglas, 2003-11-17T16:11:07-08:00

# Line 46 | Line 46
46   //
47   // Douglas Thrift
48   //
49 < // $Id: Search.cpp,v 1.20 2003/07/17 04:59:49 douglas Exp $
49 > // $Id: Search.cpp,v 1.24 2003/11/18 00:11:07 douglas Exp $
50  
51   #include "Search.h"
52   #include "Indexer.h"
# Line 61 | Line 61
61  
62   string program;
63   string programName = "Douglas Thrift's Search Engine";
64 < string programVersion = "1.2alpha1";
64 > string programVersion = "1.2rc1";
65   bool debug = false;
66  
67   int main(int argc, char* argv[])
# Line 109 | Line 109 | int main(int argc, char* argv[])
109                  {
110                          if (++index < argc)
111                          {
112 <                                page = strtoul(argv[index],0,0);
112 >                                istringstream number(argv[index]);
113 >
114 >                                number >> page;
115                          }
116                          else
117                          {
# Line 439 | Line 441 | void version()
441                  << "   This product includes software developed by Douglas Thrift\n"
442                  << "   (http://computers.douglasthrift.net/searchengine/).\n";
443   #ifdef _OpenSSL_
444 <        cout << "\n" << openssl() << "\n";
444 >        cout << "\n" << openssl() << " " << SSLeay_version(SSLEAY_BUILT_ON) << " "
445 >                << SSLeay_version(SSLEAY_PLATFORM) << "\n";
446   #endif
447   }
448  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines