зеркало из https://github.com/mozilla/gecko-dev.git
BeOS only fixes to keep Mozilla building on BeOS. Still doesn't really run.
This commit is contained in:
Родитель
3513eb0058
Коммит
687da26536
|
@ -46,7 +46,7 @@ fi
|
|||
|
||||
# generate stub
|
||||
|
||||
echo "stub(){return(0);}">${libname}.c
|
||||
echo "int stub(){return(0);}">${libname}.c
|
||||
c++ -nostart ${libname}.c -olib${libname}.so
|
||||
rm ${libname}.c
|
||||
|
||||
|
|
|
@ -33,6 +33,8 @@
|
|||
#include <AppKit.h>
|
||||
#include <AppFileInfo.h>
|
||||
|
||||
static int gBAppCount = 0;
|
||||
|
||||
struct ThreadInterfaceData
|
||||
{
|
||||
void *data;
|
||||
|
@ -118,11 +120,14 @@ nsAppShell::nsAppShell()
|
|||
NS_INIT_REFCNT();
|
||||
mDispatchListener = 0;
|
||||
|
||||
if(gBAppCount++ == 0)
|
||||
{
|
||||
sem_id initsem = create_sem(0, "bapp init");
|
||||
resume_thread(spawn_thread(bapp_thread, "BApplication", B_NORMAL_PRIORITY, (void *)initsem));
|
||||
acquire_sem(initsem);
|
||||
delete_sem(initsem);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
@ -237,10 +242,13 @@ NS_METHOD nsAppShell::Exit()
|
|||
//
|
||||
//-------------------------------------------------------------------------
|
||||
nsAppShell::~nsAppShell()
|
||||
{
|
||||
if(--gBAppCount == 0)
|
||||
{
|
||||
if(be_app->Lock())
|
||||
be_app->Quit();
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
|
@ -277,6 +285,7 @@ NS_METHOD nsAppShell::Spindown()
|
|||
|
||||
NS_METHOD nsAppShell::GetNativeEvent(PRBool &aRealEvent, void *&aEvent)
|
||||
{
|
||||
aRealEvent = PR_FALSE;
|
||||
printf("nsAppShell::GetNativeEvent - FIXME: not implemented\n");
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче