Add more consts.

This commit is contained in:
ehouse 2006-09-24 15:28:15 +00:00
parent a88d079029
commit a7e58126ed
5 changed files with 8 additions and 8 deletions

View file

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

View file

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

View file

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

View file

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

View file

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