From f10f5b618321b51473c355a93773a664dfadc0f0 Mon Sep 17 00:00:00 2001 From: "pedemont%us.ibm.com" Date: Wed, 27 Sep 2006 15:18:00 +0000 Subject: [PATCH] Bug 316090 - GREImpl.loadDependentLibraries hardcodes the list, and turn javaxpcom on by default for XULRunner, patch by jhpedemonte and myself with co-review Original committer: bsmedberg%covad.net Original revision: 1.29 Original date: 2005/12/15 14:17:18 --- .../java/xpcom/src/nsJavaInterfaces.cpp | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/extensions/java/xpcom/src/nsJavaInterfaces.cpp b/extensions/java/xpcom/src/nsJavaInterfaces.cpp index 54d43a36394..75a44845b9d 100644 --- a/extensions/java/xpcom/src/nsJavaInterfaces.cpp +++ b/extensions/java/xpcom/src/nsJavaInterfaces.cpp @@ -35,6 +35,7 @@ * * ***** END LICENSE BLOCK ***** */ +#include "nsJavaInterfaces.h" #include "nsJavaWrapper.h" #include "nsJavaXPCOMBindingUtils.h" #include "nsJavaXPTCStub.h" @@ -50,9 +51,6 @@ #include "nsXULAppAPI.h" #include "nsILocalFile.h" -#define GRE_NATIVE(func) Java_org_mozilla_xpcom_internal_GREImpl_##func -#define XPCOM_NATIVE(func) Java_org_mozilla_xpcom_internal_XPCOMImpl_##func - nsresult InitEmbedding_Impl(JNIEnv* env, jobject aLibXULDirectory, @@ -89,9 +87,9 @@ InitEmbedding_Impl(JNIEnv* env, jobject aLibXULDirectory, return rv; } -extern "C" JX_EXPORT void JNICALL -GRE_NATIVE(initEmbeddingNative) (JNIEnv* env, jobject, jobject aLibXULDirectory, - jobject aAppDirectory, jobject aAppDirProvider) +extern "C" NS_EXPORT void +GRE_NATIVE(initEmbedding) (JNIEnv* env, jobject, jobject aLibXULDirectory, + jobject aAppDirectory, jobject aAppDirProvider) { nsresult rv = InitEmbedding_Impl(env, aLibXULDirectory, aAppDirectory, aAppDirProvider); @@ -102,7 +100,7 @@ GRE_NATIVE(initEmbeddingNative) (JNIEnv* env, jobject, jobject aLibXULDirectory, } } -extern "C" JX_EXPORT void JNICALL +extern "C" NS_EXPORT void GRE_NATIVE(termEmbedding) (JNIEnv *env, jobject) { // Free globals before calling XRE_TermEmbedding(), since we need some @@ -158,7 +156,7 @@ InitXPCOM_Impl(JNIEnv* env, jobject aMozBinDirectory, return rv; } -extern "C" JX_EXPORT jobject JNICALL +extern "C" NS_EXPORT jobject XPCOM_NATIVE(initXPCOM) (JNIEnv* env, jobject, jobject aMozBinDirectory, jobject aAppFileLocProvider) { @@ -173,7 +171,7 @@ XPCOM_NATIVE(initXPCOM) (JNIEnv* env, jobject, jobject aMozBinDirectory, return nsnull; } -extern "C" JX_EXPORT void JNICALL +extern "C" NS_EXPORT void XPCOM_NATIVE(shutdownXPCOM) (JNIEnv *env, jobject, jobject aServMgr) { nsresult rv; @@ -202,7 +200,7 @@ XPCOM_NATIVE(shutdownXPCOM) (JNIEnv *env, jobject, jobject aServMgr) ThrowException(env, rv, "NS_ShutdownXPCOM failed"); } -extern "C" JX_EXPORT jobject JNICALL +extern "C" NS_EXPORT jobject XPCOM_NATIVE(newLocalFile) (JNIEnv *env, jobject, jstring aPath, jboolean aFollowLinks) { @@ -233,7 +231,7 @@ XPCOM_NATIVE(newLocalFile) (JNIEnv *env, jobject, jstring aPath, return nsnull; } -extern "C" JX_EXPORT jobject JNICALL +extern "C" NS_EXPORT jobject XPCOM_NATIVE(getComponentManager) (JNIEnv *env, jobject) { // Call XPCOM method @@ -252,7 +250,7 @@ XPCOM_NATIVE(getComponentManager) (JNIEnv *env, jobject) return nsnull; } -extern "C" JX_EXPORT jobject JNICALL +extern "C" NS_EXPORT jobject XPCOM_NATIVE(getComponentRegistrar) (JNIEnv *env, jobject) { // Call XPCOM method @@ -271,7 +269,7 @@ XPCOM_NATIVE(getComponentRegistrar) (JNIEnv *env, jobject) return nsnull; } -extern "C" JX_EXPORT jobject JNICALL +extern "C" NS_EXPORT jobject XPCOM_NATIVE(getServiceManager) (JNIEnv *env, jobject) { // Call XPCOM method