1
0
forked from GitHub/gf-core

Make hypos tuples again 😥

This commit is contained in:
John J. Camilleri
2021-09-28 10:35:19 +02:00
parent 9863f32d05
commit 388829d63d
6 changed files with 255 additions and 176 deletions

View File

@@ -8,21 +8,21 @@
typedef struct {
PyObject_HEAD
PyObject *hypos; // PyListObject of HypoObject
PyObject *hypos; // PyListObject of PyTupleObject: (PyBool, PyUnicodeObject, TypeObject)
PyObject *name; // PyUnicodeObject
PyObject *exprs; // PyListObject of ExprObject
} TypeObject;
PyTypeObject pgf_TypeType;
typedef struct {
PyObject_HEAD
PyObject *bind_type; // PyBool
PyObject *cid; // PyUnicodeObject
TypeObject *type;
} HypoObject;
PyTypeObject pgf_HypoType;
// typedef struct {
// PyObject_HEAD
// PyObject *bind_type; // PyBool
// PyObject *cid; // PyUnicodeObject
// TypeObject *type;
// } HypoObject;
//
// PyTypeObject pgf_HypoType;
typedef struct {
PyObject_HEAD