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
Boxiang Sun
cython
Commits
a39c2fdd
Commit
a39c2fdd
authored
Oct 17, 2007
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
greg: Fix ishimoto4 - calling convention omitted from func defn
parent
a3d670b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+1
-1
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+4
-0
No files found.
Cython/Compiler/Nodes.py
View file @
a39c2fdd
...
...
@@ -813,7 +813,7 @@ class CFuncDefNode(FuncDefNode):
arg_decls
.
append
(
"..."
)
if
not
arg_decls
:
arg_decls
=
[
"void"
]
entity
=
"%s(%s)"
%
(
self
.
entry
.
func_cname
,
entity
=
type
.
function_header_code
(
self
.
entry
.
func_cname
,
string
.
join
(
arg_decls
,
","
))
if
self
.
visibility
==
'public'
:
dll_linkage
=
"DL_EXPORT"
...
...
Cython/Compiler/PyrexTypes.py
View file @
a39c2fdd
...
...
@@ -648,6 +648,10 @@ class CFuncType(CType):
return
self
.
return_type
.
declaration_code
(
"%s%s(%s)%s"
%
(
cc
,
entity_code
,
arg_decl_code
,
exc_clause
),
for_display
,
dll_linkage
,
pyrex
)
def
function_header_code
(
self
,
func_name
,
arg_code
):
return
"%s%s(%s)"
%
(
self
.
calling_convention_prefix
(),
func_name
,
arg_code
)
def
signature_string
(
self
):
s
=
self
.
declaration_code
(
""
)
...
...
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