Ticket #9880: trac_9880_fix_import.patch

File trac_9880_fix_import.patch, 869 bytes (added by vbraun, 10 years ago)

Initial patch

  • sage/symbolic/pynac.pyx

    # HG changeset patch
    # User Volker Braun <vbraun@stp.dias.ie>
    # Date 1308069422 25200
    # Node ID 98b80ddf6c9f18409d222bcb01622aa32ef8d18f
    # Parent  4285c96efbec1b5606fa13f3b10e0d0ec5c8cc38
    Trac #9880: Remove erroneous extern declaration
    
    According to Burcin, this was a workaround required in
    some old Cython version.
    
    diff --git a/sage/symbolic/pynac.pyx b/sage/symbolic/pynac.pyx
    a b  
    581581
    582582from sage.structure.element cimport Element
    583583
    584 # We declare the functions defined below as extern here, to prevent Cython
    585 # from generating separate declarations for them which confuse g++
    586 cdef extern from *:
    587     int py_get_parent_char(object o) except -1
    588 
    589584cdef public int py_get_parent_char(object o) except -1:
    590585    if isinstance(o, Element):
    591586        return (<Element>o)._parent.characteristic()