From 71295b90111448a82d1b050e9c86b83835ff6620 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 14 Mar 2009 23:04:35 +0100 Subject: [PATCH] minor cythonisation and cleanup in Scanners.pxd --- Cython/Plex/Scanners.pxd | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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) -- 2.26.2