[Plib-cvs] plib/src/psl pslCompiler.h,1.2,1.3 pslSymbols.cxx,1.10,1.11
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-09-06 18:51:56
|
Update of /cvsroot/plib/plib/src/psl In directory usw-pr-cvs1:/tmp/cvs-serv2470 Modified Files: pslCompiler.h pslSymbols.cxx Log Message: Some more changes for const-correctness Index: pslCompiler.h =================================================================== RCS file: /cvsroot/plib/plib/src/psl/pslCompiler.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- pslCompiler.h 6 Sep 2002 18:36:21 -0000 1.2 +++ pslCompiler.h 6 Sep 2002 18:51:52 -0000 1.3 @@ -34,9 +34,9 @@ where = w ; } - pslAddress getWhere () { return where ; } + pslAddress getWhere () const { return where ; } - int matches ( const char *s ) + int matches ( const char *s ) const { return symbol != NULL && strcmp ( s, symbol ) == 0 ; } @@ -107,7 +107,8 @@ pslAddress getCodeSymbol ( const char *s, pslAddress fixupLoc ) ; void setCodeSymbol ( const char *s, pslAddress v ) ; - int getExtensionSymbol ( const char *s ) ; + + int getExtensionSymbol ( const char *s ) const ; private: Index: pslSymbols.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/psl/pslSymbols.cxx,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- pslSymbols.cxx 6 Sep 2002 17:20:56 -0000 1.10 +++ pslSymbols.cxx 6 Sep 2002 18:51:53 -0000 1.11 @@ -62,7 +62,7 @@ } -int pslCompiler::getExtensionSymbol ( const char *s ) +int pslCompiler::getExtensionSymbol ( const char *s ) const { for ( int i = 0 ; extensions [ i ] . symbol != NULL ; i++ ) if ( strcmp ( s, extensions [ i ] . symbol ) == 0 ) |