From: Stefan Behnel Date: Sat, 14 Mar 2009 22:04:35 +0000 (+0100) Subject: minor cythonisation and cleanup in Scanners.pxd X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=71295b90111448a82d1b050e9c86b83835ff6620;p=cython.git minor cythonisation and cleanup in Scanners.pxd --- diff --git a/Cython/Plex/Scanners.pxd b/Cython/Plex/Scanners.pxd index fe09cff0..c40d8e6d 100644 --- a/Cython/Plex/Scanners.pxd +++ b/Cython/Plex/Scanners.pxd @@ -26,15 +26,15 @@ cdef class Scanner: @cython.locals(input_state=long) cpdef next_char(self) - cpdef read(self) + @cython.locals(queue=list) + cpdef tuple read(self) cpdef tuple scan_a_token(self) cpdef tuple 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) + @cython.locals(cur_pos=long, cur_line=long, cur_line_start=long, + input_state=long, next_pos=long, + buf_start_pos=long, buf_len=long, buf_index=long, + trace=bint, discard=long) cpdef run_machine_inlined(self) cpdef begin(self, state)