зеркало из https://github.com/mozilla/pjs.git
r/sr=brendan Changes to get GCC 3.2.2 working on OS/2 - this set is OS/2 only changes
This commit is contained in:
Родитель
9361330385
Коммит
29d9e75ab5
|
@ -47,10 +47,9 @@ void __ctordtorInit( void );
|
||||||
void __ctordtorTerm( void );
|
void __ctordtorTerm( void );
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long _System _DLL_InitTerm( unsigned long hModule,
|
extern "C" unsigned long _System _DLL_InitTerm(unsigned long hModule,
|
||||||
unsigned long ulFlag ) {
|
unsigned long ulFlag)
|
||||||
APIRET rc;
|
{
|
||||||
|
|
||||||
switch (ulFlag) {
|
switch (ulFlag) {
|
||||||
case 0 :
|
case 0 :
|
||||||
// Init: Prime compiler run-time and construct static C++ objects.
|
// Init: Prime compiler run-time and construct static C++ objects.
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
|
|
||||||
//\\// GLOBAL DATA
|
//\\// GLOBAL DATA
|
||||||
NPNetscapeFuncs* g_pNavigatorFuncs = 0;
|
NPNetscapeFuncs* g_pNavigatorFuncs = 0;
|
||||||
|
#ifdef OJI
|
||||||
JRIGlobalRef Private_GetJavaClass(void);
|
JRIGlobalRef Private_GetJavaClass(void);
|
||||||
|
|
||||||
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\.
|
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\.
|
||||||
|
@ -68,7 +69,7 @@ Private_GetJavaClass(void)
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif /* OJI */
|
||||||
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\.
|
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\.
|
||||||
////\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//.
|
////\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//.
|
||||||
// PLUGIN DLL entry points
|
// PLUGIN DLL entry points
|
||||||
|
@ -143,11 +144,11 @@ NP_Initialize(NPNetscapeFuncs* pFuncs)
|
||||||
if( navMinorVers >= NPVERS_HAS_NOTIFICATION ) {
|
if( navMinorVers >= NPVERS_HAS_NOTIFICATION ) {
|
||||||
g_pluginFuncs->urlnotify = NPP_URLNotify;
|
g_pluginFuncs->urlnotify = NPP_URLNotify;
|
||||||
}
|
}
|
||||||
|
#ifdef OJI
|
||||||
if( navMinorVers >= NPVERS_HAS_LIVECONNECT ) {
|
if( navMinorVers >= NPVERS_HAS_LIVECONNECT ) {
|
||||||
g_pluginFuncs->javaClass = Private_GetJavaClass();
|
g_pluginFuncs->javaClass = Private_GetJavaClass();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
// NPP_Initialize is a standard (cross-platform) initialize function.
|
// NPP_Initialize is a standard (cross-platform) initialize function.
|
||||||
return NPP_Initialize();
|
return NPP_Initialize();
|
||||||
}
|
}
|
||||||
|
@ -330,7 +331,7 @@ void NPN_MemFree(void* ptr)
|
||||||
{
|
{
|
||||||
g_pNavigatorFuncs->memfree(ptr);
|
g_pNavigatorFuncs->memfree(ptr);
|
||||||
}
|
}
|
||||||
|
#ifdef OJI
|
||||||
/* private function to Netscape. do not use!
|
/* private function to Netscape. do not use!
|
||||||
*/
|
*/
|
||||||
void NPN_ReloadPlugins(NPBool reloadPages)
|
void NPN_ReloadPlugins(NPBool reloadPages)
|
||||||
|
@ -347,4 +348,5 @@ jref NPN_GetJavaPeer(NPP instance)
|
||||||
{
|
{
|
||||||
return g_pNavigatorFuncs->getJavaPeer(instance);
|
return g_pNavigatorFuncs->getJavaPeer(instance);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -317,7 +317,9 @@ void NP_LOADDS NPP_URLNotify(NPP pInstance, const char* url, NPReason reason, vo
|
||||||
pPlugin->URLNotify(url);
|
pPlugin->URLNotify(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef OJI
|
||||||
jref NP_LOADDS NPP_GetJavaClass(void)
|
jref NP_LOADDS NPP_GetJavaClass(void)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -418,11 +418,15 @@ void CPlugin::showGetPluginDialog()
|
||||||
|
|
||||||
m_bOnline = !bOffline;
|
m_bOnline = !bOffline;
|
||||||
|
|
||||||
|
#ifdef OJI
|
||||||
if(m_bOnline && m_bJavaScript && m_bSmartUpdate && useDefaultURL_P())
|
if(m_bOnline && m_bJavaScript && m_bSmartUpdate && useDefaultURL_P())
|
||||||
{
|
{
|
||||||
JRIEnv *penv = NPN_GetJavaEnv();
|
JRIEnv *penv = NPN_GetJavaEnv();
|
||||||
m_bJava = (penv != NULL);
|
m_bJava = (penv != NULL);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
m_bJava = FALSE;
|
||||||
|
#endif
|
||||||
|
|
||||||
dbgOut1("Environment:");
|
dbgOut1("Environment:");
|
||||||
dbgOut2("%s", m_bOnline ? "On-line" : "Off-line");
|
dbgOut2("%s", m_bOnline ? "On-line" : "Off-line");
|
||||||
|
|
|
@ -58,7 +58,7 @@ void __ctordtorInit( void );
|
||||||
void __ctordtorTerm( void );
|
void __ctordtorTerm( void );
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long _System _DLL_InitTerm(unsigned long hModule, unsigned long ulFlag)
|
extern "C" unsigned long _System _DLL_InitTerm(unsigned long hModule, unsigned long ulFlag)
|
||||||
{
|
{
|
||||||
APIRET rc;
|
APIRET rc;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче