mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-09-16 15:26:00 -06:00
left debugging messages
This commit is contained in:
@@ -2195,14 +2195,20 @@ pgf_showType(PyObject *self, PyObject *args)
|
|||||||
{
|
{
|
||||||
PyObject *pylist;
|
PyObject *pylist;
|
||||||
TypeObject *type;
|
TypeObject *type;
|
||||||
|
printf("pgf_showType 1\n");
|
||||||
if (!PyArg_ParseTuple(args, "O!O!", &PyList_Type, &pylist, &pgf_TypeType, &type))
|
if (!PyArg_ParseTuple(args, "O!O!", &PyList_Type, &pylist, &pgf_TypeType, &type))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
printf("pgf_showType 2\n");
|
||||||
PgfPrintContext *ctxt = PyList_AsPgfPrintContext(pylist);
|
PgfPrintContext *ctxt = PyList_AsPgfPrintContext(pylist);
|
||||||
|
printf("pgf_showType 3\n");
|
||||||
PgfText *s = pgf_print_type((PgfType) type, ctxt, 0, &marshaller);
|
PgfText *s = pgf_print_type((PgfType) type, ctxt, 0, &marshaller);
|
||||||
|
printf("pgf_showType 4\n");
|
||||||
FreePgfPrintContext(ctxt);
|
FreePgfPrintContext(ctxt);
|
||||||
|
printf("pgf_showType 5\n");
|
||||||
PyObject *str = PyUnicode_FromStringAndSize(s->text, s->size);
|
PyObject *str = PyUnicode_FromStringAndSize(s->text, s->size);
|
||||||
|
printf("pgf_showType 6\n");
|
||||||
FreePgfText(s);
|
FreePgfText(s);
|
||||||
|
printf("pgf_showType 7\n");
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user