forked from fruch/cwrap
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit needs Cython > 0.18 as support for const pointers was just recently added with commit 5e1497371ee70fffb2deb6c7dab136cf6684f2df [1]. [1] cython/cython@5e14973
- Loading branch information
Showing
7 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
int foo(const char* bar); | ||
typedef struct my_st my_t | ||
int baz(const my_t **foo); | ||
int bar(const my_t *const *something); | ||
int another(my_t *const *one); | ||
int yet(my_t *const *const another); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
cdef extern from "const_argument.h": | ||
int foo(const char *bar) | ||
cdef struct my_st: | ||
pass | ||
ctypedef my_st my_t | ||
int baz(const my_t **foo) | ||
int bar(const my_t *const *something) | ||
int another(my_t *const *one) | ||
int yet(my_t *const *const another) |