From f09e4132bce050ecac04a711acc075b7e1cf4ed1 Mon Sep 17 00:00:00 2001 From: "mcmullen%netscape.com" Date: Wed, 21 Apr 1999 23:36:02 +0000 Subject: [PATCH] Adding command-line support for Macintosh. --- xpfe/appshell/src/nsCommandLineService.cpp | 7 +++++++ xpfe/components/startup/src/nsCommandLineService.cpp | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/xpfe/appshell/src/nsCommandLineService.cpp b/xpfe/appshell/src/nsCommandLineService.cpp index 3cc382c357f..e0641cb3b21 100644 --- a/xpfe/appshell/src/nsCommandLineService.cpp +++ b/xpfe/appshell/src/nsCommandLineService.cpp @@ -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; diff --git a/xpfe/components/startup/src/nsCommandLineService.cpp b/xpfe/components/startup/src/nsCommandLineService.cpp index 3cc382c357f..e0641cb3b21 100644 --- a/xpfe/components/startup/src/nsCommandLineService.cpp +++ b/xpfe/components/startup/src/nsCommandLineService.cpp @@ -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;