aboutsummaryrefslogtreecommitdiff
path: root/shared/common/port.c
diff options
context:
space:
mode:
Diffstat (limited to 'shared/common/port.c')
-rw-r--r--shared/common/port.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/shared/common/port.c b/shared/common/port.c
index f1471bf..fb22163 100644
--- a/shared/common/port.c
+++ b/shared/common/port.c
@@ -22,6 +22,9 @@
#include "common/binport.h"
#include "common/port.h"
+//#define PORT_DEBUG
+#define PORT_LOG
+
#define PORT_INISTACK 256 /* LATER rethink */
#define PORT_INISIZE 512 /* LATER rethink */
@@ -591,9 +594,12 @@ void import_max(char *fn, char *dir)
if (ftype == BINPORT_PDFILE) x->x_newbb = x->x_oldbb;
else
{
+#ifdef PORT_DEBUG
+ binbuf_write(x->x_oldbb, "import-debug.pd", "", 0);
+#endif
import_binbuf(x);
binbuf_free(x->x_oldbb);
-#if 1
+#ifdef PORT_LOG
binbuf_write(x->x_newbb, "import-result.pd", "", 0);
#endif
}