Extract common base header for C and C++ APIs

This commit is contained in:
Andrey Kamaev
2013-03-14 14:49:15 +04:00
parent 1eb34e062c
commit a1c456b7c3
15 changed files with 460 additions and 340 deletions

View File

@@ -400,7 +400,7 @@ class CppHeaderParser(object):
# note that we do not strip "static" prefix, which does matter;
# it means class methods, not instance methods
decl_str = self.batch_replace(decl_str, [("virtual", ""), ("static inline", ""), ("inline", ""),\
("CV_EXPORTS_W", ""), ("CV_EXPORTS", ""), ("CV_CDECL", ""), ("CV_WRAP ", " "), ("static CV_INLINE", ""), ("CV_INLINE", "")]).strip()
("CV_EXPORTS_W", ""), ("CV_EXPORTS", ""), ("CV_CDECL", ""), ("CV_WRAP ", " "), ("CV_INLINE", "")]).strip()
static_method = False
context = top[0]