Browse Source

ERR: Fix borland build

Ken Martin 21 years ago
parent
commit
c30e7771ee
2 changed files with 13 additions and 0 deletions
  1. 12 0
      Source/kwsys/CommandLineArguments.cxx
  2. 1 0
      Source/kwsys/CommandLineArguments.hxx.in

+ 12 - 0
Source/kwsys/CommandLineArguments.cxx

@@ -101,6 +101,18 @@ void CommandLineArguments::Initialize(int argc, const char* const argv[])
     }
 }
 
+//----------------------------------------------------------------------------
+void CommandLineArguments::Initialize(int argc, char* argv[])
+{
+  int cc;
+
+  this->Initialize();
+  for ( cc = 1; cc < argc; cc ++ )
+    {
+    this->ProcessArgument(argv[cc]);
+    }
+}
+
 //----------------------------------------------------------------------------
 void CommandLineArguments::Initialize()
 {

+ 1 - 0
Source/kwsys/CommandLineArguments.hxx.in

@@ -86,6 +86,7 @@ public:
    * Initialize internal data structures. This should be called before parsing.
    */
   void Initialize(int argc, const char* const argv[]);
+  void Initialize(int argc, char* argv[]);
 
   /**
    * Initialize internal data structure and pass arguments one by one. This is