From 164c35f0ad1c16d0f0e8f1b2742641a552b93c28 Mon Sep 17 00:00:00 2001 From: "E. Madison Bray" Date: Thu, 14 Jan 2021 09:54:55 +0100 Subject: [PATCH] Use GAP_True and GAP_False from libgap-api.h. Refs #2. --- gappy/gap_includes.pxd | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gappy/gap_includes.pxd b/gappy/gap_includes.pxd index c59f24e..d17f54b 100644 --- a/gappy/gap_includes.pxd +++ b/gappy/gap_includes.pxd @@ -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 *) @@ -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)