summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-06 11:45:14 +0200
committerNoel Grandin <noel@peralex.com>2015-08-06 11:45:49 +0200
commit70e06397ac48b79487f6ce4ff1e0517e922fa73f (patch)
tree3d48534bd6e065c075c52978d4a32a4d9dc0ea62 /bin
parent30585544fe20e177226e672dbc31e91ed2988772 (diff)
in find-duplicated-sids, also check for redefinitions
Change-Id: I0c90efb477a7e9ee4acac98f97c9ff77e75cdec4
Diffstat (limited to 'bin')
-rwxr-xr-xbin/find-duplicated-sids.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/find-duplicated-sids.py b/bin/find-duplicated-sids.py
index ccd7a630f0f2..8f5e4ff9246f 100755
--- a/bin/find-duplicated-sids.py
+++ b/bin/find-duplicated-sids.py
@@ -60,7 +60,11 @@ with a.stdout as txt:
if (sidTextValue.find("\"") != -1): continue
# ignore the multiline macros
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
# decode the constants into their numeric values recursively