diff options
author | Armin Rigo <arigo@tunes.org> | 2015-11-18 10:00:42 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2015-11-18 10:00:42 +0100 |
commit | 1b266852f4dc07efdca37f2fe495cc42b60c1a31 (patch) | |
tree | acdbc0c3dd4fa858d0feb32ea4aabeb391b65f8d /c/cffi1_module.c | |
parent | b1cf6818bdbfe16776a811bcad318f5f8608ed8f (diff) | |
download | cffi-1b266852f4dc07efdca37f2fe495cc42b60c1a31.tar.gz |
update the code to use 'extern "Python"'
Diffstat (limited to 'c/cffi1_module.c')
-rw-r--r-- | c/cffi1_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/cffi1_module.c b/c/cffi1_module.c index 21a3662..3b84db1 100644 --- a/c/cffi1_module.c +++ b/c/cffi1_module.c @@ -174,7 +174,7 @@ static PyObject *b_init_cffi_1_0_external_module(PyObject *self, PyObject *arg) /* initialize the exports array */ num_exports = 25; - if (ctx->flags & 1) /* set to mean "uses _cffi_call_python" */ + if (ctx->flags & 1) /* set to mean that 'extern "Python"' is used */ num_exports = 26; memcpy(exports, (char *)cffi_exports, num_exports * sizeof(void *)); |