Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29367
Modified Files: Tag: desiredata s_inter.c Log Message: fix previous commit
Index: s_inter.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/s_inter.c,v retrieving revision 1.5.4.10.2.25.2.5 retrieving revision 1.5.4.10.2.25.2.6 diff -C2 -d -r1.5.4.10.2.25.2.5 -r1.5.4.10.2.25.2.6 *** s_inter.c 2 Dec 2006 05:13:10 -0000 1.5.4.10.2.25.2.5 --- s_inter.c 2 Dec 2006 05:21:51 -0000 1.5.4.10.2.25.2.6 *************** *** 563,566 **** --- 563,568 ---- int msglen; va_list ap; + va_start(ap, fmt); + if (!self) {fprintf(stderr,"sys_vgui: lost message: "); vfprintf(stderr,fmt,ap); va_end(ap); return;} if (!self->obuf) { self->obuf = (char *)malloc(GUI_ALLOCCHUNK); *************** *** 570,574 **** if (self->ohead > self->osize - GUI_ALLOCCHUNK/2) sys_trytogetmoreguibuf(self,self->osize + GUI_ALLOCCHUNK); - va_start(ap, fmt); msglen = vsnprintf(self->obuf+self->ohead, self->osize-self->ohead, fmt, ap); va_end(ap); --- 572,575 ---- *************** *** 663,668 ****
int sys_startgui(void) { - t_text *printer0; - t_text *printer1; #ifdef _WIN32 short version = MAKEWORD(2, 0); --- 664,667 ---- *************** *** 680,687 **** fprintf(stderr,"sys_netreceive=%p\n",sys_netreceive); if (!sys_netreceive) return 0; ! printer0 = (t_text *)pd_new3("print left"); ! printer1 = (t_text *)pd_new3("print right"); ! obj_connect(sys_netreceive,0,printer0,0); ! obj_connect(sys_netreceive,1,printer1,0); obj_connect(sys_netreceive,0,manager,0);
--- 679,684 ---- fprintf(stderr,"sys_netreceive=%p\n",sys_netreceive); if (!sys_netreceive) return 0; ! // obj_connect(sys_netreceive,0,(t_text *)pd_new3("print left"),0); ! // obj_connect(sys_netreceive,1,(t_text *)pd_new3("print right"),0); obj_connect(sys_netreceive,0,manager,0);