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
d2797186
Commit
d2797186
authored
Sep 30, 2011
by
Mark Florisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix master incompatibilities after rebase
parent
21118651
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
Cython/Compiler/Buffer.py
Cython/Compiler/Buffer.py
+2
-2
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+3
-0
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+1
-0
No files found.
Cython/Compiler/Buffer.py
View file @
d2797186
...
...
@@ -86,7 +86,7 @@ class IntroduceBufferAuxiliaryVars(CythonTransform):
# Declare auxiliary vars
def
decvar
(
type
,
prefix
):
cname
=
scope
.
mangle
(
prefix
,
name
)
aux_var
=
scope
.
declare_var
(
name
=
"$%s"
%
cnam
e
,
cname
=
cname
,
aux_var
=
scope
.
declare_var
(
name
=
Non
e
,
cname
=
cname
,
type
=
type
,
pos
=
node
.
pos
)
if
entry
.
is_arg
:
aux_var
.
used
=
True
# otherwise, NameNode will mark whether it is used
...
...
@@ -771,4 +771,4 @@ acquire_utility_code = load_buffer_utility("BufferFormatCheck",
# See utility code BufferFormatFromTypeInfo
_typeinfo_to_format_code
=
load_buffer_utility
(
"TypeInfoToFormat"
,
context
=
{},
requires
=
[
buffer_structs_code
])
\ No newline at end of file
"TypeInfoToFormat"
,
context
=
{},
requires
=
[
buffer_structs_code
])
Cython/Compiler/Nodes.py
View file @
d2797186
...
...
@@ -2828,6 +2828,9 @@ class DefNode(FuncDefNode):
"%s = %s;"
%
(
arg
.
entry
.
cname
,
arg
.
calculate_default_value_code
(
code
)))
if
arg
.
entry
.
type
.
is_memoryviewslice
:
code
.
put_incref_memoryviewslice
(
arg
.
entry
.
cname
,
have_gil
=
True
)
code
.
putln
(
'}'
)
code
.
putln
(
'}'
)
...
...
Cython/Compiler/PyrexTypes.py
View file @
d2797186
...
...
@@ -422,6 +422,7 @@ class MemoryViewSliceType(PyrexType):
visibility
=
'extern'
)
scope
.
parent_type
=
self
scope
.
directives
=
{}
scope
.
declare_var
(
'_data'
,
c_char_ptr_type
,
None
,
cname
=
'data'
,
is_cdef
=
1
)
...
...
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