Commit 019017ae authored by Mark Florisson's avatar Mark Florisson

ANSI C compatibility

parent 3738c6a8
...@@ -748,7 +748,7 @@ def get_type_information_cname(code, dtype, maxdepth=None): ...@@ -748,7 +748,7 @@ def get_type_information_cname(code, dtype, maxdepth=None):
typeinfo = ('static __Pyx_TypeInfo %s = ' typeinfo = ('static __Pyx_TypeInfo %s = '
'{ "%s", %s, sizeof(%s), { %s }, %s, \'%s\', %s, %s };') '{ "%s", %s, sizeof(%s), { %s }, %s, \'%s\', %s, %s };')
tup = (name, rep, structinfo_name, declcode, tup = (name, rep, structinfo_name, declcode,
', '.join([str(x) for x in arraysizes]), len(arraysizes), ', '.join([str(x) for x in arraysizes]) or '0', len(arraysizes),
typegroup, is_unsigned, flags) typegroup, is_unsigned, flags)
typecode.putln(typeinfo % tup, safe=True) typecode.putln(typeinfo % tup, safe=True)
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
/* memoryview slice struct */ /* memoryview slice struct */
struct {{memview_struct_name}};
typedef struct { typedef struct {
struct {{memview_struct_name}} *memview; struct {{memview_struct_name}} *memview;
char *data; char *data;
...@@ -48,6 +50,7 @@ typedef struct { ...@@ -48,6 +50,7 @@ typedef struct {
#warning "Using Intel atomics" #warning "Using Intel atomics"
#endif #endif
#else #else
#undef CYTHON_ATOMICS
#define CYTHON_ATOMICS 0 #define CYTHON_ATOMICS 0
#ifdef __PYX_DEBUG_ATOMICS #ifdef __PYX_DEBUG_ATOMICS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment