зеркало из https://github.com/mozilla/pjs.git
Adding command-line support for Macintosh.
This commit is contained in:
Родитель
3df07c0126
Коммит
f09e4132bc
|
@ -24,6 +24,9 @@
|
|||
#include "nsString.h"
|
||||
#include "plstr.h"
|
||||
|
||||
#ifdef XP_MAC
|
||||
#include "nsCommandLineServiceMac.h"
|
||||
#endif
|
||||
|
||||
/* Define Class IDs */
|
||||
static NS_DEFINE_IID(kCmdLineServiceCID, NS_COMMANDLINE_SERVICE_CID);
|
||||
|
@ -76,6 +79,10 @@ NS_IMPL_ISUPPORTS(nsCmdLineService, kICommandLineServiceIID);
|
|||
NS_IMETHODIMP
|
||||
nsCmdLineService::Initialize(int aArgc, char ** aArgv)
|
||||
{
|
||||
#if defined(XP_MAC)
|
||||
InitializeMacCommandLine(aArgc, aArgv);
|
||||
#endif
|
||||
|
||||
PRInt32 i=0;
|
||||
nsresult rv = nsnull;
|
||||
|
||||
|
|
|
@ -24,6 +24,9 @@
|
|||
#include "nsString.h"
|
||||
#include "plstr.h"
|
||||
|
||||
#ifdef XP_MAC
|
||||
#include "nsCommandLineServiceMac.h"
|
||||
#endif
|
||||
|
||||
/* Define Class IDs */
|
||||
static NS_DEFINE_IID(kCmdLineServiceCID, NS_COMMANDLINE_SERVICE_CID);
|
||||
|
@ -76,6 +79,10 @@ NS_IMPL_ISUPPORTS(nsCmdLineService, kICommandLineServiceIID);
|
|||
NS_IMETHODIMP
|
||||
nsCmdLineService::Initialize(int aArgc, char ** aArgv)
|
||||
{
|
||||
#if defined(XP_MAC)
|
||||
InitializeMacCommandLine(aArgc, aArgv);
|
||||
#endif
|
||||
|
||||
PRInt32 i=0;
|
||||
nsresult rv = nsnull;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче