From 0925cb4f76a1667fb3777efbe6a0e0e69c4cca3c Mon Sep 17 00:00:00 2001 From: marha Date: Thu, 10 Dec 2009 15:49:55 +0000 Subject: Added 64-bit compilation Removed autodep optimisation. --- tools/mhmake/src/mhmakelexer.l | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tools/mhmake/src/mhmakelexer.l') diff --git a/tools/mhmake/src/mhmakelexer.l b/tools/mhmake/src/mhmakelexer.l index 0b25d4c74..00c9c3f9b 100644 --- a/tools/mhmake/src/mhmakelexer.l +++ b/tools/mhmake/src/mhmakelexer.l @@ -67,7 +67,7 @@ static void SaveMakMd5(refptr &Target) };\ int m_Line;\ int m_BraceIndent;\ - int m_IndentSkip;\ + size_t m_IndentSkip;\ iterstack m_IndentStack;\ bool m_IgnoreIncludeError;\ string m_InputFileName; \ @@ -567,7 +567,7 @@ export { /*---------------------------------------------------------------------------*/ [a-zA-Z]:[a-zA-Z0-9\\\._\~\-%\@<&/]+\\[ \t\r]*\n { - int EndIndex=::strlen((const char*)yytext); + size_t EndIndex=::strlen((const char*)yytext); while (strchr(" \t\r\n\\",yytext[--EndIndex])); yyless(EndIndex+1); @@ -584,7 +584,7 @@ export { /*---------------------------------------------------------------------------*/ ([a-zA-Z0-9\\\._\~\-\+%\@<&;/\*]|\\\ |\\#)+\\[ \t\r]*\n { - int EndIndex=::strlen((const char*)yytext); + size_t EndIndex=::strlen((const char*)yytext); while (strchr(" \t\r\n\\",yytext[--EndIndex])); yyless(EndIndex+1); @@ -594,7 +594,7 @@ export { } ([a-zA-Z0-9\\\._\~\-\+%\@<&;/\*]|\\\ |\\#)+\+= { - int Len; + size_t Len; PRINTF(("%s %d: STRING: %s\n",m_InputFileName.c_str(),m_Line,yytext)); Len=strlen((const char *)yytext)-2; yyless(Len); @@ -727,7 +727,7 @@ export { [ \t]*\\#[^\n]* { char ToAdd[100]; int i=0; - int nChars=(strchr((const char *)yytext,'#')-(char*)yytext)+1; + int nChars=(int)((strchr((const char *)yytext,'#')-(char*)yytext))+1; while (strchr(" \t",yytext[i])) { ToAdd[i]=yytext[i]; -- cgit v1.2.3