mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
create empty dicts
This commit is contained in:
parent
5c8e0486f8
commit
0d7abd2fbf
1 changed files with 95 additions and 87 deletions
|
@ -194,6 +194,13 @@ readFileToBuf( XP_UCHAR* dictBuf, const RFile* file )
|
|||
DictionaryCtxt*
|
||||
sym_dictionary_makeL( MPFORMAL const XP_UCHAR* aDictName )
|
||||
{
|
||||
if ( !aDictName ) {
|
||||
SymDictCtxt* ctxt = (SymDictCtxt*)XP_MALLOC( mpool, sizeof( *ctxt ) );
|
||||
XP_MEMSET( ctxt, 0, sizeof(*ctxt) );
|
||||
MPASSIGN( ctxt->super.mpool, mpool );
|
||||
return &ctxt->super;
|
||||
} else {
|
||||
|
||||
#if defined __WINS__
|
||||
_LIT( dir,"z:\\system\\apps\\XWORDS\\" );
|
||||
#elif defined __MARM__
|
||||
|
@ -309,10 +316,11 @@ sym_dictionary_makeL( MPFORMAL const XP_UCHAR* aDictName )
|
|||
ctxt->super.base = (array_edge*)NULL;
|
||||
}
|
||||
|
||||
CleanupStack::PopAndDestroy(); // file
|
||||
CleanupStack::PopAndDestroy(); // fileSession
|
||||
CleanupStack::PopAndDestroy( &file ); // file
|
||||
CleanupStack::PopAndDestroy( &fileSession ); // fileSession
|
||||
|
||||
return &ctxt->super;
|
||||
}
|
||||
} // sym_dictionary_make
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Reference in a new issue