[PD-cvs] pd/src x_gui.c,1.1.1.1.16.2.2.1,1.1.1.1.16.2.2.2

Mathieu Bouchard matju at users.sourceforge.net
Mon May 3 19:04:34 CEST 2004


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

Modified Files:
      Tag: impd_0_37
	x_gui.c 
Log Message:
bugfix (oops)


Index: x_gui.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/x_gui.c,v
retrieving revision 1.1.1.1.16.2.2.1
retrieving revision 1.1.1.1.16.2.2.2
diff -C2 -d -r1.1.1.1.16.2.2.1 -r1.1.1.1.16.2.2.2
*** x_gui.c	3 May 2004 05:37:15 -0000	1.1.1.1.16.2.2.1
--- x_gui.c	3 May 2004 17:04:30 -0000	1.1.1.1.16.2.2.2
***************
*** 46,68 ****
  {
      char buf[MAXPDSTRING];
!     char namebuf[80];
      t_gfxstub *x;
-     t_symbol *s;
      	/* if any exists with matching key, burn it. */
      for (x = gfxstub_list; x; x = x->x_next)
!     	if (x->x_key == key)
!     	    gfxstub_deleteforkey(key);
      if (cmd) {
! 	if (snprintf(buf, sizeof(buf), cmd, s->s_name) >= sizeof buf) {
  		bug("audio dialog too long");
  		return 0;
  	}
      }
!     x = (t_gfxstub *)pd_new(gfxstub_class);
!     sprintf(namebuf, ".gfxstub%x", (int)x); /* GG int != t_int */
!     s = gensym(namebuf);
!     pd_bind(&x->x_pd, s);
      x->x_owner = owner;
-     x->x_sym = s;
      x->x_key = key;
      x->x_next = gfxstub_list;
--- 46,65 ----
  {
      char buf[MAXPDSTRING];
!     char namebuf[40];
      t_gfxstub *x;
      	/* if any exists with matching key, burn it. */
      for (x = gfxstub_list; x; x = x->x_next)
!     	if (x->x_key==key) gfxstub_deleteforkey(key);
!     x = (t_gfxstub *)pd_new(gfxstub_class);
!     sprintf(namebuf, ".gfxstub%x", (int)x); /* GG int != t_int */
!     x->x_sym = gensym(namebuf);
      if (cmd) {
! 	if (snprintf(buf, sizeof(buf), cmd, x->x_sym->s_name) >= sizeof buf) {
  		bug("audio dialog too long");
  		return 0;
  	}
      }
!     pd_bind(&x->x_pd, x->x_sym);
      x->x_owner = owner;
      x->x_key = key;
      x->x_next = gfxstub_list;





More information about the Pd-cvs mailing list