This commit is contained in:
timm 1998-06-25 21:39:35 +00:00
Родитель 4d3b8a3643
Коммит 19e0c84dbf
2 изменённых файлов: 19 добавлений и 2 удалений

Просмотреть файл

@ -197,5 +197,6 @@ void SizeofRASNT40(); // ini WinNT RAS sizes
#endif // WIN32
void SizeofRAS(); // init Win95 & Win3.1 RAS sizes
void trace( const char* traceStatement );
#endif // _INC_PLUGIN_H_

Просмотреть файл

@ -88,7 +88,6 @@ HINSTANCE DLLinstance = NULL;
JRIGlobalRef g_globalRefReg = NULL;
//********************************************************************************
//
// NPP_Initialize
@ -106,7 +105,8 @@ NPError NPP_Initialize(void)
//register_java_lang_String(env); //Not necessary?
}
trace( "initialized plug-in" );
#ifdef WIN32 // ******************* WIN32 ***********************
// gets the OS version
// note: we need another way to check for win31
@ -627,6 +627,22 @@ native_netscape_npasw_SetupPlugin_SECURE_0005fCheckEnvironment(JRIEnv* env,
return (TRUE);
}
void trace( const char* traceStatement )
{
if ( !env )
return;
java_lang_Class* self = (java_lang_Class*)NPP_GetJavaClass();
if ( !self )
return;
java_lang_String* traceString = JRI_NewStringPlatform( env, traceStatement,
strlen( traceStatement), NULL, 0 );
netscape_npasw_SetupPlugin_debug( env, self, traceString );
}
/*******************************************************************************
* Native Methods:
* These are the signatures of the native methods which you must implement.