Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
nexedi
cython
Commits
0f1a5eb3
Commit
0f1a5eb3
authored
11 years ago
by
Robert Bradshaw
Browse files
Options
Download
Plain Diff
Merge pull request #277 from Hinogary/master
some minor changes
parents
2793297b
b6549951
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
1 deletion
+9
-1
Cython/Distutils/build_ext.py
Cython/Distutils/build_ext.py
+2
-0
Cython/Includes/libc/stdio.pxd
Cython/Includes/libc/stdio.pxd
+1
-1
Cython/Includes/libcpp/vector.pxd
Cython/Includes/libcpp/vector.pxd
+4
-0
docs/src/reference/language_basics.rst
docs/src/reference/language_basics.rst
+1
-0
setup.py
setup.py
+1
-0
No files found.
Cython/Distutils/build_ext.py
View file @
0f1a5eb3
...
@@ -291,6 +291,8 @@ class build_ext(_build_ext.build_ext):
...
@@ -291,6 +291,8 @@ class build_ext(_build_ext.build_ext):
for
source
in
cython_sources
:
for
source
in
cython_sources
:
target
=
cython_targets
[
source
]
target
=
cython_targets
[
source
]
depends
=
[
source
]
+
list
(
extension
.
depends
or
())
depends
=
[
source
]
+
list
(
extension
.
depends
or
())
if
(
source
[
-
4
:].
lower
()
==
".pyx"
and
os
.
path
.
isfile
(
source
[:
-
3
]
+
"pxd"
)):
depends
+=
[
source
[:
-
3
]
+
"pxd"
]
rebuild
=
self
.
force
or
newer_group
(
depends
,
target
,
'newer'
)
rebuild
=
self
.
force
or
newer_group
(
depends
,
target
,
'newer'
)
if
not
rebuild
and
newest_dependency
is
not
None
:
if
not
rebuild
and
newest_dependency
is
not
None
:
rebuild
=
newer
(
newest_dependency
,
target
)
rebuild
=
newer
(
newest_dependency
,
target
)
...
...
This diff is collapsed.
Click to expand it.
Cython/Includes/libc/stdio.pxd
View file @
0f1a5eb3
...
@@ -77,4 +77,4 @@ cdef extern from "stdio.h" nogil:
...
@@ -77,4 +77,4 @@ cdef extern from "stdio.h" nogil:
int
fputc
(
int
c
,
FILE
*
stream
)
int
fputc
(
int
c
,
FILE
*
stream
)
int
putc
(
int
c
,
FILE
*
stream
)
int
putc
(
int
c
,
FILE
*
stream
)
size_t
getline
(
char
**
lineptr
,
size_t
*
n
,
FILE
*
stream
)
This diff is collapsed.
Click to expand it.
Cython/Includes/libcpp/vector.pxd
View file @
0f1a5eb3
...
@@ -70,3 +70,7 @@ cdef extern from "<vector>" namespace "std":
...
@@ -70,3 +70,7 @@ cdef extern from "<vector>" namespace "std":
void
resize
(
size_t
,
T
&
)
nogil
void
resize
(
size_t
,
T
&
)
nogil
size_t
size
()
nogil
size_t
size
()
nogil
void
swap
(
vector
&
)
nogil
void
swap
(
vector
&
)
nogil
#C++0x methods
T
*
data
()
nogil
void
shrink_to_fit
()
This diff is collapsed.
Click to expand it.
docs/src/reference/language_basics.rst
View file @
0f1a5eb3
...
@@ -132,6 +132,7 @@ The ``cdef`` statement is used to make C level declarations for:
...
@@ -132,6 +132,7 @@ The ``cdef`` statement is used to make C level declarations for:
cdef struct Grail:
cdef struct Grail:
int age
int age
float volume
float volume
..note Struct can be ``packed``, which have same effect as C directive ``#pragma pack(1)``.
:Unions:
:Unions:
...
...
This diff is collapsed.
Click to expand it.
setup.py
100644 → 100755
View file @
0f1a5eb3
#!/usr/bin/env python
try
:
try
:
from
setuptools
import
setup
,
Extension
from
setuptools
import
setup
,
Extension
except
ImportError
:
except
ImportError
:
...
...
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