Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
#22626: remove GAP's symbol prefixing in libgap: libGAP_Foo -> Foo
Browse files Browse the repository at this point in the history
  • Loading branch information
nthiery committed Mar 16, 2017
1 parent fd5f71a commit 1c645e0
Show file tree
Hide file tree
Showing 5 changed files with 339 additions and 336 deletions.
34 changes: 17 additions & 17 deletions src/sage/libs/gap/element.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@ from .util cimport *
from sage.structure.sage_object cimport SageObject
from sage.structure.element cimport Element, ModuleElement, RingElement

cdef libGAP_Obj make_gap_list(sage_list) except NULL
cdef libGAP_Obj make_gap_record(sage_dict) except NULL
cdef libGAP_Obj make_gap_integer(sage_dict) except NULL
cdef libGAP_Obj make_gap_string(sage_string) except NULL
cdef Obj make_gap_list(sage_list) except NULL
cdef Obj make_gap_record(sage_dict) except NULL
cdef Obj make_gap_integer(sage_dict) except NULL
cdef Obj make_gap_string(sage_string) except NULL

cdef GapElement make_any_gap_element(parent, libGAP_Obj obj)
cdef GapElement make_GapElement(parent, libGAP_Obj obj)
cdef GapElement_List make_GapElement_List(parent, libGAP_Obj obj)
cdef GapElement_Record make_GapElement_Record(parent, libGAP_Obj obj)
cdef GapElement_Integer make_GapElement_Integer(parent, libGAP_Obj obj)
cdef GapElement_Rational make_GapElement_Rational(parent, libGAP_Obj obj)
cdef GapElement_String make_GapElement_String(parent, libGAP_Obj obj)
cdef GapElement_Boolean make_GapElement_Boolean(parent, libGAP_Obj obj)
cdef GapElement_Function make_GapElement_Function(parent, libGAP_Obj obj)
cdef GapElement make_any_gap_element(parent, Obj obj)
cdef GapElement make_GapElement(parent, Obj obj)
cdef GapElement_List make_GapElement_List(parent, Obj obj)
cdef GapElement_Record make_GapElement_Record(parent, Obj obj)
cdef GapElement_Integer make_GapElement_Integer(parent, Obj obj)
cdef GapElement_Rational make_GapElement_Rational(parent, Obj obj)
cdef GapElement_String make_GapElement_String(parent, Obj obj)
cdef GapElement_Boolean make_GapElement_Boolean(parent, Obj obj)
cdef GapElement_Function make_GapElement_Function(parent, Obj obj)



cdef class GapElement(RingElement):

# the pointer to the GAP object (memory managed by GASMAN)
cdef libGAP_Obj value
cdef Obj value

# comparison
cdef bint _compare_by_id
Expand All @@ -41,7 +41,7 @@ cdef class GapElement(RingElement):
cpdef _set_compare_by_id(self)
cpdef _assert_compare_by_id(self)

cdef _initialize(self, parent, libGAP_Obj obj)
cdef _initialize(self, parent, Obj obj)
cpdef _type_number(self)
cpdef is_bool(self)

Expand Down Expand Up @@ -77,11 +77,11 @@ cdef class GapElement_MethodProxy(GapElement_Function):
cdef GapElement first_argument

cdef class GapElement_Record(GapElement):
cpdef libGAP_UInt record_name_to_index(self, bytes py_name)
cpdef UInt record_name_to_index(self, bytes py_name)

cdef class GapElement_RecordIterator(object):
cdef GapElement_Record rec
cdef libGAP_UInt i
cdef UInt i

cdef class GapElement_List(GapElement):
pass
Expand Down
Loading

0 comments on commit 1c645e0

Please sign in to comment.