Mercurial > sdl-ios-xcode
diff src/main/beos/SDL_BeApp.cc @ 1668:4da1ee79c9af SDL-1.3
more tweaking indent options
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 29 May 2006 04:04:35 +0000 |
parents | 782fd950bd46 |
children |
line wrap: on
line diff
--- a/src/main/beos/SDL_BeApp.cc Mon May 29 03:53:21 2006 +0000 +++ b/src/main/beos/SDL_BeApp.cc Mon May 29 04:04:35 2006 +0000 @@ -38,48 +38,48 @@ static SDL_Thread *SDL_AppThread = NULL; static int -StartBeApp (void *unused) +StartBeApp(void *unused) { BApplication *App; - App = new BApplication ("application/x-SDL-executable"); + App = new BApplication("application/x-SDL-executable"); - App->Run (); + App->Run(); delete App; return (0); } /* Initialize the Be Application, if it's not already started */ int -SDL_InitBeApp (void) +SDL_InitBeApp(void) { /* Create the BApplication that handles appserver interaction */ if (SDL_BeAppActive <= 0) { - SDL_AppThread = SDL_CreateThread (StartBeApp, NULL); + SDL_AppThread = SDL_CreateThread(StartBeApp, NULL); if (SDL_AppThread == NULL) { - SDL_SetError ("Couldn't create BApplication thread"); + SDL_SetError("Couldn't create BApplication thread"); return (-1); } /* Change working to directory to that of executable */ app_info info; - if (B_OK == be_app->GetAppInfo (&info)) { + if (B_OK == be_app->GetAppInfo(&info)) { entry_ref ref = info.ref; BEntry entry; - if (B_OK == entry.SetTo (&ref)) { + if (B_OK == entry.SetTo(&ref)) { BPath path; - if (B_OK == path.SetTo (&entry)) { - if (B_OK == path.GetParent (&path)) { - chdir (path.Path ()); + if (B_OK == path.SetTo(&entry)) { + if (B_OK == path.GetParent(&path)) { + chdir(path.Path()); } } } } do { - SDL_Delay (10); + SDL_Delay(10); } - while ((be_app == NULL) || be_app->IsLaunching ()); + while ((be_app == NULL) || be_app->IsLaunching()); /* Mark the application active */ SDL_BeAppActive = 0; @@ -94,7 +94,7 @@ /* Quit the Be Application, if there's nothing left to do */ void -SDL_QuitBeApp (void) +SDL_QuitBeApp(void) { /* Decrement the application reference count */ --SDL_BeAppActive; @@ -103,9 +103,9 @@ if (SDL_BeAppActive == 0) { if (SDL_AppThread != NULL) { if (be_app != NULL) { /* Not tested */ - be_app->PostMessage (B_QUIT_REQUESTED); + be_app->PostMessage(B_QUIT_REQUESTED); } - SDL_WaitThread (SDL_AppThread, NULL); + SDL_WaitThread(SDL_AppThread, NULL); SDL_AppThread = NULL; } /* be_app should now be NULL since be_app has quit */