This commit is contained in:
Chris Jones 2009-07-13 12:16:40 -05:00
Родитель 8823ec3a2c
Коммит 2e18128825
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -72,6 +72,7 @@ class Parser:
self.parser = None
self.tu = TranslationUnit()
self.direction = None
self.errout = None
def parse(self, input, filename, includedirs, errout):
assert os.path.isabs(filename)
@ -90,6 +91,7 @@ class Parser:
self.filename = filename
self.includedirs = includedirs
self.tu.filename = filename
self.errout = errout
Parser.parsed[filename] = self
Parser.parseStack.append(Parser.current)
@ -238,7 +240,7 @@ def p_ProtocolIncludeStmt(p):
raise ParseError(loc, "can't locate protocol include file `%s'"% (
inc.file))
inc.tu = Parser().parse(open(path).read(), path, Parser.current.includedirs)
inc.tu = Parser().parse(open(path).read(), path, Parser.current.includedirs, Parser.current.errout)
p[0] = inc
def p_UsingStmt(p):