summaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2015-11-03 09:07:38 +0100
committerArmin Rigo <arigo@tunes.org>2015-11-03 09:07:38 +0100
commit065ebf7a7f7636c270a654a025df699e13b8561a (patch)
treeb244d8bd417e80381a6c50c612fecad6c0f1699d /c
parentc535100d921b7e92482d1dfaceba6413f52a81b6 (diff)
downloadcffi-065ebf7a7f7636c270a654a025df699e13b8561a.tar.gz
Show <ctype 'FILE'> instead of <ctype 'struct _IO_FILE'>
Diffstat (limited to 'c')
-rw-r--r--c/realize_c_type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/realize_c_type.c b/c/realize_c_type.c
index fe54385..d016806 100644
--- a/c/realize_c_type.c
+++ b/c/realize_c_type.c
@@ -318,7 +318,7 @@ _realize_c_struct_or_union(builder_c_t *builder, int sindex)
/* returns a single global cached opaque type */
static PyObject *file_struct = NULL;
if (file_struct == NULL)
- file_struct = new_struct_or_union_type("struct _IO_FILE",
+ file_struct = new_struct_or_union_type("FILE",
CT_STRUCT | CT_IS_FILE);
Py_XINCREF(file_struct);
return file_struct;