Work in progress with marshalling in Python bindings, trying to get Type_str to work without segfaulting

This commit is contained in:
John J. Camilleri
2021-09-06 23:49:53 +02:00
parent b7cddf206b
commit 5b96ede199
4 changed files with 78 additions and 25 deletions

View File

@@ -814,7 +814,7 @@
static PyObject *
Type_str(TypeObject *self)
{
PgfText *s = pgf_print_type((PgfType) &self, NULL, 0, &marshaller);
PgfText *s = pgf_print_type((PgfType) &self, NULL, 1, &marshaller);
return PyString_FromStringAndSize(s->text, s->size);
}