mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-08 23:14:20 +08:00
formatting changes.
This commit is contained in:
@@ -54,8 +54,7 @@ static CMutex* s_logMutex = NULL;
|
||||
|
||||
static
|
||||
void
|
||||
logLock(
|
||||
bool lock)
|
||||
logLock(bool lock)
|
||||
{
|
||||
assert(s_logMutex != NULL);
|
||||
|
||||
@@ -76,8 +75,7 @@ static CServer* s_server = NULL;
|
||||
|
||||
static
|
||||
int
|
||||
realMain(
|
||||
CMutex* mutex)
|
||||
realMain(CMutex* mutex)
|
||||
{
|
||||
// s_serverLock should have mutex locked on entry
|
||||
|
||||
@@ -293,12 +291,9 @@ PLATFORM_EXTRA
|
||||
|
||||
static
|
||||
bool
|
||||
isArg(int argi,
|
||||
int argc,
|
||||
const char** argv,
|
||||
const char* name1,
|
||||
const char* name2,
|
||||
int minRequiredParameters = 0)
|
||||
isArg(int argi, int argc, const char** argv,
|
||||
const char* name1, const char* name2,
|
||||
int minRequiredParameters = 0)
|
||||
{
|
||||
if ((name1 != NULL && strcmp(argv[argi], name1) == 0) ||
|
||||
(name2 != NULL && strcmp(argv[argi], name2) == 0)) {
|
||||
@@ -317,9 +312,7 @@ isArg(int argi,
|
||||
|
||||
static
|
||||
void
|
||||
parse(
|
||||
int argc,
|
||||
const char** argv)
|
||||
parse(int argc, const char** argv)
|
||||
{
|
||||
assert(pname != NULL);
|
||||
assert(argv != NULL);
|
||||
@@ -480,9 +473,7 @@ parse(
|
||||
|
||||
static
|
||||
bool
|
||||
loadConfig(
|
||||
const char* pathname,
|
||||
bool require)
|
||||
loadConfig(const char* pathname, bool require)
|
||||
{
|
||||
assert(pathname != NULL);
|
||||
|
||||
@@ -556,9 +547,7 @@ loadConfig()
|
||||
|
||||
static
|
||||
bool
|
||||
logMessageBox(
|
||||
int priority,
|
||||
const char* msg)
|
||||
logMessageBox(int priority, const char* msg)
|
||||
{
|
||||
if (priority <= CLog::kFATAL) {
|
||||
MessageBox(NULL, msg, pname, MB_OK | MB_ICONWARNING);
|
||||
@@ -585,10 +574,7 @@ daemonStop(void)
|
||||
|
||||
static
|
||||
int
|
||||
daemonStartup(
|
||||
IPlatform* iplatform,
|
||||
int argc,
|
||||
const char** argv)
|
||||
daemonStartup(IPlatform* iplatform, int argc, const char** argv)
|
||||
{
|
||||
// get platform pointer
|
||||
CWin32Platform* platform = static_cast<CWin32Platform*>(iplatform);
|
||||
@@ -614,9 +600,7 @@ daemonStartup(
|
||||
|
||||
static
|
||||
bool
|
||||
logDiscard(
|
||||
int,
|
||||
const char*)
|
||||
logDiscard(int, const char*)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -636,11 +620,7 @@ checkParse(int e)
|
||||
}
|
||||
|
||||
int WINAPI
|
||||
WinMain(
|
||||
HINSTANCE instance,
|
||||
HINSTANCE,
|
||||
LPSTR,
|
||||
int)
|
||||
WinMain(HINSTANCE instance, HINSTANCE, LPSTR, int)
|
||||
{
|
||||
CPlatform platform;
|
||||
|
||||
@@ -779,18 +759,13 @@ WinMain(
|
||||
|
||||
static
|
||||
int
|
||||
daemonStartup(
|
||||
IPlatform*,
|
||||
int,
|
||||
const char**)
|
||||
daemonStartup(IPlatform*, int, const char**)
|
||||
{
|
||||
return restartableMain();
|
||||
}
|
||||
|
||||
int
|
||||
main(
|
||||
int argc,
|
||||
char** argv)
|
||||
main(int argc, char** argv)
|
||||
{
|
||||
CPlatform platform;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user