Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
b106213b
Commit
b106213b
authored
Apr 10, 2010
by
dalcinl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some testcases failing on Windows
parent
6a32131a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
135 additions
and
3 deletions
+135
-3
Cython/Compiler/Optimize.py
Cython/Compiler/Optimize.py
+1
-1
tests/compile/callingconvention.h
tests/compile/callingconvention.h
+33
-0
tests/compile/callingconvention.pyx
tests/compile/callingconvention.pyx
+4
-0
tests/compile/declarations.h
tests/compile/declarations.h
+53
-0
tests/compile/declarations.pyx
tests/compile/declarations.pyx
+3
-0
tests/compile/excvalcheck.h
tests/compile/excvalcheck.h
+13
-0
tests/compile/excvalcheck.pyx
tests/compile/excvalcheck.pyx
+3
-0
tests/compile/nogil.h
tests/compile/nogil.h
+25
-2
No files found.
Cython/Compiler/Optimize.py
View file @
b106213b
...
...
@@ -2116,6 +2116,7 @@ impl = ""
pop_utility_code
=
UtilityCode
(
proto
=
"""
static CYTHON_INLINE PyObject* __Pyx_PyObject_Pop(PyObject* L) {
PyObject *r, *m;
#if PY_VERSION_HEX >= 0x02040000
if (likely(PyList_CheckExact(L))
/* Check that both the size is positive and no reallocation shrinking needs to be done. */
...
...
@@ -2124,7 +2125,6 @@ static CYTHON_INLINE PyObject* __Pyx_PyObject_Pop(PyObject* L) {
return PyList_GET_ITEM(L, PyList_GET_SIZE(L));
}
#endif
PyObject *r, *m;
m = __Pyx_GetAttrString(L, "pop");
if (!m) return NULL;
r = PyObject_CallObject(m, NULL);
...
...
tests/compile/callingconvention.h
0 → 100644
View file @
b106213b
#ifdef __cplusplus
extern
"C"
{
#endif
extern
DL_EXPORT
(
int
)
f1
(
void
);
extern
DL_EXPORT
(
int
)
__cdecl
f2
(
void
);
extern
DL_EXPORT
(
int
)
__stdcall
f3
(
void
);
extern
DL_EXPORT
(
int
)
__fastcall
f4
(
void
);
#ifdef __cplusplus
}
#endif
int
f1
(
void
)
{
return
0
;}
int
__cdecl
f2
(
void
)
{
return
0
;}
int
__stdcall
f3
(
void
)
{
return
0
;}
int
__fastcall
f4
(
void
)
{
return
0
;}
#ifdef __cplusplus
extern
"C"
{
#endif
extern
int
(
*
p1
)(
void
);
extern
int
(
__cdecl
*
p2
)(
void
);
extern
int
(
__stdcall
*
p3
)(
void
);
extern
int
(
__fastcall
*
p4
)(
void
);
#ifdef __cplusplus
}
#endif
int
(
*
p1
)(
void
);
int
(
__cdecl
*
p2
)(
void
);
int
(
__stdcall
*
p3
)(
void
);
int
(
__fastcall
*
p4
)(
void
);
tests/compile/callingconvention.pyx
View file @
b106213b
cdef
extern
from
"callingconvention.h"
:
pass
cdef
extern
int
f1
()
cdef
extern
int
__cdecl
f2
()
...
...
tests/compile/declarations.h
0 → 100644
View file @
b106213b
#ifdef __cplusplus
extern
"C"
{
#endif
extern
char
*
cp
;
extern
char
*
cpa
[
5
];
extern
int
(
*
ifnpa
[
5
])(
void
);
extern
char
*
(
*
cpfnpa
[
5
])(
void
);
extern
int
(
*
ifnp
)(
void
);
extern
int
(
*
iap
)[
5
];
#ifdef __cplusplus
}
#endif
char
*
cp
;
char
*
cpa
[
5
];
int
(
*
ifnpa
[
5
])(
void
);
char
*
(
*
cpfnpa
[
5
])(
void
);
int
(
*
ifnp
)(
void
);
int
(
*
iap
)[
5
];
#ifdef __cplusplus
extern
"C"
{
#endif
extern
DL_EXPORT
(
int
)
ifn
(
void
);
extern
DL_EXPORT
(
char
*
)
cpfn
(
void
);
extern
DL_EXPORT
(
int
)
fnargfn
(
int
(
void
));
extern
DL_EXPORT
(
int
)
(
*
iapfn
(
void
))[
5
];
extern
DL_EXPORT
(
char
*
)(
*
cpapfn
(
void
))[
5
];
#ifdef __cplusplus
}
#endif
int
ifn
(
void
)
{
return
0
;}
char
*
cpfn
(
void
)
{
return
0
;}
int
fnargfn
(
int
f
(
void
))
{
return
0
;}
#ifdef __cplusplus
extern
"C"
{
#endif
extern
int
ia
[];
extern
int
iaa
[][
3
];
extern
DL_EXPORT
(
int
)
a
(
int
[][
3
],
int
[][
3
][
5
]);
#ifdef __cplusplus
}
#endif
int
ia
[
1
];
int
iaa
[][
3
];
int
a
(
int
a
[][
3
],
int
b
[][
3
][
5
])
{
return
0
;}
tests/compile/declarations.pyx
View file @
b106213b
cdef
extern
from
"declarations.h"
:
pass
cdef
extern
char
*
cp
cdef
extern
char
*
cpa
[
5
]
cdef
extern
int
(
*
ifnpa
[
5
])()
...
...
tests/compile/excvalcheck.h
0 → 100644
View file @
b106213b
#ifdef __cplusplus
extern
"C"
{
#endif
extern
DL_EXPORT
(
int
)
spam
(
void
);
extern
DL_EXPORT
(
void
)
grail
(
void
);
extern
DL_EXPORT
(
char
*
)
tomato
(
void
);
#ifdef __cplusplus
}
#endif
int
spam
(
void
)
{
return
0
;}
void
grail
(
void
)
{
return
;}
char
*
tomato
(
void
)
{
return
0
;}
tests/compile/excvalcheck.pyx
View file @
b106213b
cdef
extern
from
"excvalcheck.h"
:
pass
cdef
extern
int
spam
()
except
-
1
cdef
extern
void
grail
()
except
*
cdef
extern
char
*
tomato
()
except
?
NULL
...
...
tests/compile/nogil.h
View file @
b106213b
void
e1
(
void
);
void
*
e2
(
void
);
#ifdef __cplusplus
extern
"C"
{
#endif
extern
DL_EXPORT
(
void
)
e1
(
void
);
extern
DL_EXPORT
(
void
*
)
e2
(
void
);
#ifdef __cplusplus
}
#endif
void
e1
(
void
)
{
return
;}
void
*
e2
(
void
)
{
return
0
;}
#ifdef __cplusplus
extern
"C"
{
#endif
extern
DL_EXPORT
(
PyObject
*
)
g
(
PyObject
*
);
extern
DL_EXPORT
(
void
)
g2
(
PyObject
*
);
#ifdef __cplusplus
}
#endif
PyObject
*
g
(
PyObject
*
o
)
{
return
0
;}
void
g2
(
PyObject
*
o
)
{
return
;}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment