From: Stefan Behnel Date: Thu, 11 Nov 2010 22:39:24 +0000 (+0100) Subject: declare purely internal methods of Scanner class as 'cdef' X-Git-Tag: 0.14.alpha0~182 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d2fe73557d95ae9035ce494ea0555373fdb6267b;p=cython.git declare purely internal methods of Scanner class as 'cdef' --- 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 = *)