From 654a69621c84b3ff142c9fb246429dfa7282695a Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 10 Nov 2010 23:49:36 +0100 Subject: [PATCH] more typing in Scanners.pxd for slightly faster scanning --- Cython/Plex/Scanners.pxd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cython/Plex/Scanners.pxd b/Cython/Plex/Scanners.pxd index c40d8e6d..ed08953f 100644 --- a/Cython/Plex/Scanners.pxd +++ b/Cython/Plex/Scanners.pxd @@ -5,7 +5,7 @@ cdef class Scanner: cdef public lexicon cdef public stream cdef public name - cdef public buffer + cdef public unicode buffer cdef public Py_ssize_t buf_start_pos cdef public Py_ssize_t next_pos cdef public Py_ssize_t cur_pos @@ -32,9 +32,9 @@ cdef class Scanner: cpdef tuple position(self) @cython.locals(cur_pos=long, cur_line=long, cur_line_start=long, - input_state=long, next_pos=long, + input_state=long, next_pos=long, state=dict, buf_start_pos=long, buf_len=long, buf_index=long, - trace=bint, discard=long) + trace=bint, discard=long, data=unicode, buffer=unicode) cpdef run_machine_inlined(self) cpdef begin(self, state) -- 2.26.2