allow values in DEFINES to contain equals signs. r=pike (no bug)

This commit is contained in:
Ted Mielczarek 2008-09-22 07:04:36 -04:00
parent 086eaca58f
commit 19375ad6bd

View File

@ -174,8 +174,7 @@ class Preprocessor:
for k,v in os.environ.iteritems():
self.context[k] = v
def handleD(option, opt, value, parser):
vals = value.split('=')
assert len(vals) < 3
vals = value.split('=', 1)
if len(vals) == 1:
vals.append(1)
elif unescapeDefines and escapedValue.match(vals[1]):