Kaydet (Commit) 70e06397 authored tarafından Noel Grandin's avatar Noel Grandin

in find-duplicated-sids, also check for redefinitions

Change-Id: I0c90efb477a7e9ee4acac98f97c9ff77e75cdec4
üst 30585544
...@@ -60,7 +60,11 @@ with a.stdout as txt: ...@@ -60,7 +60,11 @@ with a.stdout as txt:
if (sidTextValue.find("\"") != -1): continue if (sidTextValue.find("\"") != -1): continue
# ignore the multiline macros # ignore the multiline macros
if (sidTextValue.find("\\") != -1): continue if (sidTextValue.find("\\") != -1): continue
sidNameToValue[sidName] = sidTextValue # check for redefinitions
if sidName[0:4] == "SID_" and sidNameToValue.has_key(sidName):
print "Redefinition:\n\t", sidNameToOriginalLine[sidName], "\n\t" , originalLine
else:
sidNameToValue[sidName] = sidTextValue
sidNameToOriginalLine[sidName] = originalLine sidNameToOriginalLine[sidName] = originalLine
# decode the constants into their numeric values recursively # decode the constants into their numeric values recursively
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment