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
bb13f3b7
Commit
bb13f3b7
authored
Aug 20, 2010
by
Lisandro Dalcin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix support for packed structs with SunPro compiler
parent
1879e2ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+8
-4
No files found.
Cython/Compiler/ModuleNode.py
View file @
bb13f3b7
...
...
@@ -748,8 +748,10 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
self
.
sue_header_footer
(
type
,
kind
,
type
.
cname
)
code
.
putln
(
""
)
if
packed
:
code
.
putln
(
"#if !defined(__GNUC__)"
)
code
.
putln
(
"#pragma pack(push, 1)"
)
code
.
putln
(
"#if defined(__SUNPRO_C)"
)
code
.
putln
(
" #pragma pack(1)"
)
code
.
putln
(
"#elif !defined(__GNUC__)"
)
code
.
putln
(
" #pragma pack(push, 1)"
)
code
.
putln
(
"#endif"
)
code
.
putln
(
header
)
var_entries
=
scope
.
var_entries
...
...
@@ -763,8 +765,10 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
attr
.
type
.
declaration_code
(
attr
.
cname
))
code
.
putln
(
footer
)
if
packed
:
code
.
putln
(
"#if !defined(__GNUC__)"
)
code
.
putln
(
"#pragma pack(pop)"
)
code
.
putln
(
"#if defined(__SUNPRO_C)"
)
code
.
putln
(
" #pragma pack()"
)
code
.
putln
(
"#elif !defined(__GNUC__)"
)
code
.
putln
(
" #pragma pack(pop)"
)
code
.
putln
(
"#endif"
)
def
generate_enum_definition
(
self
,
entry
,
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