mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +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 ***********************/
|
/************************ 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 );
|
static void linux_dictionary_destroy( DictionaryCtxt* dict );
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
DictionaryCtxt*
|
DictionaryCtxt*
|
||||||
linux_dictionary_make( MPFORMAL char* dictFileName )
|
linux_dictionary_make( MPFORMAL const char* dictFileName )
|
||||||
{
|
{
|
||||||
LinuxDictionaryCtxt* result =
|
LinuxDictionaryCtxt* result =
|
||||||
(LinuxDictionaryCtxt*)XP_MALLOC(mpool, sizeof(*result));
|
(LinuxDictionaryCtxt*)XP_MALLOC(mpool, sizeof(*result));
|
||||||
|
@ -152,7 +153,7 @@ skipBitmaps( LinuxDictionaryCtxt* ctxt, FILE* dictF )
|
||||||
} /* skipBitmaps */
|
} /* skipBitmaps */
|
||||||
|
|
||||||
static XP_Bool
|
static XP_Bool
|
||||||
initFromDictFile( LinuxDictionaryCtxt* dctx, char* fileName )
|
initFromDictFile( LinuxDictionaryCtxt* dctx, const char* fileName )
|
||||||
{
|
{
|
||||||
XP_Bool formatOk = XP_TRUE;
|
XP_Bool formatOk = XP_TRUE;
|
||||||
XP_U8 numFaces;
|
XP_U8 numFaces;
|
||||||
|
@ -318,7 +319,7 @@ linux_dictionary_destroy( DictionaryCtxt* dict )
|
||||||
*/
|
*/
|
||||||
#define RECS_BEFORE_DAWG 3 /* a hack */
|
#define RECS_BEFORE_DAWG 3 /* a hack */
|
||||||
static XP_Bool
|
static XP_Bool
|
||||||
initFromDictFile( LinuxDictionaryCtxt* dctx, char* fileName )
|
initFromDictFile( LinuxDictionaryCtxt* dctx, const char* fileName )
|
||||||
{
|
{
|
||||||
short i;
|
short i;
|
||||||
unsigned short* dataP;
|
unsigned short* dataP;
|
||||||
|
|
Loading…
Add table
Reference in a new issue