Revision: 17711
          http://sourceforge.net/p/edk2/code/17711
Author:   hchen30
Date:     2015-06-25 08:10:51 +0000 (Thu, 25 Jun 2015)
Log Message:
-----------
BaseTools/Ecc: Fix a bug of determining boolean variable incorrectly

Fix a bug of determining boolean variable incorrectly in C parser

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hess Chen <[email protected]>
Reviewed-by: YangX Li <[email protected]>

Modified Paths:
--------------
    trunk/edk2/BaseTools/Source/Python/Ecc/c.py

Modified: trunk/edk2/BaseTools/Source/Python/Ecc/c.py
===================================================================
--- trunk/edk2/BaseTools/Source/Python/Ecc/c.py 2015-06-25 08:08:55 UTC (rev 
17710)
+++ trunk/edk2/BaseTools/Source/Python/Ecc/c.py 2015-06-25 08:10:51 UTC (rev 
17711)
@@ -1172,6 +1172,8 @@
             else:
                 TypeList = GetDataTypeFromModifier(Param.Modifier).split()
                 Type = TypeList[-1]
+                if Type == '*' and len(TypeList) >= 2:
+                    Type = TypeList[-2]
                 if len(TypeList) > 1 and StarList != None:
                     for Star in StarList:
                         Type = Type.strip()


------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to