[PD-cvs] pd/src desire.c,1.1.2.217.2.95,1.1.2.217.2.96

Mathieu Bouchard matju at users.sourceforge.net
Thu Dec 28 06:24:09 CET 2006


Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20520

Modified Files:
      Tag: desiredata
	desire.c 
Log Message:
stop accessing binbuf directly.


Index: desire.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v
retrieving revision 1.1.2.217.2.95
retrieving revision 1.1.2.217.2.96
diff -C2 -d -r1.1.2.217.2.95 -r1.1.2.217.2.96
*** desire.c	28 Dec 2006 00:11:22 -0000	1.1.2.217.2.95
--- desire.c	28 Dec 2006 05:24:05 -0000	1.1.2.217.2.96
***************
*** 86,94 ****
  t_symbol *s_empty, *s_pd, *s_Pd;
  
- struct _binbuf {
-     int b_n;
-     t_atom *b_vec;
- };
- 
  //--------------------------------------------------------------------------
  // t_appendix: an extension to t_gobj made by matju so that
--- 86,89 ----
***************
*** 2209,2213 ****
          char *buf; int bufn;
  	t_binbuf *bb = ((t_text *)y)->binbuf;
! 	if (bb->b_vec) {
  	    binbuf_gettext(bb,&buf,&bufn);
  	    printf("canvas_add %p %p [%.*s]\n",x,y,bufn,buf);
--- 2204,2208 ----
          char *buf; int bufn;
  	t_binbuf *bb = ((t_text *)y)->binbuf;
! 	if (binbuf_getvec(bb)) {
  	    binbuf_gettext(bb,&buf,&bufn);
  	    printf("canvas_add %p %p [%.*s]\n",x,y,bufn,buf);
***************
*** 7560,7564 ****
  	t_binbuf *b = binbuf_new();
  	binbuf_text(b,(char *)s,strlen(s));
! 	t_pd *self = pd_new2(b->b_n,b->b_vec);
  	binbuf_free(b);
  	return self;
--- 7555,7559 ----
  	t_binbuf *b = binbuf_new();
  	binbuf_text(b,(char *)s,strlen(s));
! 	t_pd *self = pd_new2(binbuf_getnatom(b),binbuf_getvec(b));
  	binbuf_free(b);
  	return self;





More information about the Pd-cvs mailing list