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
Boxiang Sun
cython
Commits
c94a9972
Commit
c94a9972
authored
6 years ago
by
scoder
Committed by
GitHub
6 years ago
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
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"
assert
s
is
not
NULL
,
"byte string value is NULL"
return
atoi
(
s
)
# note: atoi() has no error detection!
return
atoi
(
s
)
# note: atoi() has no error detection!
This diff is collapsed.
Click to expand it.
docs/examples/userguide/wrapping_CPlusPlus/Rectangle.pxd
View file @
c94a9972
...
@@ -8,5 +8,5 @@ cdef extern from "Rectangle.h" namespace "shapes":
...
@@ -8,5 +8,5 @@ cdef extern from "Rectangle.h" namespace "shapes":
Rectangle
(
int
,
int
,
int
,
int
)
except
+
Rectangle
(
int
,
int
,
int
,
int
)
except
+
int
x0
,
y0
,
x1
,
y1
int
x0
,
y0
,
x1
,
y1
int
getArea
()
int
getArea
()
void
getSize
(
int
*
width
,
int
*
height
)
void
getSize
(
int
*
width
,
int
*
height
)
void
move
(
int
,
int
)
void
move
(
int
,
int
)
This diff is collapsed.
Click to expand it.
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