Skip to content

Commit

Permalink
Use GAP_True and GAP_False from libgap-api.h. Refs #2.
Browse files Browse the repository at this point in the history
  • Loading branch information
embray committed Jan 14, 2021
1 parent dafc2a5 commit 164c35f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions gappy/gap_includes.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ cdef extern from "gap/libgap-api.h" nogil:
int GAP_LT(Obj opL, Obj opR)
int GAP_IN(Obj, Obj)

# Booleans
cdef Obj GAP_True
cdef Obj GAP_False

# Evaluation
Obj GAP_EvalString(const char *) except *
Obj GAP_EvalStringNoExcept "GAP_EvalString"(const char *)
Expand Down Expand Up @@ -96,11 +100,6 @@ cdef extern from "gap/libgap-api.h" nogil:
Obj GAP_NewPrecord(Int)


cdef extern from "gap/bool.h" nogil:
cdef Obj GAP_True "True"
cdef Obj GAP_False "False"


cdef extern from "gap/calls.h" nogil:
bint IS_FUNC(Obj)

Expand Down

0 comments on commit 164c35f

Please sign in to comment.