diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-02-26 21:21:53 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-02-26 21:21:53 +0200 |
| commit | ea60a22cd5a2613652942e48e143d7a3da68bbc0 (patch) | |
| tree | ae351eb81558c49dd7fc76c5ca380e6b6fc99774 /test cases/python3/3 cython/libdir/storer.c | |
| parent | 003696fc27e1f560a8448cc5998443696a162927 (diff) | |
| parent | efceac497fa2702124398b2712761015d9a1c78a (diff) | |
| download | meson-ea60a22cd5a2613652942e48e143d7a3da68bbc0.tar.gz | |
Merge Python 3 module support.
Diffstat (limited to 'test cases/python3/3 cython/libdir/storer.c')
| -rw-r--r-- | test cases/python3/3 cython/libdir/storer.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test cases/python3/3 cython/libdir/storer.c b/test cases/python3/3 cython/libdir/storer.c new file mode 100644 index 000000000..0199bb850 --- /dev/null +++ b/test cases/python3/3 cython/libdir/storer.c @@ -0,0 +1,24 @@ +#include"storer.h" +#include<stdlib.h> + +struct _Storer { + int value; +}; + +Storer* storer_new() { + Storer *s = malloc(sizeof(struct _Storer)); + s->value = 0; + return s; +} + +void storer_destroy(Storer *s) { + free(s); +} + +int storer_get_value(Storer *s) { + return s->value; +} + +void storer_set_value(Storer *s, int v) { + s->value = v; +} |
