Py2.7/3.1 add a new field to Py_buffer
authorStefan Behnel <scoder@users.berlios.de>
Sat, 12 Feb 2011 12:50:36 +0000 (13:50 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 12 Feb 2011 12:50:36 +0000 (13:50 +0100)
Cython/Compiler/Builtin.py

index 65a7ddb3d1f128a17d334db685dc1b92fcda1902..7c88272412d3739fb641f85ab6f5e0873d7cbfde 100644 (file)
@@ -503,6 +503,7 @@ builtin_structs_table = [
       ("shape",      PyrexTypes.c_py_ssize_t_ptr_type),
       ("strides",    PyrexTypes.c_py_ssize_t_ptr_type),
       ("suboffsets", PyrexTypes.c_py_ssize_t_ptr_type),
+      ("smalltable", PyrexTypes.CArrayType(PyrexTypes.c_py_ssize_t_type, 2)),
       ("internal",   PyrexTypes.c_void_ptr_type),
       ]),
     ('Py_complex', 'Py_complex',