|
From: <js...@us...> - 2011-11-23 01:23:17
|
Revision: 2424
http://edk2-buildtools.svn.sourceforge.net/edk2-buildtools/?rev=2424&view=rev
Author: jsu1
Date: 2011-11-23 01:23:11 +0000 (Wed, 23 Nov 2011)
Log Message:
-----------
Update UPT to not treat '//' as comment if line start with '#'
Reviewed-by: yingke
Signed-off-by: jsu1
Modified Paths:
--------------
trunk/BaseTools/Source/Python/UPT/Library/Misc.py
Modified: trunk/BaseTools/Source/Python/UPT/Library/Misc.py
===================================================================
--- trunk/BaseTools/Source/Python/UPT/Library/Misc.py 2011-11-22 06:18:47 UTC (rev 2423)
+++ trunk/BaseTools/Source/Python/UPT/Library/Misc.py 2011-11-23 01:23:11 UTC (rev 2424)
@@ -875,7 +875,7 @@
for Index in xrange(StartPos, EndPos+1):
LineList[Index] = ''
FindEdkBlockComment = False
- elif Line.find("//") != -1:
+ elif Line.find("//") != -1 and not Line.startswith("#"):
#
# handling cpp style comment
#
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|