mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
Add more consts.
This commit is contained in:
parent
a88d079029
commit
a7e58126ed
5 changed files with 8 additions and 8 deletions
|
@ -354,7 +354,7 @@ dict_loadFromStream( DictionaryCtxt* dict, XWStreamCtxt* stream )
|
|||
setBlankTile( dict );
|
||||
} /* dict_loadFromStream */
|
||||
|
||||
XP_UCHAR*
|
||||
const XP_UCHAR*
|
||||
dict_getName( const DictionaryCtxt* dict )
|
||||
{
|
||||
XP_ASSERT( !!dict );
|
||||
|
|
|
@ -62,7 +62,7 @@ struct DictionaryCtxt {
|
|||
|
||||
array_edge* (*func_edge_for_index)( const DictionaryCtxt* dict, XP_U32 index );
|
||||
array_edge* (*func_dict_getTopEdge)( const DictionaryCtxt* dict );
|
||||
XP_UCHAR* (*func_dict_getShortName)( const DictionaryCtxt* dict );
|
||||
const XP_UCHAR* (*func_dict_getShortName)( const DictionaryCtxt* dict );
|
||||
|
||||
array_edge* topEdge;
|
||||
array_edge* base; /* the physical beginning of the dictionary; not
|
||||
|
@ -134,7 +134,7 @@ XP_U16 dict_numTileFaces( const DictionaryCtxt* ctxt );
|
|||
|
||||
XP_U16 dict_tilesToString( const DictionaryCtxt* ctxt, const Tile* tiles,
|
||||
XP_U16 nTiles, XP_UCHAR* buf, XP_U16 bufSize );
|
||||
XP_UCHAR* dict_getName( const DictionaryCtxt* ctxt );
|
||||
const XP_UCHAR* dict_getName( const DictionaryCtxt* ctxt );
|
||||
|
||||
Tile dict_tileForString( const DictionaryCtxt* dict, const XP_UCHAR* key );
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@ stringFromStreamHere( XWStreamCtxt* stream, XP_UCHAR* buf, XP_U16 buflen )
|
|||
}
|
||||
|
||||
void
|
||||
stringToStream( XWStreamCtxt* stream, XP_UCHAR* str )
|
||||
stringToStream( XWStreamCtxt* stream, const XP_UCHAR* str )
|
||||
{
|
||||
XP_U16 len = str==NULL? 0: XP_STRLEN( (const char*)str );
|
||||
XP_ASSERT( len < 0xFF );
|
||||
|
|
|
@ -39,7 +39,7 @@ void signedToStream( XWStreamCtxt* stream, XP_U16 nBits, XP_S32 num );
|
|||
|
||||
XP_UCHAR* stringFromStream( MPFORMAL XWStreamCtxt* stream );
|
||||
XP_U16 stringFromStreamHere( XWStreamCtxt* stream, XP_UCHAR* buf, XP_U16 len );
|
||||
void stringToStream( XWStreamCtxt* stream, XP_UCHAR* str );
|
||||
void stringToStream( XWStreamCtxt* stream, const XP_UCHAR* str );
|
||||
|
||||
XP_UCHAR* p_copyString( MPFORMAL const XP_UCHAR* instr
|
||||
#ifdef MEM_DEBUG
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
// Prototypes
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
static XP_U16 populateDictionaryList( MPFORMAL ListData* sLd,
|
||||
XP_UCHAR* curDictName,
|
||||
const XP_UCHAR* curDictName,
|
||||
ListPtr list, Int16 triggerID,
|
||||
PalmDictList* dl );
|
||||
static Boolean beamDict( const PalmDictList* dl, XP_UCHAR* dictName );
|
||||
|
@ -66,7 +66,7 @@ dictFormHandleEvent( EventPtr event )
|
|||
|
||||
switch ( event->eType ) {
|
||||
case frmOpenEvent: {
|
||||
XP_UCHAR* curName;
|
||||
const XP_UCHAR* curName;
|
||||
XP_U16 width;
|
||||
RectangleType rect;
|
||||
|
||||
|
@ -168,7 +168,7 @@ dictFormHandleEvent( EventPtr event )
|
|||
*
|
||||
****************************************************************************/
|
||||
static XP_U16
|
||||
populateDictionaryList( MPFORMAL ListData* sLd, XP_UCHAR* curDictName,
|
||||
populateDictionaryList( MPFORMAL ListData* sLd, const XP_UCHAR* curDictName,
|
||||
ListPtr list, Int16 triggerID, PalmDictList* dl )
|
||||
{
|
||||
XP_U16 i;
|
||||
|
|
Loading…
Add table
Reference in a new issue