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
cb49864e
Commit
cb49864e
authored
Nov 03, 2008
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
310140c7
3db40527
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
127 additions
and
59 deletions
+127
-59
.hgtags
.hgtags
+1
-0
Cython/Compiler/Annotate.py
Cython/Compiler/Annotate.py
+2
-3
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+81
-55
Cython/Compiler/Version.py
Cython/Compiler/Version.py
+1
-1
tests/errors/e_boolcoerce.pyx
tests/errors/e_boolcoerce.pyx
+42
-0
No files found.
.hgtags
View file @
cb49864e
...
...
@@ -2,3 +2,4 @@
67ee5a34bfc662e4e3cf989c2c8bf78a412ae8f4 0.9.8rc1
16a746d969e2654112fc0dc081690b891c496977 Version-0.9.8
a09347d7b470290076b983aef98707921445a038 0.9.8.1
82084a7b654e2a133ab64ceb47e03d6e7a204990 0.9.9.2.beta
Cython/Compiler/Annotate.py
View file @
cb49864e
...
...
@@ -39,9 +39,8 @@ class AnnotationCCodeWriter(CCodeWriter):
self
.
annotation_buffer
.
write
(
s
)
def
mark_pos
(
self
,
pos
):
# if pos is not None:
# CCodeWriter.mark_pos(self, pos)
# return
if
pos
is
not
None
:
CCodeWriter
.
mark_pos
(
self
,
pos
)
if
self
.
last_pos
:
code
=
self
.
code
.
get
(
self
.
last_pos
[
1
],
""
)
self
.
code
[
self
.
last_pos
[
1
]]
=
code
+
self
.
annotation_buffer
.
getvalue
()
...
...
Cython/Compiler/Nodes.py
View file @
cb49864e
This diff is collapsed.
Click to expand it.
Cython/Compiler/Version.py
View file @
cb49864e
version
=
'0.9.8.
1.1
'
version
=
'0.9.8.
2.beta
'
tests/errors/e_boolcoerce.pyx
0 → 100644
View file @
cb49864e
ctypedef
struct
struct_type_not_boolean
:
int
i
float
f
if
struct_type_not_boolean
:
print
(
"INVALID CODE"
)
cdef
struct
struct_not_boolean
:
int
i
float
f
if
struct_not_boolean
:
print
(
"INVALID CODE"
)
ctypedef
union
union_type_not_boolean
:
int
i
float
f
if
union_type_not_boolean
:
print
(
"INVALID CODE"
)
cdef
union
union_not_boolean
:
int
i
float
f
if
union_not_boolean
:
print
(
"INVALID CODE"
)
_ERRORS
=
u"""
5:26: 'struct_type_not_boolean' is not a constant, variable or function identifier
5:26: Type 'struct_type_not_boolean' not acceptable as a boolean
12:21: 'struct_not_boolean' is not a constant, variable or function identifier
12:21: Type 'struct_not_boolean' not acceptable as a boolean
19:25: 'union_type_not_boolean' is not a constant, variable or function identifier
19:25: Type 'union_type_not_boolean' not acceptable as a boolean
26:20: 'union_not_boolean' is not a constant, variable or function identifier
26:20: Type 'union_not_boolean' not acceptable as a boolean
"""
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