#\r
# This file contained the miscellaneous routines for GenMetaFile usage.\r
#\r
-# Copyright (c) 2011 - 2017, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
#\r
-# This program and the accompanying materials are licensed and made available \r
-# under the terms and conditions of the BSD License which accompanies this \r
-# distribution. The full text of the license may be found at \r
+# This program and the accompanying materials are licensed and made available\r
+# under the terms and conditions of the BSD License which accompanies this\r
+# distribution. The full text of the license may be found at\r
# http://opensource.org/licenses/bsd-license.php\r
#\r
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
# @param SectionDict: string of source file path/name\r
# @param Arch: string of source file family field\r
# @param ExternList: string of source file FeatureFlag field\r
-# \r
+#\r
def AddExternToDefineSec(SectionDict, Arch, ExternList):\r
LeftOffset = 31\r
for ArchList, EntryPoint, UnloadImage, Constructor, Destructor, FFE, HelpStringList in ExternList:\r
Path = None\r
#\r
# find package path/name\r
- # \r
+ #\r
for PkgInfo in GlobalData.gWSPKG_LIST:\r
if Guid == PkgInfo[1]:\r
if (not Version) or (Version == PkgInfo[2]):\r
return TokenSpaceGuidName, PcdCName\r
\r
## _TransferDict\r
-# transfer dict that using (Statement, SortedArch) as key, \r
+# transfer dict that using (Statement, SortedArch) as key,\r
# (GenericComment, UsageComment) as value into a dict that using SortedArch as\r
-# key and NewStatement as value \r
+# key and NewStatement as value\r
#\r
def TransferDict(OrigDict, Type=None):\r
NewDict = {}\r
for Statement, SortedArch in OrigDict:\r
if len(Statement) > LeftOffset:\r
LeftOffset = len(Statement)\r
- \r
+\r
for Statement, SortedArch in OrigDict:\r
Comment = OrigDict[Statement, SortedArch]\r
#\r