mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
strutils macro change; log PID on startup for easier attaching
This commit is contained in:
parent
8f5bdf1163
commit
40563a6790
2 changed files with 6 additions and 4 deletions
|
@ -260,7 +260,7 @@ initFromDictFile( LinuxDictionaryCtxt* dctx, const char* fileName )
|
|||
dctx->super.topEdge = NULL;
|
||||
}
|
||||
|
||||
dctx->super.name = copyString( MPPARM(dctx->super.mpool) fileName);
|
||||
dctx->super.name = copyString( dctx->super.mpool, fileName);
|
||||
}
|
||||
|
||||
fclose( dictF );
|
||||
|
|
|
@ -667,6 +667,8 @@ main( int argc, char** argv )
|
|||
CommsConnType conType = COMMS_CONN_UNUSED;
|
||||
const char* btaddr = NULL;
|
||||
|
||||
XP_LOGF( "main started: pid = %d", getpid() );
|
||||
|
||||
#ifdef DEBUG
|
||||
{
|
||||
int i;
|
||||
|
@ -740,7 +742,7 @@ main( int argc, char** argv )
|
|||
conType = COMMS_CONN_RELAY;
|
||||
break;
|
||||
case 'd':
|
||||
mainParams.gi.dictName = copyString( MPPARM(mainParams.util->mpool)
|
||||
mainParams.gi.dictName = copyString( mainParams.util->mpool,
|
||||
(XP_UCHAR*)optarg );
|
||||
break;
|
||||
case 'e':
|
||||
|
@ -768,7 +770,7 @@ main( int argc, char** argv )
|
|||
mainParams.gi.players[index].isRobot = XP_FALSE;
|
||||
mainParams.gi.players[index].isLocal = XP_TRUE;
|
||||
mainParams.gi.players[index].name =
|
||||
copyString(MPPARM(mainParams.util->mpool) (XP_UCHAR*)optarg);
|
||||
copyString( mainParams.util->mpool, (XP_UCHAR*)optarg);
|
||||
break;
|
||||
case 'N':
|
||||
index = mainParams.gi.nPlayers++;
|
||||
|
@ -788,7 +790,7 @@ main( int argc, char** argv )
|
|||
mainParams.gi.players[index].isRobot = XP_TRUE;
|
||||
mainParams.gi.players[index].isLocal = XP_TRUE;
|
||||
mainParams.gi.players[index].name =
|
||||
copyString(MPPARM(mainParams.util->mpool) (XP_UCHAR*)optarg);
|
||||
copyString( mainParams.util->mpool, (XP_UCHAR*)optarg);
|
||||
break;
|
||||
case 's':
|
||||
isServer = XP_TRUE;
|
||||
|
|
Loading…
Reference in a new issue