summaryrefslogtreecommitdiff
path: root/c/cffi1_module.c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2015-11-18 10:00:42 +0100
committerArmin Rigo <arigo@tunes.org>2015-11-18 10:00:42 +0100
commit1b266852f4dc07efdca37f2fe495cc42b60c1a31 (patch)
treeacdbc0c3dd4fa858d0feb32ea4aabeb391b65f8d /c/cffi1_module.c
parentb1cf6818bdbfe16776a811bcad318f5f8608ed8f (diff)
downloadcffi-1b266852f4dc07efdca37f2fe495cc42b60c1a31.tar.gz
update the code to use 'extern "Python"'
Diffstat (limited to 'c/cffi1_module.c')
-rw-r--r--c/cffi1_module.c2
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 *));