add a few consts

This commit is contained in:
ehouse 2005-10-30 05:05:45 +00:00
parent 6d88725e05
commit 880b626070

View file

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