change syntax for Cython's pxd
authorRobert Bradshaw <robertwb@math.washington.edu>
Sun, 1 Mar 2009 11:06:24 +0000 (03:06 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Sun, 1 Mar 2009 11:06:24 +0000 (03:06 -0800)
Cython/Compiler/Scanning.pxd

index 9850562dab0b593f7f1ee2a807974df76f807a32..280a3cfdd4ebb22d669a48ce765a3551ae352101 100644 (file)
@@ -1,3 +1,5 @@
+import cython
+
 from Cython.Plex.Scanners cimport Scanner
 
 cdef class CompileTimeScope:
@@ -23,8 +25,5 @@ cdef class PyrexScanner(Scanner):
     cpdef next(self)
     cpdef bint expect(self, what, message = *) except -2
     
-    cpdef indentation_action(self, text):
-        cdef:
-            long current_level
-            long new_level
-    
+    @cython.locals(current_level=long, new_level=long)
+    cpdef indentation_action(self, text)