create empty dicts

This commit is contained in:
ehouse 2005-01-18 15:11:46 +00:00
parent 5c8e0486f8
commit 0d7abd2fbf

View file

@ -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