Export pxd functions by default
authorRobert Bradshaw <robertwb@math.washington.edu>
Wed, 13 Feb 2008 04:09:14 +0000 (20:09 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Wed, 13 Feb 2008 04:09:14 +0000 (20:09 -0800)
Cython/Compiler/Parsing.py

index 8635642c81cbb407efc54546a751c635fc6cfc86..fd64b1ecf1333f93ef58b0350e1f87376cf8c40c 100644 (file)
@@ -1875,6 +1875,8 @@ def p_c_modifiers(s):
 def p_c_func_or_var_declaration(s, level, pos, visibility = 'private', api = 0,
                                 overridable = False):
     cmethod_flag = level in ('c_class', 'c_class_pxd')
+    if level in ('c_class_pxd', 'module_pxd'):
+        api = 1 # default for pxd
     modifiers = p_c_modifiers(s)
     base_type = p_c_base_type(s)
     declarator = p_c_declarator(s, cmethod_flag = cmethod_flag, assignable = 1, nonempty = 1)