Commit 0f5f60f7 authored by Andrey Pavlenko's avatar Andrey Pavlenko

- extra spaces are removed

- static class member modifier processing is fixed (moved from 'rettype' to 'func_modlist')
parent 2935bb29
......@@ -749,8 +749,9 @@ class PythonWrapperGenerator(object):
if __name__ == "__main__":
srcfiles = hdr_parser.opencv_hdr_list
dstdir = "/Users/vp/tmp"
if len(sys.argv) > 2:
if len(sys.argv) > 1:
dstdir = sys.argv[1]
if len(sys.argv) > 2:
srcfiles = sys.argv[2:]
generator = PythonWrapperGenerator()
generator.gen(srcfiles, dstdir)
......
......@@ -251,7 +251,7 @@ class CppHeaderParser(object):
[const] {; | <function_body>}
Returns the function declaration entry:
[<function_name>, <rettype>, <the_list_of_argument_descriptions>] (see above)
[<func name>, <return value C-type>, <list of modifiers>, <list of arguments>] (see above)
"""
if not (("CV_EXPORTS_AS" in decl_str) or ("CV_EXPORTS_W" in decl_str) or \
......@@ -400,7 +400,7 @@ class CppHeaderParser(object):
return []
if static_method:
rettype = " ".join([rettype, "/S"])
func_modlist.append("/S")
return [funcname, rettype, func_modlist, args]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment