Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10655
Modified Files: Tag: impd_0_37 g_all_guis.c g_all_guis.h Log Message: sys_mgui() take two
Index: g_all_guis.h =================================================================== RCS file: /cvsroot/pure-data/pd/src/g_all_guis.h,v retrieving revision 1.1.1.4.2.2.2.5 retrieving revision 1.1.1.4.2.2.2.6 diff -C2 -d -r1.1.1.4.2.2.2.5 -r1.1.1.4.2.2.2.6 *** g_all_guis.h 28 Mar 2004 06:25:07 -0000 1.1.1.4.2.2.2.5 --- g_all_guis.h 28 Mar 2004 07:19:06 -0000 1.1.1.4.2.2.2.6 *************** *** 307,309 **** EXTERN int pd_scanargs(int argc, t_atom *argv, char *format, ...); EXTERN void pd_upload(t_gobj *self); ! EXTERN void sys_mgui(t_iemgui *self, const char *sel, const char *fmt, ...); --- 307,309 ---- EXTERN int pd_scanargs(int argc, t_atom *argv, char *format, ...); EXTERN void pd_upload(t_gobj *self); ! EXTERN void sys_mgui(t_iemgui *self, const char *qlass, const char *sel, const char *fmt, ...);
Index: g_all_guis.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/g_all_guis.c,v retrieving revision 1.1.1.4.2.4.2.8 retrieving revision 1.1.1.4.2.4.2.9 diff -C2 -d -r1.1.1.4.2.4.2.8 -r1.1.1.4.2.4.2.9 *** g_all_guis.c 28 Mar 2004 06:25:07 -0000 1.1.1.4.2.4.2.8 --- g_all_guis.c 28 Mar 2004 07:19:06 -0000 1.1.1.4.2.4.2.9 *************** *** 668,672 **** }
! void sys_mgui(t_iemgui *self, const char *sel, const char *fmt, ...) { char buf[4096]; int i=0, n=4096; --- 668,672 ---- }
! void sys_mgui(t_iemgui *self, const char *qlass, const char *sel, const char *fmt, ...) { char buf[4096]; int i=0, n=4096; *************** *** 676,686 **** va_list val; va_start(val,fmt); ! i+=snprintf(buf,n-i,"%s_%s %x .x%x.c", cname, sel, (unsigned)self, (unsigned)canvas); if (i>=n) goto over; while (*fmt) { switch (*fmt) { ! case 'f': case 'd': i+=snprintf(buf,n-i," %f",va_arg(val,double)); break; ! case 's': i+=snprintf(buf,n-i," "%s"",va_arg(val,t_symbol *)->s_name); break; ! case 'S': i+=snprintf(buf,n-i," "%s"",va_arg(val,const char *)); break; } if (i>=n) goto over; --- 676,687 ---- va_list val; va_start(val,fmt); ! i+=snprintf(buf+i,n-i,"%s_%s %x .x%x.c", qlass?qlass:cname, sel, (unsigned)self, (unsigned)canvas); if (i>=n) goto over; while (*fmt) { switch (*fmt) { ! case 'f': case 'd': i+=snprintf(buf+i,n-i," %f",va_arg(val,double)); break; ! case 'i': i+=snprintf(buf+i,n-i," %d",va_arg(val,int)); break; ! case 's': i+=snprintf(buf+i,n-i," "%s"",va_arg(val,t_symbol *)->s_name); break; ! case 'S': i+=snprintf(buf+i,n-i," "%s"",va_arg(val,const char *)); break; } if (i>=n) goto over; *************** *** 688,691 **** --- 689,696 ---- } va_end(val); + i+=snprintf(buf+i,n-i,"\n"); + if (i>=n) goto over; + fprintf(stderr,">>> %s",buf); + sys_gui(buf); return; over: