summaryrefslogtreecommitdiff
path: root/rsc/source/parser/rsclex.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'rsc/source/parser/rsclex.cxx')
-rw-r--r--rsc/source/parser/rsclex.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/rsc/source/parser/rsclex.cxx b/rsc/source/parser/rsclex.cxx
index 675e2548c3ca..46f3a4d17468 100644
--- a/rsc/source/parser/rsclex.cxx
+++ b/rsc/source/parser/rsclex.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: rsclex.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: hr $ $Date: 2004-09-08 15:34:31 $
+ * last change: $Author: obo $ $Date: 2005-01-03 17:26:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -124,7 +124,7 @@ StringContainer* pStringContainer = NULL;
/****************** C O D E **********************************************/
UINT32 GetNumber(){
UINT32 l = 0;
- short nLog = 10;
+ UINT32 nLog = 10;
if( '0' == c ){
c = pFI->GetFastChar();
@@ -247,7 +247,7 @@ int MakeToken( YYSTYPE * pTokenVal ){
}
if( isalpha (c) || (c == '_') ){
- HASHID nHashId;
+ Atom nHashId;
OStringBuffer aBuf( 256 );
while( isalnum (c) || (c == '_') || (c == '-') )
@@ -256,8 +256,8 @@ int MakeToken( YYSTYPE * pTokenVal ){
c = pFI->GetFastChar();
}
- nHashId = pHS->Test( aBuf.getStr() );
- if( HASH_NONAME != nHashId )
+ nHashId = pHS->getID( aBuf.getStr(), true );
+ if( InvalidAtom != nHashId )
{
KEY_STRUCT aKey;
@@ -442,7 +442,7 @@ ERRTYPE parser( RscFileInst * pFileInst )
EndParser();
// yyparser gibt 0 zurueck, wenn erfolgreich
- if( 0 == (USHORT)aError )
+ if( 0 == aError )
aError.Clear();
if( pFileInst->pTypCont->pEH->nErrors )
aError = ERR_ERROR;
@@ -470,7 +470,7 @@ RscExpression * MacroParser( RscFileInst & rFileInst )
EndParser();
// yyparser gibt 0 zurueck, wenn erfolgreich
- if( 0 == (USHORT)aError )
+ if( 0 == aError )
aError.Clear();
if( rFileInst.pTypCont->pEH->nErrors )
aError = ERR_ERROR;