├── .gitignore ├── NOTES.rst ├── README ├── README.rst ├── bin └── cwrap ├── cwrap ├── __init__.py ├── backend │ ├── __init__.py │ ├── cw_ast.py │ └── renderer.py ├── config.py ├── frontends │ ├── __init__.py │ ├── clang │ │ ├── __init__.py │ │ ├── ast_transforms.py │ │ ├── c_ast.py │ │ ├── clang │ │ │ ├── __init__.py │ │ │ ├── cindex.py │ │ │ └── enumerations.py │ │ └── clang_parser.py │ └── gccxml │ │ ├── __init__.py │ │ ├── ast_transforms.py │ │ ├── c_ast.py │ │ └── gccxml_parser.py └── version.py ├── examples └── test │ ├── README │ ├── _test.pxd │ ├── convert.py │ └── test.h ├── libclang_show_ast.py ├── run.py ├── runtest.py ├── setup.py ├── test ├── data │ ├── char_fixed_size.h │ ├── char_fixed_size.pxd │ ├── const_argument.h │ ├── const_argument.pxd │ ├── const_function.h │ ├── const_function.pxd │ ├── const_typedef.h │ ├── const_typedef.pxd │ ├── enum.h │ ├── enum.pxd │ ├── function.h │ ├── function.pxd │ ├── functionpointer.h │ ├── functionpointer.pxd │ ├── functionpointer_in_struct.h │ ├── functionpointer_in_struct.pxd │ ├── struct_anonymous.h │ ├── struct_anonymous.pxd │ ├── struct_different_tag_and_typedef.h │ ├── struct_different_tag_and_typedef.pxd │ ├── struct_empty_struct.h │ ├── struct_empty_struct.pxd │ ├── struct_same_tag_and_typedef.h │ ├── struct_same_tag_and_typedef.pxd │ ├── struct_separate_typedef.h │ ├── struct_separate_typedef.pxd │ ├── struct_separate_typedef_with_pointer.h │ ├── struct_separate_typedef_with_pointer.pxd │ ├── struct_with_functionpointer.h │ ├── struct_with_functionpointer.pxd │ ├── struct_with_typedef_field.h │ ├── struct_with_typedef_field.pxd │ ├── typedef_function_with_enum.h │ ├── typedef_function_with_enum.pxd │ ├── typedef_function_with_struct.h │ ├── typedef_function_with_struct.pxd │ ├── typedef_simple.h │ ├── typedef_simple.pxd │ ├── union_empty.h │ ├── union_empty.pxd │ ├── union_in_and_with_struct.h │ ├── union_in_and_with_struct.pxd │ ├── union_in_struct.h │ ├── union_in_struct.pxd │ ├── union_typedef_with_struct.h │ ├── union_typedef_with_struct.pxd │ ├── union_with_struct.h │ └── union_with_struct.pxd └── tests.py └── tests ├── result_clang └── _test.pxd ├── test.h ├── test_cpp_Rectangle.cpp ├── test_cpp_Rectangle.hpp ├── test_cpp_templates.hpp ├── test_double_nested_struct.h ├── test_enums.h ├── test_nested_structs.h ├── test_noargs.h └── test_typedef.h /.gitignore: -------------------------------------------------------------------------------- 1 | *.un~ 2 | *.pyc 3 | build 4 | temp 5 | .#* 6 | -------------------------------------------------------------------------------- /NOTES.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/NOTES.rst -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/README.rst -------------------------------------------------------------------------------- /bin/cwrap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/bin/cwrap -------------------------------------------------------------------------------- /cwrap/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cwrap/backend/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cwrap/backend/cw_ast.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/cwrap/backend/cw_ast.py -------------------------------------------------------------------------------- /cwrap/backend/renderer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/cwrap/backend/renderer.py -------------------------------------------------------------------------------- /cwrap/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/cwrap/config.py -------------------------------------------------------------------------------- /cwrap/frontends/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/cwrap/frontends/__init__.py -------------------------------------------------------------------------------- /cwrap/frontends/clang/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/cwrap/frontends/clang/__init__.py -------------------------------------------------------------------------------- /cwrap/frontends/clang/ast_transforms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/cwrap/frontends/clang/ast_transforms.py -------------------------------------------------------------------------------- /cwrap/frontends/clang/c_ast.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/cwrap/frontends/clang/c_ast.py -------------------------------------------------------------------------------- /cwrap/frontends/clang/clang/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/cwrap/frontends/clang/clang/__init__.py -------------------------------------------------------------------------------- /cwrap/frontends/clang/clang/cindex.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/cwrap/frontends/clang/clang/cindex.py -------------------------------------------------------------------------------- /cwrap/frontends/clang/clang/enumerations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/cwrap/frontends/clang/clang/enumerations.py -------------------------------------------------------------------------------- /cwrap/frontends/clang/clang_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/cwrap/frontends/clang/clang_parser.py -------------------------------------------------------------------------------- /cwrap/frontends/gccxml/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/cwrap/frontends/gccxml/__init__.py -------------------------------------------------------------------------------- /cwrap/frontends/gccxml/ast_transforms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/cwrap/frontends/gccxml/ast_transforms.py -------------------------------------------------------------------------------- /cwrap/frontends/gccxml/c_ast.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/cwrap/frontends/gccxml/c_ast.py -------------------------------------------------------------------------------- /cwrap/frontends/gccxml/gccxml_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/cwrap/frontends/gccxml/gccxml_parser.py -------------------------------------------------------------------------------- /cwrap/version.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/cwrap/version.py -------------------------------------------------------------------------------- /examples/test/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/examples/test/README -------------------------------------------------------------------------------- /examples/test/_test.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/examples/test/_test.pxd -------------------------------------------------------------------------------- /examples/test/convert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/examples/test/convert.py -------------------------------------------------------------------------------- /examples/test/test.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/examples/test/test.h -------------------------------------------------------------------------------- /libclang_show_ast.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/libclang_show_ast.py -------------------------------------------------------------------------------- /run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/run.py -------------------------------------------------------------------------------- /runtest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/runtest.py -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/setup.py -------------------------------------------------------------------------------- /test/data/char_fixed_size.h: -------------------------------------------------------------------------------- 1 | char *__foo[8]; 2 | -------------------------------------------------------------------------------- /test/data/char_fixed_size.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/char_fixed_size.pxd -------------------------------------------------------------------------------- /test/data/const_argument.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/const_argument.h -------------------------------------------------------------------------------- /test/data/const_argument.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/const_argument.pxd -------------------------------------------------------------------------------- /test/data/const_function.h: -------------------------------------------------------------------------------- 1 | const char *foo(int bar); 2 | -------------------------------------------------------------------------------- /test/data/const_function.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/const_function.pxd -------------------------------------------------------------------------------- /test/data/const_typedef.h: -------------------------------------------------------------------------------- 1 | typedef const char foo; 2 | -------------------------------------------------------------------------------- /test/data/const_typedef.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/const_typedef.pxd -------------------------------------------------------------------------------- /test/data/enum.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/enum.h -------------------------------------------------------------------------------- /test/data/enum.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/enum.pxd -------------------------------------------------------------------------------- /test/data/function.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/function.h -------------------------------------------------------------------------------- /test/data/function.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/function.pxd -------------------------------------------------------------------------------- /test/data/functionpointer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/functionpointer.h -------------------------------------------------------------------------------- /test/data/functionpointer.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/functionpointer.pxd -------------------------------------------------------------------------------- /test/data/functionpointer_in_struct.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/functionpointer_in_struct.h -------------------------------------------------------------------------------- /test/data/functionpointer_in_struct.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/functionpointer_in_struct.pxd -------------------------------------------------------------------------------- /test/data/struct_anonymous.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/struct_anonymous.h -------------------------------------------------------------------------------- /test/data/struct_anonymous.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/struct_anonymous.pxd -------------------------------------------------------------------------------- /test/data/struct_different_tag_and_typedef.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/struct_different_tag_and_typedef.h -------------------------------------------------------------------------------- /test/data/struct_different_tag_and_typedef.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/struct_different_tag_and_typedef.pxd -------------------------------------------------------------------------------- /test/data/struct_empty_struct.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/struct_empty_struct.h -------------------------------------------------------------------------------- /test/data/struct_empty_struct.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/struct_empty_struct.pxd -------------------------------------------------------------------------------- /test/data/struct_same_tag_and_typedef.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/struct_same_tag_and_typedef.h -------------------------------------------------------------------------------- /test/data/struct_same_tag_and_typedef.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/struct_same_tag_and_typedef.pxd -------------------------------------------------------------------------------- /test/data/struct_separate_typedef.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/struct_separate_typedef.h -------------------------------------------------------------------------------- /test/data/struct_separate_typedef.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/struct_separate_typedef.pxd -------------------------------------------------------------------------------- /test/data/struct_separate_typedef_with_pointer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/struct_separate_typedef_with_pointer.h -------------------------------------------------------------------------------- /test/data/struct_separate_typedef_with_pointer.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/struct_separate_typedef_with_pointer.pxd -------------------------------------------------------------------------------- /test/data/struct_with_functionpointer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/struct_with_functionpointer.h -------------------------------------------------------------------------------- /test/data/struct_with_functionpointer.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/struct_with_functionpointer.pxd -------------------------------------------------------------------------------- /test/data/struct_with_typedef_field.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/struct_with_typedef_field.h -------------------------------------------------------------------------------- /test/data/struct_with_typedef_field.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/struct_with_typedef_field.pxd -------------------------------------------------------------------------------- /test/data/typedef_function_with_enum.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/typedef_function_with_enum.h -------------------------------------------------------------------------------- /test/data/typedef_function_with_enum.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/typedef_function_with_enum.pxd -------------------------------------------------------------------------------- /test/data/typedef_function_with_struct.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/typedef_function_with_struct.h -------------------------------------------------------------------------------- /test/data/typedef_function_with_struct.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/typedef_function_with_struct.pxd -------------------------------------------------------------------------------- /test/data/typedef_simple.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/typedef_simple.h -------------------------------------------------------------------------------- /test/data/typedef_simple.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/typedef_simple.pxd -------------------------------------------------------------------------------- /test/data/union_empty.h: -------------------------------------------------------------------------------- 1 | union empty_u; 2 | -------------------------------------------------------------------------------- /test/data/union_empty.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/union_empty.pxd -------------------------------------------------------------------------------- /test/data/union_in_and_with_struct.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/union_in_and_with_struct.h -------------------------------------------------------------------------------- /test/data/union_in_and_with_struct.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/union_in_and_with_struct.pxd -------------------------------------------------------------------------------- /test/data/union_in_struct.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/union_in_struct.h -------------------------------------------------------------------------------- /test/data/union_in_struct.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/union_in_struct.pxd -------------------------------------------------------------------------------- /test/data/union_typedef_with_struct.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/union_typedef_with_struct.h -------------------------------------------------------------------------------- /test/data/union_typedef_with_struct.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/union_typedef_with_struct.pxd -------------------------------------------------------------------------------- /test/data/union_with_struct.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/union_with_struct.h -------------------------------------------------------------------------------- /test/data/union_with_struct.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/data/union_with_struct.pxd -------------------------------------------------------------------------------- /test/tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/test/tests.py -------------------------------------------------------------------------------- /tests/result_clang/_test.pxd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/tests/result_clang/_test.pxd -------------------------------------------------------------------------------- /tests/test.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/tests/test.h -------------------------------------------------------------------------------- /tests/test_cpp_Rectangle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/tests/test_cpp_Rectangle.cpp -------------------------------------------------------------------------------- /tests/test_cpp_Rectangle.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/tests/test_cpp_Rectangle.hpp -------------------------------------------------------------------------------- /tests/test_cpp_templates.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/tests/test_cpp_templates.hpp -------------------------------------------------------------------------------- /tests/test_double_nested_struct.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/tests/test_double_nested_struct.h -------------------------------------------------------------------------------- /tests/test_enums.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/tests/test_enums.h -------------------------------------------------------------------------------- /tests/test_nested_structs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/tests/test_nested_structs.h -------------------------------------------------------------------------------- /tests/test_noargs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/tests/test_noargs.h -------------------------------------------------------------------------------- /tests/test_typedef.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geggo/cwrap/HEAD/tests/test_typedef.h --------------------------------------------------------------------------------