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
a32504ba
Commit
a32504ba
authored
Jan 12, 2019
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use direct C function calls instead of vtable indirections in Scanners module.
parent
bb32de01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
Cython/Plex/Scanners.pxd
Cython/Plex/Scanners.pxd
+4
-8
No files found.
Cython/Plex/Scanners.pxd
View file @
a32504ba
...
...
@@ -28,13 +28,11 @@ cdef class Scanner:
cdef
public
level
@
cython
.
final
@
cython
.
locals
(
input_state
=
long
)
cdef
next_char
(
self
)
cdef
inline
next_char
(
self
)
@
cython
.
locals
(
action
=
Action
)
cpdef
tuple
read
(
self
)
@
cython
.
final
cdef
tuple
scan_a_token
(
self
)
cdef
inline
tuple
scan_a_token
(
self
)
##cdef tuple position(self) # used frequently by Parsing.py
@
cython
.
final
...
...
@@ -44,7 +42,5 @@ cdef class Scanner:
trace
=
bint
,
discard
=
Py_ssize_t
,
data
=
unicode
,
buffer
=
unicode
)
cdef
run_machine_inlined
(
self
)
@
cython
.
final
cdef
begin
(
self
,
state
)
@
cython
.
final
cdef
produce
(
self
,
value
,
text
=
*
)
cdef
inline
begin
(
self
,
state
)
cdef
inline
produce
(
self
,
value
,
text
=
*
)
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