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
c94a9972
Commit
c94a9972
authored
Jul 06, 2018
by
scoder
Committed by
GitHub
Jul 06, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2456 from gabrieldemarmiesse/formatting_issue
Fixed minor formatting issue in some of the examples.
parents
caf66ec8
3e0fb3d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
docs/examples/tutorial/external/atoi.pyx
docs/examples/tutorial/external/atoi.pyx
+1
-1
docs/examples/userguide/wrapping_CPlusPlus/Rectangle.pxd
docs/examples/userguide/wrapping_CPlusPlus/Rectangle.pxd
+1
-1
No files found.
docs/examples/tutorial/external/atoi.pyx
View file @
c94a9972
from
libc.stdlib
cimport
atoi
cdef
parse_charptr_to_py_int
(
char
*
s
):
cdef
parse_charptr_to_py_int
(
char
*
s
):
assert
s
is
not
NULL
,
"byte string value is NULL"
return
atoi
(
s
)
# note: atoi() has no error detection!
docs/examples/userguide/wrapping_CPlusPlus/Rectangle.pxd
View file @
c94a9972
...
...
@@ -8,5 +8,5 @@ cdef extern from "Rectangle.h" namespace "shapes":
Rectangle
(
int
,
int
,
int
,
int
)
except
+
int
x0
,
y0
,
x1
,
y1
int
getArea
()
void
getSize
(
int
*
width
,
int
*
height
)
void
getSize
(
int
*
width
,
int
*
height
)
void
move
(
int
,
int
)
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