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
6049280b
Commit
6049280b
authored
Oct 08, 2008
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
struct -> object for extern structs
parent
ef83d2ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+7
-1
No files found.
Cython/Compiler/PyrexTypes.py
View file @
6049280b
...
...
@@ -966,7 +966,13 @@ class CStructOrUnionType(CType):
code
.
putln
(
"Py_DECREF(res);"
)
code
.
putln
(
"return NULL;"
)
code
.
putln
(
"}"
)
self
.
_convert_code
=
self
.
declaration_code
(
''
)
+
';
\
n
'
+
header
+
";"
,
code
.
buffer
.
getvalue
()
proto
=
header
+
";"
# This is a bit of a hack, we need a forward declaration
# due to the way things are ordered in the module...
entry
=
env
.
lookup
(
self
.
name
)
if
entry
.
visibility
!=
'extern'
:
proto
=
self
.
declaration_code
(
''
)
+
';
\
n
'
+
proto
self
.
_convert_code
=
proto
,
code
.
buffer
.
getvalue
()
env
.
use_utility_code
(
self
.
_convert_code
)
return
True
...
...
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