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
Gwenaël Samain
cython
Commits
027583a1
Commit
027583a1
authored
Nov 23, 2011
by
Gregor Thalhammer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move variable declarations to beginning of function
parent
2a8a474c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Cython/Utility/MemoryView_C.c
Cython/Utility/MemoryView_C.c
+4
-3
No files found.
Cython/Utility/MemoryView_C.c
View file @
027583a1
...
...
@@ -86,9 +86,11 @@ static int __Pyx_ValidateAndInit_memviewslice(
__Pyx_memviewslice
*
memviewslice
)
{
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext
(
"ValidateAndInit_memviewslice"
);
Py_buffer
*
buf
=
&
memview
->
view
;
int
stride
,
i
,
spec
=
0
,
retval
=
-
1
;
__Pyx_BufFmt_Context
ctx
;
__Pyx_RefNannySetupContext
(
"ValidateAndInit_memviewslice"
);
if
(
!
buf
)
goto
fail
;
...
...
@@ -105,7 +107,6 @@ static int __Pyx_ValidateAndInit_memviewslice(
goto
fail
;
}
__Pyx_BufFmt_Context
ctx
;
__Pyx_BufFmt_Init
(
&
ctx
,
stack
,
dtype
);
if
(
!
__Pyx_BufFmt_CheckString
(
&
ctx
,
buf
->
format
))
goto
fail
;
...
...
@@ -215,9 +216,9 @@ static int __Pyx_init_memviewslice(
__Pyx_memviewslice
*
memviewslice
)
{
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext
(
"init_memviewslice"
);
int
i
,
retval
=-
1
;
Py_buffer
*
buf
=
&
memview
->
view
;
__Pyx_RefNannySetupContext
(
"init_memviewslice"
);
if
(
!
buf
)
{
PyErr_SetString
(
PyExc_ValueError
,
...
...
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