aboutsummaryrefslogtreecommitdiff
path: root/shared/toxy/scriptlet.c
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/scriptlet.c
parent155fa2c04c7e415803e1546dcde0a47442eef4b3 (diff)
restricted debug garbage to krzYszcz, few fixes in toxy
svn path=/trunk/externals/miXed/; revision=2364
Diffstat (limited to 'shared/toxy/scriptlet.c')
-rw-r--r--shared/toxy/scriptlet.c9
1 files changed, 7 insertions, 2 deletions
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;
}
}
}