|
From: <gi...@us...> - 2011-12-16 03:16:46
|
Revision: 2472
http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=2472&view=rev
Author: gikidy
Date: 2011-12-16 03:16:40 +0000 (Fri, 16 Dec 2011)
Log Message:
-----------
Fix an issue while using !ifdef in FDF file.
Signed-off-by: gikidy
Reviewed-by: lgao4
Modified Paths:
--------------
trunk/BaseTools/Source/Python/GenFds/FdfParser.py
Modified: trunk/BaseTools/Source/Python/GenFds/FdfParser.py
===================================================================
--- trunk/BaseTools/Source/Python/GenFds/FdfParser.py 2011-12-15 03:32:45 UTC (rev 2471)
+++ trunk/BaseTools/Source/Python/GenFds/FdfParser.py 2011-12-16 03:16:40 UTC (rev 2472)
@@ -679,7 +679,7 @@
PreIndex = 0
StartPos = CurLine.find('$(', PreIndex)
EndPos = CurLine.find(')', StartPos+2)
- while StartPos != -1 and EndPos != -1 and not (self.__Token == 'ifdef' or self.__Token == '!ifndef'):
+ while StartPos != -1 and EndPos != -1 and not (self.__Token == '!ifdef' or self.__Token == '!ifndef'):
MacroName = CurLine[StartPos+2 : EndPos]
MacorValue = self.__GetMacroValue(MacroName)
if MacorValue != None:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|