Backout changeset 3a7ece100089 (bug 770182) because of make check failures

This commit is contained in:
Ehsan Akhgari 2012-07-10 15:41:43 -04:00
Родитель 026e29eb7e
Коммит 85c97b4e67
3 изменённых файлов: 0 добавлений и 27 удалений

Просмотреть файл

@ -370,7 +370,6 @@ class JarMaker(object):
pp.setMarker('%')
pp.out = outf
pp.do_include(inf)
pp.warnUnused(realsrc)
outf.close()
inf.close()
return

Просмотреть файл

@ -41,7 +41,6 @@ class Preprocessor:
'LINE': 0,
'DIRECTORY': os.path.abspath('.')}.iteritems():
self.context[k] = v
self.actionLevel = 0
self.disableLevel = 0
# ifStates can be
# 0: hadTrue
@ -75,13 +74,6 @@ class Preprocessor:
self.LE = '\n'
self.varsubst = re.compile('@(?P<VAR>\w+)@', re.U)
def warnUnused(self, file):
if self.actionLevel == 0:
sys.stderr.write('%s: WARNING: no preprocessor directives found\n' % file)
elif self.actionLevel == 1:
sys.stderr.write('%s: WARNING: no useful preprocessor directives found\n' % file)
pass
def setLineEndings(self, aLE):
"""
Set the line endings to be used for output.
@ -145,7 +137,6 @@ class Preprocessor:
includes.extend(args)
for f in includes:
self.do_include(f, False)
self.warnUnused(f)
pass
def getCommandLineParser(self, unescapeDefines = False):
@ -195,8 +186,6 @@ class Preprocessor:
"""
Handle a single line of input (internal).
"""
if self.actionLevel == 0 and self.comment.match(aLine):
self.actionLevel = 1
m = self.instruction.match(aLine)
if m:
args = None
@ -210,8 +199,6 @@ class Preprocessor:
level, cmd = self.cmds[cmd]
if (level >= self.disableLevel):
cmd(args)
if cmd != 'literal':
self.actionLevel = 2
elif self.disableLevel == 0 and not self.comment.match(aLine):
self.write(aLine)
pass

Просмотреть файл

@ -41,7 +41,6 @@ class Preprocessor:
'LINE': 0,
'DIRECTORY': os.path.abspath('.')}.iteritems():
self.context[k] = v
self.actionLevel = 0
self.disableLevel = 0
# ifStates can be
# 0: hadTrue
@ -75,13 +74,6 @@ class Preprocessor:
self.LE = '\n'
self.varsubst = re.compile('@(?P<VAR>\w+)@', re.U)
def warnUnused(self, file):
if self.actionLevel == 0:
sys.stderr.write('%s: WARNING: no preprocessor directives found\n' % file)
elif self.actionLevel == 1:
sys.stderr.write('%s: WARNING: no useful preprocessor directives found\n' % file)
pass
def setLineEndings(self, aLE):
"""
Set the line endings to be used for output.
@ -145,7 +137,6 @@ class Preprocessor:
includes.extend(args)
for f in includes:
self.do_include(f, False)
self.warnUnused(f)
pass
def getCommandLineParser(self, unescapeDefines = False):
@ -195,8 +186,6 @@ class Preprocessor:
"""
Handle a single line of input (internal).
"""
if self.actionLevel == 0 and self.comment.match(aLine):
self.actionLevel = 1
m = self.instruction.match(aLine)
if m:
args = None
@ -210,8 +199,6 @@ class Preprocessor:
level, cmd = self.cmds[cmd]
if (level >= self.disableLevel):
cmd(args)
if cmd != 'literal':
self.actionLevel = 2
elif self.disableLevel == 0 and not self.comment.match(aLine):
self.write(aLine)
pass