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
Kirill Smelkov
cython
Commits
632f18f2
Commit
632f18f2
authored
Apr 27, 2017
by
Jeroen Demeyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not use special dll linkage for "cdef public" functions
parent
e1e33240
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+2
-3
tests/cygwin_bugs.txt
tests/cygwin_bugs.txt
+0
-2
No files found.
Cython/Compiler/ModuleNode.py
View file @
632f18f2
...
...
@@ -214,8 +214,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
def
generate_public_declaration
(
self
,
entry
,
h_code
,
i_code
):
h_code
.
putln
(
"%s %s;"
%
(
Naming
.
extern_c_macro
,
entry
.
type
.
declaration_code
(
entry
.
cname
,
dll_linkage
=
"DL_IMPORT"
)))
entry
.
type
.
declaration_code
(
entry
.
cname
)))
if
i_code
:
i_code
.
putln
(
"cdef extern %s"
%
(
entry
.
type
.
declaration_code
(
entry
.
cname
,
pyrex
=
1
)))
...
...
@@ -2849,7 +2848,7 @@ def generate_cfunction_declaration(entry, env, code, definition):
dll_linkage
=
"DL_IMPORT"
elif
entry
.
visibility
==
'public'
:
storage_class
=
Naming
.
extern_c_macro
dll_linkage
=
"DL_EXPORT"
dll_linkage
=
None
elif
entry
.
visibility
==
'private'
:
storage_class
=
"static"
dll_linkage
=
None
...
...
tests/cygwin_bugs.txt
View file @
632f18f2
module_api
complex_numbers_c89_T398_long_double
complex_numbers_T305_long_double
int_float_builtins_as_casts_T400_long_double
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