Allow explicit and implicit numbering of the same tag.

Change-Id: I59c24cc211250da7e0aed9e0b0aa16517fd72d55
This commit is contained in:
Dan Egnor 2010-03-17 16:59:12 -07:00
parent 8c254825a0
commit 5fe3b35846
1 changed files with 6 additions and 0 deletions

View File

@ -82,6 +82,12 @@ for fn in args:
if t.tagname in by_tagname: if t.tagname in by_tagname:
orig = by_tagname[t.tagname] orig = by_tagname[t.tagname]
# Allow an explicit tag number to define an implicit tag number
if orig.tagnum is None:
orig.tagnum = t.tagnum
elif t.tagnum is None:
t.tagnum = orig.tagnum
if (t.tagnum == orig.tagnum and if (t.tagnum == orig.tagnum and
t.description == orig.description): t.description == orig.description):
# if the name and description are identical, issue a warning # if the name and description are identical, issue a warning