diff options
Diffstat (limited to 'shared/toxy')
-rw-r--r-- | shared/toxy/plusbob.c | 2 | ||||
-rw-r--r-- | shared/toxy/scriptlet.c | 9 |
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; } } } |