Start work on marshalling in Python bindings

This commit is contained in:
John J. Camilleri
2021-09-03 14:14:47 +02:00
parent 2daf9e2e19
commit 3ecb937753
7 changed files with 1362 additions and 1206 deletions

26
src/runtime/python/expr.h Normal file
View File

@@ -0,0 +1,26 @@
#ifndef PYPGF_EXPR_H_
#define PYPGF_EXPR_H_
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <pgf/pgf.h>
typedef struct {
PyObject_HEAD
PyObject* master;
// GuPool* pool;
// PgfType* type;
PgfText *cat;
} TypeObject;
extern PyTypeObject pgf_TypeType;
// typedef struct {
// PyObject_HEAD
// PyObject* master;
// GuPool* pool;
// PgfExpr expr;
// } ExprObject;
#endif // PYPGF_EXPR_H_