Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1249
Modified Files: Tag: impd_0_37 s_print.c m_glob.c Log Message: correction on
Index: s_print.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_print.c,v retrieving revision 1.1.1.1.16.2.2.3 retrieving revision 1.1.1.1.16.2.2.4 diff -C2 -d -r1.1.1.1.16.2.2.3 -r1.1.1.1.16.2.2.4 *** s_print.c 19 Mar 2004 20:19:55 -0000 1.1.1.1.16.2.2.3 --- s_print.c 19 Mar 2004 21:01:34 -0000 1.1.1.1.16.2.2.4 *************** *** 10,14 **** --- 10,16 ---- #include <errno.h>
+ #ifdef MSW #define vsnprintf _vsnprintf + #endif
/* T.Grill - linked list structure */ *************** *** 213,222 **** char *special = "${}[]\"\n"; int console_li_old = console_li; ! int countbrace, i, n; console_li += vsnprintf(console_line+console_li, console_ln-console_li, fmt, ap); console_line[console_ln-1]=0; if (!strchr(&console_line[console_li_old],'\n')) return; ! countbrace=0; ! n = strlen(console_line); for (i=n-1; i>=0; i--) if (strchr(special,console_line[i])) countbrace++; while (n+countbrace>=(int)sizeof(console_line)) n--; --- 215,224 ---- char *special = "${}[]\"\n"; int console_li_old = console_li; ! int countbrace=0, i, n; console_li += vsnprintf(console_line+console_li, console_ln-console_li, fmt, ap); console_line[console_ln-1]=0; + n = strlen(console_line); if (!strchr(&console_line[console_li_old],'\n')) return; ! n = strlen(console_line); for (i=n-1; i>=0; i--) if (strchr(special,console_line[i])) countbrace++; while (n+countbrace>=(int)sizeof(console_line)) n--;
Index: m_glob.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/m_glob.c,v retrieving revision 1.1.1.2.2.3.2.4 retrieving revision 1.1.1.2.2.3.2.5 diff -C2 -d -r1.1.1.2.2.3.2.4 -r1.1.1.2.2.3.2.5 *** m_glob.c 19 Mar 2004 20:19:55 -0000 1.1.1.2.2.3.2.4 --- m_glob.c 19 Mar 2004 21:01:34 -0000 1.1.1.2.2.3.2.5 *************** *** 68,72 **** /* see also canvas_done_popup */ void glob_help(t_pd *bogus, t_symbol *s) { ! char namebuf[MAXPDSTRING], *dir; t_class *c = class_find(s); if (!c) { post("HUH? no help because no class. (!)"); return; } --- 68,72 ---- /* see also canvas_done_popup */ void glob_help(t_pd *bogus, t_symbol *s) { ! char namebuf[MAXPDSTRING], *dir; t_class *c = class_find(s); if (!c) { post("HUH? no help because no class. (!)"); return; }