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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
7be09b01
Commit
7be09b01
authored
Feb 25, 2012
by
Mark Florisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix declarations and callingconvention test of py3k
parent
d82d4fc3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
tests/compile/callingconvention.srctree
tests/compile/callingconvention.srctree
+10
-0
tests/compile/declarations.srctree
tests/compile/declarations.srctree
+9
-0
No files found.
tests/compile/callingconvention.srctree
View file @
7be09b01
...
@@ -36,6 +36,11 @@ p3 = f3
...
@@ -36,6 +36,11 @@ p3 = f3
p4 = f4
p4 = f4
######## external_callingconvention.h ########
######## external_callingconvention.h ########
#ifndef DL_IMPORT
#define DL_IMPORT(t) t
#endif
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
#endif
...
@@ -54,6 +59,11 @@ extern DL_IMPORT(int) (__fastcall *p4)(void);
...
@@ -54,6 +59,11 @@ extern DL_IMPORT(int) (__fastcall *p4)(void);
######## external_callingconvention.c ########
######## external_callingconvention.c ########
#include <Python.h>
#include <Python.h>
#ifndef DL_EXPORT
#define DL_EXPORT(t) t
#endif
#if !defined(WIN32) && !defined(MS_WINDOWS)
#if !defined(WIN32) && !defined(MS_WINDOWS)
#ifndef __stdcall
#ifndef __stdcall
#define __stdcall
#define __stdcall
...
...
tests/compile/declarations.srctree
View file @
7be09b01
...
@@ -49,6 +49,11 @@ f()
...
@@ -49,6 +49,11 @@ f()
g()
g()
######## external_declarations.h ########
######## external_declarations.h ########
#ifndef DL_IMPORT
#define DL_IMPORT(t) t
#endif
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
#endif
...
@@ -80,6 +85,10 @@ extern DL_IMPORT(int) a(int[][3], int[][3][5]);
...
@@ -80,6 +85,10 @@ extern DL_IMPORT(int) a(int[][3], int[][3][5]);
######## external_declarations.c ########
######## external_declarations.c ########
#include <Python.h>
#include <Python.h>
#ifndef DL_EXPORT
#define DL_EXPORT(t) t
#endif
DL_EXPORT(char) *cp;
DL_EXPORT(char) *cp;
DL_EXPORT(char) *cpa[5];
DL_EXPORT(char) *cpa[5];
DL_EXPORT(int) (*ifnpa[5])(void);
DL_EXPORT(int) (*ifnpa[5])(void);
...
...
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