BaseTools: Various typo
Various typo in BaseTools. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Coeur <coeur@gmx.fr> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
committed by
Liming Gao
parent
325ad62260
commit
fb0b35e05f
@ -6,7 +6,7 @@ from antlr3.compat import set, frozenset
|
||||
## @file
|
||||
# The file defines the Lexer for C source files.
|
||||
#
|
||||
# THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE.
|
||||
# THIS FILE IS AUTO-GENERATED. PLEASE DO NOT MODIFY THIS FILE.
|
||||
# This file is generated by running:
|
||||
# java org.antlr.Tool C.g
|
||||
#
|
||||
|
@ -8,7 +8,7 @@ from antlr3.compat import set, frozenset
|
||||
## @file
|
||||
# The file defines the parser for C source files.
|
||||
#
|
||||
# THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE.
|
||||
# THIS FILE IS AUTO-GENERATED. PLEASE DO NOT MODIFY THIS FILE.
|
||||
# This file is generated by running:
|
||||
# java org.antlr.Tool C.g
|
||||
#
|
||||
|
@ -390,10 +390,10 @@ class CodeFragmentCollector:
|
||||
print('################# ' + self.FileName + '#####################')
|
||||
|
||||
print('/****************************************/')
|
||||
print('/*************** ASSIGNMENTS ***************/')
|
||||
print('/************** ASSIGNMENTS *************/')
|
||||
print('/****************************************/')
|
||||
for asign in FileProfile.AssignmentExpressionList:
|
||||
print(str(asign.StartPos) + asign.Name + asign.Operator + asign.Value)
|
||||
for assign in FileProfile.AssignmentExpressionList:
|
||||
print(str(assign.StartPos) + assign.Name + assign.Operator + assign.Value)
|
||||
|
||||
print('/****************************************/')
|
||||
print('/********* PREPROCESS DIRECTIVES ********/')
|
||||
|
@ -38,7 +38,7 @@ DATABASE_PATH = "Eot.db"
|
||||
|
||||
## Database class
|
||||
#
|
||||
# This class defined the EOT databse
|
||||
# This class defined the EOT database
|
||||
# During the phase of initialization, the database will create all tables and
|
||||
# insert all records of table DataModel
|
||||
#
|
||||
@ -83,7 +83,7 @@ class Database(object):
|
||||
self.Conn = sqlite3.connect(self.DbPath, isolation_level = 'DEFERRED')
|
||||
self.Conn.execute("PRAGMA page_size=8192")
|
||||
self.Conn.execute("PRAGMA synchronous=OFF")
|
||||
# to avoid non-ascii charater conversion error
|
||||
# to avoid non-ascii character conversion error
|
||||
self.Conn.text_factory = str
|
||||
self.Cur = self.Conn.cursor()
|
||||
|
||||
@ -198,7 +198,7 @@ class Database(object):
|
||||
|
||||
## UpdateIdentifierBelongsToFunction() method
|
||||
#
|
||||
# Update the field "BelongsToFunction" for each Indentifier
|
||||
# Update the field "BelongsToFunction" for each Identifier
|
||||
#
|
||||
# @param self: The object pointer
|
||||
#
|
||||
|
@ -92,7 +92,7 @@ gConsumedProtocolLibrary['EfiLocateProtocolHandleBuffers'] = 0
|
||||
gConsumedProtocolLibrary['EfiLocateProtocolInterface'] = 0
|
||||
gConsumedProtocolLibrary['EfiHandleProtocol'] = 1
|
||||
|
||||
# Dict for callback PROTOCOL function callling
|
||||
# Dict for callback PROTOCOL function calling
|
||||
gCallbackProtocolLibrary = OrderedDict()
|
||||
gCallbackProtocolLibrary['EfiRegisterProtocolCallback'] = 2
|
||||
|
||||
|
@ -1514,7 +1514,7 @@ class Eot(object):
|
||||
% (Identifier, '.NotifyPpi', '->NotifyPpi', MODEL_IDENTIFIER_FUNCTION_CALLING)
|
||||
SearchPpi(SqlCommand, Identifier, SourceFileID, SourceFileFullPath, ItemMode)
|
||||
|
||||
# Find Procotols
|
||||
# Find Protocols
|
||||
ItemMode = 'Produced'
|
||||
SqlCommand = """select Value, Name, BelongsToFile, StartLine, EndLine from %s
|
||||
where (Name like '%%%s%%' or Name like '%%%s%%' or Name like '%%%s%%' or Name like '%%%s%%') and Model = %s""" \
|
||||
|
@ -41,8 +41,8 @@ class EdkInfParser(object):
|
||||
# @param Database: Eot database
|
||||
# @param SourceFileList: A list for all source file belonging this INF file
|
||||
# @param SourceOverridePath: Override path for source file
|
||||
# @param Edk_Source: Envirnoment variable EDK_SOURCE
|
||||
# @param Efi_Source: Envirnoment variable EFI_SOURCE
|
||||
# @param Edk_Source: Environment variable EDK_SOURCE
|
||||
# @param Efi_Source: Environment variable EFI_SOURCE
|
||||
#
|
||||
def __init__(self, Filename = None, Database = None, SourceFileList = None, SourceOverridePath = None, Edk_Source = None, Efi_Source = None):
|
||||
self.Identification = Identification()
|
||||
|
@ -62,7 +62,7 @@ def DeCompress(Method, Input):
|
||||
# @param MergeMultipleLines: Switch for if merge multiple lines
|
||||
# @param LineNo: Default line no
|
||||
#
|
||||
# @return Lines: The file contents after remvoing comments
|
||||
# @return Lines: The file contents after removing comments
|
||||
#
|
||||
def PreProcess(Filename, MergeMultipleLines = True, LineNo = -1):
|
||||
Lines = []
|
||||
@ -770,7 +770,7 @@ def GetParameterName(Parameter):
|
||||
# @param Table: Table to be searched
|
||||
# @param Key: The keyword
|
||||
#
|
||||
# @return Value: The value of the the keyword
|
||||
# @return Value: The value of the keyword
|
||||
#
|
||||
def FindKeyValue(Db, Table, Key):
|
||||
SqlCommand = """select Value from %s where Name = '%s' and (Model = %s or Model = %s)""" % (Table, Key, MODEL_IDENTIFIER_VARIABLE, MODEL_IDENTIFIER_ASSIGNMENT_EXPRESSION)
|
||||
|
@ -332,7 +332,7 @@ class Report(object):
|
||||
Content = """ </table></td>
|
||||
</tr>"""
|
||||
self.WriteLn(Content)
|
||||
#End of Consumed Ppi/Portocol
|
||||
#End of Consumed Ppi/Protocol
|
||||
|
||||
# Find Produced Ppi/Protocol
|
||||
SqlCommand = """select ModuleName, ItemType, GuidName, GuidValue, GuidMacro from Report
|
||||
|
Reference in New Issue
Block a user