|
|
|
@ -46,7 +46,7 @@ public:
|
|
|
|
|
}; // class KCmdLineOptions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class KCmdLineArgs
|
|
|
|
|
class TDECmdLineArgs
|
|
|
|
|
{
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
|
#include <kcmdlineargs.h>
|
|
|
|
@ -73,7 +73,7 @@ public:
|
|
|
|
|
nargc = argc;
|
|
|
|
|
|
|
|
|
|
Py_BEGIN_ALLOW_THREADS
|
|
|
|
|
KCmdLineArgs::init (nargc,argv, a1, a2, a3, a4, a5);
|
|
|
|
|
TDECmdLineArgs::init (nargc,argv, a1, a2, a3, a4, a5);
|
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
|
|
|
|
|
|
// Now modify the original list.
|
|
|
|
@ -99,7 +99,7 @@ public:
|
|
|
|
|
nargc = argc;
|
|
|
|
|
|
|
|
|
|
Py_BEGIN_ALLOW_THREADS
|
|
|
|
|
KCmdLineArgs::init (nargc,argv, a1, a2, a3, a4);
|
|
|
|
|
TDECmdLineArgs::init (nargc,argv, a1, a2, a3, a4);
|
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
|
|
|
|
|
|
// Now modify the original list.
|
|
|
|
@ -123,7 +123,7 @@ public:
|
|
|
|
|
nargc = argc;
|
|
|
|
|
|
|
|
|
|
Py_BEGIN_ALLOW_THREADS
|
|
|
|
|
KCmdLineArgs::init (nargc, argv, a1, a2);
|
|
|
|
|
TDECmdLineArgs::init (nargc, argv, a1, a2);
|
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
|
|
|
|
|
|
// Now modify the original list.
|
|
|
|
@ -206,7 +206,7 @@ public:
|
|
|
|
|
opts [n].def = NULL;
|
|
|
|
|
|
|
|
|
|
Py_BEGIN_ALLOW_THREADS
|
|
|
|
|
KCmdLineArgs::addCmdLineOptions (opts, a1, a2, a3);
|
|
|
|
|
TDECmdLineArgs::addCmdLineOptions (opts, a1, a2, a3);
|
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
|
|
|
|
|
|
Py_INCREF (Py_None);
|
|
|
|
@ -217,7 +217,7 @@ errorExit:
|
|
|
|
|
return NULL;
|
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
static KCmdLineArgs* parsedArgs (const char* = 0);
|
|
|
|
|
static TDECmdLineArgs* parsedArgs (const char* = 0);
|
|
|
|
|
static TQString cwd ();
|
|
|
|
|
static const char* appName ();
|
|
|
|
|
static void usage (const char* = 0);
|
|
|
|
@ -250,8 +250,8 @@ errorExit:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
KCmdLineArgs (const KCmdLineOptions*, const char*, const char*);
|
|
|
|
|
~KCmdLineArgs ();
|
|
|
|
|
TDECmdLineArgs (const KCmdLineOptions*, const char*, const char*);
|
|
|
|
|
~TDECmdLineArgs ();
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
@ -260,5 +260,5 @@ public:
|
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; // class KCmdLineArgs
|
|
|
|
|
}; // class TDECmdLineArgs
|
|
|
|
|
|
|
|
|
|