From d2fe73557d95ae9035ce494ea0555373fdb6267b Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 11 Nov 2010 23:39:24 +0100 Subject: [PATCH] declare purely internal methods of Scanner class as 'cdef' --- Cython/Plex/Scanners.pxd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Cython/Plex/Scanners.pxd b/Cython/Plex/Scanners.pxd index ed08953f..4ecdba68 100644 --- a/Cython/Plex/Scanners.pxd +++ b/Cython/Plex/Scanners.pxd @@ -26,16 +26,15 @@ cdef class Scanner: @cython.locals(input_state=long) cpdef next_char(self) - @cython.locals(queue=list) cpdef tuple read(self) - cpdef tuple scan_a_token(self) + cdef tuple scan_a_token(self) cpdef tuple position(self) @cython.locals(cur_pos=long, cur_line=long, cur_line_start=long, input_state=long, next_pos=long, state=dict, buf_start_pos=long, buf_len=long, buf_index=long, trace=bint, discard=long, data=unicode, buffer=unicode) - cpdef run_machine_inlined(self) + cdef run_machine_inlined(self) cpdef begin(self, state) cpdef produce(self, value, text = *) -- 2.26.2