imgtools/romtools/rombuild/r_obey.cpp
changeset 647 53d1ab72f5bc
parent 626 ac03b93ca9c4
child 709 1ec2202bb75b
equal deleted inserted replaced
641:8dd670a9f34f 647:53d1ab72f5bc
   294 	iNumWords = Parse();
   294 	iNumWords = Parse();
   295 	return KErrNone;
   295 	return KErrNone;
   296 }
   296 }
   297 TInt ObeyFileReader::NextLine(TInt aPass, enum EKeyword& aKeyword)
   297 TInt ObeyFileReader::NextLine(TInt aPass, enum EKeyword& aKeyword)
   298 	{
   298 	{
   299 
   299 	static int warnline = -1;
   300 NextLine:
   300 NextLine:
   301 	TInt err = ReadAndParseLine();
   301 	TInt err = ReadAndParseLine();
   302 	if (err == KErrEof)
   302 	if (err == KErrEof)
   303 		return KErrEof;
   303 		return KErrEof;
   304 	if (iNumWords == 0 )
   304 	if (iNumWords == 0 )
   344 		}
   344 		}
   345 		
   345 		
   346 		aKeyword = k->iKeywordEnum;
   346 		aKeyword = k->iKeywordEnum;
   347 		return KErrNone;
   347 		return KErrNone;
   348 	}
   348 	}
   349 	if (aPass == 1)
   349 	if (aPass == 1 && iCurrentLine > warnline){
       
   350 		warnline = iCurrentLine;
   350 		Print(EWarning, "Unknown keyword '%s'.  Line %d ignored\n", iWord[0], iCurrentLine);
   351 		Print(EWarning, "Unknown keyword '%s'.  Line %d ignored\n", iWord[0], iCurrentLine);
       
   352 	}
   351 	goto NextLine;
   353 	goto NextLine;
   352 }
   354 }
   353 
   355 
   354  
   356  
   355 //
   357 //