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
4b20838a
Commit
4b20838a
authored
Dec 09, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fatal_errors -> fast_fail
parent
75c3536e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Cython/Compiler/CmdLine.py
Cython/Compiler/CmdLine.py
+3
-3
Cython/Compiler/Errors.py
Cython/Compiler/Errors.py
+1
-1
Cython/Compiler/Options.py
Cython/Compiler/Options.py
+1
-1
No files found.
Cython/Compiler/CmdLine.py
View file @
4b20838a
...
@@ -35,7 +35,7 @@ Options:
...
@@ -35,7 +35,7 @@ Options:
--embed Embed the Python interpreter in a main() method.
--embed Embed the Python interpreter in a main() method.
-2 Compile based on Python-2 syntax and code semantics.
-2 Compile based on Python-2 syntax and code semantics.
-3 Compile based on Python-3 syntax and code semantics.
-3 Compile based on Python-3 syntax and code semantics.
--fa
tal-errors
Abort the compilation on the first error
--fa
st-fail
Abort the compilation on the first error
-X, --directive <name>=<value>[,<name=value,...] Overrides a compiler directive
-X, --directive <name>=<value>[,<name=value,...] Overrides a compiler directive
"""
"""
...
@@ -118,8 +118,8 @@ def parse_command_line(args):
...
@@ -118,8 +118,8 @@ def parse_command_line(args):
options
.
language_level
=
2
options
.
language_level
=
2
elif
option
==
'-3'
:
elif
option
==
'-3'
:
options
.
language_level
=
3
options
.
language_level
=
3
elif
option
==
"--fa
tal-errors
"
:
elif
option
==
"--fa
st-fail
"
:
Options
.
fa
tal_errors
=
True
Options
.
fa
st_fail
=
True
elif
option
in
(
"-X"
,
"--directive"
):
elif
option
in
(
"-X"
,
"--directive"
):
try
:
try
:
options
.
compiler_directives
=
Options
.
parse_directive_list
(
options
.
compiler_directives
=
Options
.
parse_directive_list
(
...
...
Cython/Compiler/Errors.py
View file @
4b20838a
...
@@ -144,7 +144,7 @@ def report_error(err):
...
@@ -144,7 +144,7 @@ def report_error(err):
except
UnicodeEncodeError
:
except
UnicodeEncodeError
:
echo_file
.
write
(
line
.
encode
(
'ASCII'
,
'replace'
))
echo_file
.
write
(
line
.
encode
(
'ASCII'
,
'replace'
))
num_errors
=
num_errors
+
1
num_errors
=
num_errors
+
1
if
Options
.
fa
tal_errors
:
if
Options
.
fa
st_fail
:
raise
AbortError
,
"fatal errors"
raise
AbortError
,
"fatal errors"
def
error
(
position
,
message
):
def
error
(
position
,
message
):
...
...
Cython/Compiler/Options.py
View file @
4b20838a
...
@@ -20,7 +20,7 @@ annotate = 0
...
@@ -20,7 +20,7 @@ annotate = 0
# This will abort the compilation on the first error occured rather than trying
# This will abort the compilation on the first error occured rather than trying
# to keep going and printing further error messages.
# to keep going and printing further error messages.
fa
tal_errors
=
False
fa
st_fail
=
False
# This will convert statements of the form "for i in range(...)"
# This will convert statements of the form "for i in range(...)"
# to "for i from ..." when i is a cdef'd integer type, and the direction
# to "for i from ..." when i is a cdef'd integer type, and the direction
...
...
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