From: Robert Bradshaw Date: Thu, 25 Oct 2007 06:55:04 +0000 (-0700) Subject: rdef -> cpdef X-Git-Tag: 0.9.6.14~29^2~109 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=83e6c7591a6070067b5f7f1269ec5e685e9d7ad1;p=cython.git rdef -> cpdef --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index b76e520f..86cc03f1 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -1311,7 +1311,7 @@ def p_statement(s, level, cdef_flag = 0, visibility = 'private', api = 0): if s.sy == 'cdef': cdef_flag = 1 s.next() - if s.sy == 'rdef': + if s.sy == 'cpdef': cdef_flag = 1 overridable = 1 s.next() @@ -1320,7 +1320,7 @@ def p_statement(s, level, cdef_flag = 0, visibility = 'private', api = 0): s.error('cdef statement not allowed here') return p_cdef_statement(s, level, visibility = visibility, api = api, overridable = overridable) - # elif s.sy == 'rdef': + # elif s.sy == 'cpdef': # s.next() # return p_c_func_or_var_declaration(s, level, s.position(), visibility = visibility, api = api, overridable = True) else: diff --git a/Cython/Compiler/Scanning.py b/Cython/Compiler/Scanning.py index 821f661d..ea2970b5 100644 --- a/Cython/Compiler/Scanning.py +++ b/Cython/Compiler/Scanning.py @@ -139,7 +139,7 @@ reserved_words = [ "raise", "import", "exec", "try", "except", "finally", "while", "if", "elif", "else", "for", "in", "assert", "and", "or", "not", "is", "in", "lambda", "from", - "NULL", "cimport", "by", "with", "rdef", "DEF", "IF", "ELIF", "ELSE" + "NULL", "cimport", "by", "with", "cpdef", "DEF", "IF", "ELIF", "ELSE" ] class Method: