aboutsummaryrefslogtreecommitdiff
path: root/shared/toxy
diff options
context:
space:
mode:
authorN.N. <krzyszcz@users.sourceforge.net>2004-12-10 20:47:06 +0000
committerN.N. <krzyszcz@users.sourceforge.net>2004-12-10 20:47:06 +0000
commit5af9cc14b70f907f0d10a75aa28ad04bbd65ec0d (patch)
treeeaa75a18523d97c6e47c8ccec59365948b0082f7 /shared/toxy
parent155fa2c04c7e415803e1546dcde0a47442eef4b3 (diff)
restricted debug garbage to krzYszcz, few fixes in toxy
svn path=/trunk/externals/miXed/; revision=2364
Diffstat (limited to 'shared/toxy')
-rw-r--r--shared/toxy/plusbob.c2
-rw-r--r--shared/toxy/scriptlet.c9
2 files changed, 9 insertions, 2 deletions
diff --git a/shared/toxy/plusbob.c b/shared/toxy/plusbob.c
index fb587cc..4ea96e2 100644
--- a/shared/toxy/plusbob.c
+++ b/shared/toxy/plusbob.c
@@ -7,7 +7,9 @@
#include "common/loud.h"
#include "plusbob.h"
+#ifdef KRZYSZCZ
//#define PLUSBOB_DEBUG
+#endif
/* LATER let there be a choice of using either fake-symbols, or gpointers.
The gpointer layout would be such: gs_un points to a plusbob-like
diff --git a/shared/toxy/scriptlet.c b/shared/toxy/scriptlet.c
index be5ff41..7d5146c 100644
--- a/shared/toxy/scriptlet.c
+++ b/shared/toxy/scriptlet.c
@@ -17,7 +17,9 @@
#include "common/props.h"
#include "scriptlet.h"
-#define SCRIPTLET_DEBUG
+#ifdef KRZYSZCZ
+//#define SCRIPTLET_DEBUG
+#endif
#define SCRIPTLET_INISIZE 1024
#define SCRIPTLET_INIDOTSIZE 256
@@ -641,6 +643,9 @@ static int scriptlet_doread(t_scriptlet *sp, t_pd *caller, FILE *fp,
else builtin++;
}
}
+ else for (ptr = buf; *ptr; ptr++)
+ if (*ptr == '\r')
+ *ptr = ' '; /* LATER rethink */
ptr = buf;
while (*ptr == ' ' || *ptr == '\t') ptr++;
if (*ptr == '#')
@@ -669,7 +674,7 @@ static int scriptlet_doread(t_scriptlet *sp, t_pd *caller, FILE *fp,
else if (newsp != outsp)
{
outsp->s_locked = 0;
- scriptlet_reset(outsp = newsp);
+ outsp = newsp;
}
}
}