diff options
author | N.N. <krzyszcz@users.sourceforge.net> | 2004-12-10 20:47:06 +0000 |
---|---|---|
committer | N.N. <krzyszcz@users.sourceforge.net> | 2004-12-10 20:47:06 +0000 |
commit | 5af9cc14b70f907f0d10a75aa28ad04bbd65ec0d (patch) | |
tree | eaa75a18523d97c6e47c8ccec59365948b0082f7 /shared/toxy/scriptlet.c | |
parent | 155fa2c04c7e415803e1546dcde0a47442eef4b3 (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.c | 9 |
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; } } } |