Makefile: Include py-topdir.mk
Include py-topdir.mk, which entails loads of fallout from make check. Fix it. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
7212850b22
commit
e9845b5a1f
1 changed files with 1796 additions and 1191 deletions
|
|
@ -1,6 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
class CppState: # export
|
||||
class CppState: # export
|
||||
|
||||
def __init__(self):
|
||||
self.__pair_square = ['[', ']']
|
||||
|
|
@ -33,37 +31,39 @@ class CppState: # export
|
|||
self.things.append(self.__pair_square)
|
||||
elif tok == ']':
|
||||
self.square -= 1
|
||||
assert(self.things.pop() == self.__pair_square)
|
||||
assert (self.things.pop() == self.__pair_square)
|
||||
elif tok == '{':
|
||||
self.curly += 1
|
||||
self.things.append(self.__pair_curly)
|
||||
elif tok == '}':
|
||||
self.curly -= 1
|
||||
assert(self.things.pop() == self.__pair_curly)
|
||||
assert (self.things.pop() == self.__pair_curly)
|
||||
elif tok == '(':
|
||||
self.paren += 1
|
||||
self.things.append(self.__pair_paren)
|
||||
elif tok == ')':
|
||||
self.paren -= 1
|
||||
assert(self.things.pop() == self.__pair_paren)
|
||||
assert (self.things.pop() == self.__pair_paren)
|
||||
elif tok == '<':
|
||||
self.ext += 1
|
||||
self.things.append(self.__pair_ext)
|
||||
elif tok == '>':
|
||||
self.ext -= 1
|
||||
assert(self.things.pop() == self.__pair_ext)
|
||||
assert (self.things.pop() == self.__pair_ext)
|
||||
elif tok == '?':
|
||||
if not self.in_special:
|
||||
self.in_special = True
|
||||
self.things.append(self.__pair_special)
|
||||
else:
|
||||
self.in_special = False
|
||||
assert(self.things.pop() == self.__pair_special)
|
||||
assert (self.things.pop() == self.__pair_special)
|
||||
elif tok == '/*':
|
||||
self.in_c_comment = True
|
||||
self.things.append(self.__pair_c_comment)
|
||||
elif tok == '*/':
|
||||
raise Exception("Unmatched closing C-style comment mark", tok, "in line", line)
|
||||
raise Exception(
|
||||
"Unmatched closing C-style comment mark", tok, "in line", line
|
||||
)
|
||||
else:
|
||||
if self.in_cpp_comment:
|
||||
if tok == '\n':
|
||||
|
|
@ -72,7 +72,7 @@ class CppState: # export
|
|||
if tok == '/*':
|
||||
raise Exception("Nested C-style comment", tok, "in line", line)
|
||||
elif tok == '*/':
|
||||
assert(self.things.pop() == self.__pair_c_comment)
|
||||
assert (self.things.pop() == self.__pair_c_comment)
|
||||
self.in_c_comment = False
|
||||
|
||||
if self.curly < 0 or self.square < 0 or self.ext < 0 or self.paren < 0:
|
||||
|
|
@ -101,4 +101,3 @@ class CppState: # export
|
|||
|
||||
def is_optional(self):
|
||||
return self.in_list() or self.in_option()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue