mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
add a few consts
This commit is contained in:
parent
6d88725e05
commit
880b626070
1 changed files with 5 additions and 4 deletions
|
@ -42,14 +42,15 @@ typedef struct LinuxDictionaryCtxt {
|
|||
|
||||
|
||||
/************************ Prototypes ***********************/
|
||||
static XP_Bool initFromDictFile( LinuxDictionaryCtxt* dctx, char* fileName );
|
||||
static XP_Bool initFromDictFile( LinuxDictionaryCtxt* dctx,
|
||||
const char* fileName );
|
||||
static void linux_dictionary_destroy( DictionaryCtxt* dict );
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
****************************************************************************/
|
||||
DictionaryCtxt*
|
||||
linux_dictionary_make( MPFORMAL char* dictFileName )
|
||||
linux_dictionary_make( MPFORMAL const char* dictFileName )
|
||||
{
|
||||
LinuxDictionaryCtxt* result =
|
||||
(LinuxDictionaryCtxt*)XP_MALLOC(mpool, sizeof(*result));
|
||||
|
@ -152,7 +153,7 @@ skipBitmaps( LinuxDictionaryCtxt* ctxt, FILE* dictF )
|
|||
} /* skipBitmaps */
|
||||
|
||||
static XP_Bool
|
||||
initFromDictFile( LinuxDictionaryCtxt* dctx, char* fileName )
|
||||
initFromDictFile( LinuxDictionaryCtxt* dctx, const char* fileName )
|
||||
{
|
||||
XP_Bool formatOk = XP_TRUE;
|
||||
XP_U8 numFaces;
|
||||
|
@ -318,7 +319,7 @@ linux_dictionary_destroy( DictionaryCtxt* dict )
|
|||
*/
|
||||
#define RECS_BEFORE_DAWG 3 /* a hack */
|
||||
static XP_Bool
|
||||
initFromDictFile( LinuxDictionaryCtxt* dctx, char* fileName )
|
||||
initFromDictFile( LinuxDictionaryCtxt* dctx, const char* fileName )
|
||||
{
|
||||
short i;
|
||||
unsigned short* dataP;
|
||||
|
|
Loading…
Reference in a new issue