-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved stuff from string.rst to the examples directory.
- Loading branch information
gabrieldemarmiesse
committed
Jun 19, 2018
1 parent
5c04c1a
commit 2177127
Showing
5 changed files
with
22 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cdef extern from "someheader.h": | ||
ctypedef const char specialChar | ||
int process_string(const char* s) | ||
const unsigned char* look_up_cached_string(const unsigned char* key) |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from libc.string cimport const_char, const_uchar | ||
|
||
cdef extern from "someheader.h": | ||
ctypedef const_char specialChar | ||
int process_string(const_char* s) | ||
const_uchar* look_up_cached_string(const_uchar* key) |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cdef extern from "someheader.h": | ||
int process_string(char* s) # note: looses API information! |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
typedef const char specialChar; | ||
int process_string(const char* s); | ||
const unsigned char* look_up_cached_string(const unsigned char* key); |
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