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
Gwenaël Samain
cython
Commits
def6e0d0
Commit
def6e0d0
authored
Mar 07, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re-instate @cython.locals in pxd
parent
5be59c3c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
Cython/Compiler/Scanning.pxd
Cython/Compiler/Scanning.pxd
+1
-0
Cython/Compiler/Scanning.py
Cython/Compiler/Scanning.py
+0
-1
Cython/Plex/Scanners.pxd
Cython/Plex/Scanners.pxd
+6
-0
Cython/Plex/Scanners.py
Cython/Plex/Scanners.py
+0
-6
No files found.
Cython/Compiler/Scanning.pxd
View file @
def6e0d0
...
@@ -25,4 +25,5 @@ cdef class PyrexScanner(Scanner):
...
@@ -25,4 +25,5 @@ cdef class PyrexScanner(Scanner):
cpdef
next
(
self
)
cpdef
next
(
self
)
cpdef
bint
expect
(
self
,
what
,
message
=
*
)
except
-
2
cpdef
bint
expect
(
self
,
what
,
message
=
*
)
except
-
2
@
cython
.
locals
(
current_level
=
cython
.
long
,
new_level
=
cython
.
long
)
cpdef
indentation_action
(
self
,
text
)
cpdef
indentation_action
(
self
,
text
)
Cython/Compiler/Scanning.py
View file @
def6e0d0
...
@@ -367,7 +367,6 @@ class PyrexScanner(Scanner):
...
@@ -367,7 +367,6 @@ class PyrexScanner(Scanner):
self
.
end_string_action
(
text
)
self
.
end_string_action
(
text
)
self
.
error
(
"Unclosed string literal"
)
self
.
error
(
"Unclosed string literal"
)
@
cython
.
locals
(
current_level
=
cython
.
long
,
new_level
=
cython
.
long
)
def
indentation_action
(
self
,
text
):
def
indentation_action
(
self
,
text
):
self
.
begin
(
''
)
self
.
begin
(
''
)
# Indentation within brackets should be ignored.
# Indentation within brackets should be ignored.
...
...
Cython/Plex/Scanners.pxd
View file @
def6e0d0
...
@@ -24,10 +24,16 @@ cdef class Scanner:
...
@@ -24,10 +24,16 @@ cdef class Scanner:
cdef
public
level
cdef
public
level
@
cython
.
locals
(
input_state
=
long
)
cpdef
next_char
(
self
)
cpdef
next_char
(
self
)
cpdef
read
(
self
)
cpdef
read
(
self
)
cpdef
position
(
self
)
cpdef
position
(
self
)
@
cython
.
locals
(
cur_pos
=
cython
.
long
,
cur_line
=
cython
.
long
,
cur_line_start
=
cython
.
long
,
input_state
=
cython
.
long
,
next_pos
=
cython
.
long
,
buf_start_pos
=
cython
.
long
,
buf_len
=
cython
.
long
,
buf_index
=
cython
.
long
,
trace
=
cython
.
bint
,
discard
=
cython
.
long
)
cpdef
run_machine_inlined
(
self
)
cpdef
run_machine_inlined
(
self
)
cpdef
begin
(
self
,
state
)
cpdef
begin
(
self
,
state
)
...
...
Cython/Plex/Scanners.py
View file @
def6e0d0
...
@@ -160,11 +160,6 @@ class Scanner:
...
@@ -160,11 +160,6 @@ class Scanner:
pass
pass
return
self
.
back_up
()
return
self
.
back_up
()
@
cython
.
locals
(
cur_pos
=
cython
.
long
,
cur_line
=
cython
.
long
,
cur_line_start
=
cython
.
long
,
input_state
=
cython
.
long
,
next_pos
=
cython
.
long
,
buf_start_pos
=
cython
.
long
,
buf_len
=
cython
.
long
,
buf_index
=
cython
.
long
,
trace
=
cython
.
bint
,
discard
=
cython
.
long
)
def
run_machine_inlined
(
self
):
def
run_machine_inlined
(
self
):
"""
"""
Inlined version of run_machine for speed.
Inlined version of run_machine for speed.
...
@@ -305,7 +300,6 @@ class Scanner:
...
@@ -305,7 +300,6 @@ class Scanner:
# else:
# else:
# return None
# return None
@
cython
.
locals
(
input_state
=
long
)
def
next_char
(
self
):
def
next_char
(
self
):
input_state
=
self
.
input_state
input_state
=
self
.
input_state
if
self
.
trace
:
if
self
.
trace
:
...
...
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