[PD-cvs] pd/src m_pd.h, 1.4.4.11.2.33.2.50, 1.4.4.11.2.33.2.51 kernel.c, 1.1.2.55, 1.1.2.56 builtins.c, 1.1.2.30, 1.1.2.31 desire.c, 1.1.2.217.2.159, 1.1.2.217.2.160

Mathieu Bouchard matju at users.sourceforge.net
Wed Jul 18 01:55:00 CEST 2007


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

Modified Files:
      Tag: desiredata
	m_pd.h kernel.c builtins.c desire.c 
Log Message:
renaming symsprintf to symprintf


Index: m_pd.h
===================================================================
RCS file: /cvsroot/pure-data/pd/src/m_pd.h,v
retrieving revision 1.4.4.11.2.33.2.50
retrieving revision 1.4.4.11.2.33.2.51
diff -C2 -d -r1.4.4.11.2.33.2.50 -r1.4.4.11.2.33.2.51
*** m_pd.h	14 Jul 2007 21:01:36 -0000	1.4.4.11.2.33.2.50
--- m_pd.h	17 Jul 2007 23:54:55 -0000	1.4.4.11.2.33.2.51
***************
*** 290,294 ****
  EXTERN t_symbol *gensym(const char *s);
  EXTERN t_symbol *gensym2(const char *s, size_t n);
! EXTERN t_symbol *symsprintf(const char *s, ...);
  EXTERN t_gotfn  getfn(t_pd *x, t_symbol *s);
  EXTERN t_gotfn zgetfn(t_pd *x, t_symbol *s);
--- 290,294 ----
  EXTERN t_symbol *gensym(const char *s);
  EXTERN t_symbol *gensym2(const char *s, size_t n);
! EXTERN t_symbol *symprintf(const char *s, ...);
  EXTERN t_gotfn  getfn(t_pd *x, t_symbol *s);
  EXTERN t_gotfn zgetfn(t_pd *x, t_symbol *s);

Index: kernel.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/kernel.c,v
retrieving revision 1.1.2.55
retrieving revision 1.1.2.56
diff -C2 -d -r1.1.2.55 -r1.1.2.56
*** kernel.c	15 Jul 2007 05:37:38 -0000	1.1.2.55
--- kernel.c	17 Jul 2007 23:54:55 -0000	1.1.2.56
***************
*** 1294,1298 ****
  t_symbol *gensym( const char *s) {return dogensym(s,strlen(s),0);}
  t_symbol *gensym2(const char *s, size_t n) {return dogensym(s,n,0);}
! extern "C" t_symbol *symsprintf(const char *s, ...) {
      char *buf;
      va_list args;
--- 1294,1298 ----
  t_symbol *gensym( const char *s) {return dogensym(s,strlen(s),0);}
  t_symbol *gensym2(const char *s, size_t n) {return dogensym(s,n,0);}
! extern "C" t_symbol *symprintf(const char *s, ...) {
      char *buf;
      va_list args;

Index: builtins.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/builtins.c,v
retrieving revision 1.1.2.30
retrieving revision 1.1.2.31
diff -C2 -d -r1.1.2.30 -r1.1.2.31
*** builtins.c	15 Jul 2007 06:02:45 -0000	1.1.2.30
--- builtins.c	17 Jul 2007 23:54:55 -0000	1.1.2.31
***************
*** 103,107 ****
  static void *openpanel_new(t_symbol *s) {
      t_openpanel *x = (t_openpanel *)pd_new(openpanel_class);
!     x->s = symsprintf("d%lx",(t_int)x);
      x->path = s;
      pd_bind(x,x->s);
--- 103,107 ----
  static void *openpanel_new(t_symbol *s) {
      t_openpanel *x = (t_openpanel *)pd_new(openpanel_class);
!     x->s = symprintf("d%lx",(t_int)x);
      x->path = s;
      pd_bind(x,x->s);
***************
*** 134,138 ****
  static void *savepanel_new(t_symbol*s) {
      t_savepanel *x = (t_savepanel *)pd_new(savepanel_class);
!     x->s = symsprintf("d%lx",(t_int)x);
      x->path=s;
      pd_bind(x, x->s);
--- 134,138 ----
  static void *savepanel_new(t_symbol*s) {
      t_savepanel *x = (t_savepanel *)pd_new(savepanel_class);
!     x->s = symprintf("d%lx",(t_int)x);
      x->path=s;
      pd_bind(x, x->s);
***************
*** 1899,1904 ****
  
  /* doesn't do any typechecking or even counting the % signs properly */
! static void makefilename_float(t_makefilename *x, t_floatarg f) {outlet_symbol(x->outlet,symsprintf(x->format->name,(int)f));}
! static void makefilename_symbol(t_makefilename *x, t_symbol *s) {outlet_symbol(x->outlet,symsprintf(x->format->name,s->name));}
  static void makefilename_set(t_makefilename *x, t_symbol *s) {x->format = s;}
  
--- 1899,1904 ----
  
  /* doesn't do any typechecking or even counting the % signs properly */
! static void makefilename_float(t_makefilename *x, t_floatarg f) {outlet_symbol(x->outlet,symprintf(x->format->name,(int)f));}
! static void makefilename_symbol(t_makefilename *x, t_symbol *s) {outlet_symbol(x->outlet,symprintf(x->format->name,s->name));}
  static void makefilename_set(t_makefilename *x, t_symbol *s) {x->format = s;}
  

Index: desire.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v
retrieving revision 1.1.2.217.2.159
retrieving revision 1.1.2.217.2.160
diff -C2 -d -r1.1.2.217.2.159 -r1.1.2.217.2.160
*** desire.c	17 Jul 2007 22:57:13 -0000	1.1.2.217.2.159
--- desire.c	17 Jul 2007 23:54:56 -0000	1.1.2.217.2.160
***************
*** 581,585 ****
      t_canvas *x = canvas_new2();
      if (!*sym->name) {
!         sym = symsprintf("graph%d", ++gcount);
          menu = 1;
      } else if (!strncmp(sym->name,"graph",5)) {
--- 581,585 ----
      t_canvas *x = canvas_new2();
      if (!*sym->name) {
!         sym = symprintf("graph%d", ++gcount);
          menu = 1;
      } else if (!strncmp(sym->name,"graph",5)) {
***************
*** 655,659 ****
  }
  
! t_symbol *canvas_makebindsym(t_symbol *s) {return symsprintf("pd-%s",s->name);}
  
  static void canvas_vis(t_canvas *x, t_floatarg f);
--- 655,659 ----
  }
  
! t_symbol *canvas_makebindsym(t_symbol *s) {return symprintf("pd-%s",s->name);}
  
  static void canvas_vis(t_canvas *x, t_floatarg f);
***************
*** 858,862 ****
      t_atom a[9];
      t_canvas *z = canvas_getcurrent();
!     if (s == &s_) s = symsprintf("table%d", tabcount++);
      if (f <= 1) f = 100;
      SETFLOAT(a, 0);
--- 858,862 ----
      t_atom a[9];
      t_canvas *z = canvas_getcurrent();
!     if (s == &s_) s = symprintf("table%d", tabcount++);
      if (f <= 1) f = 100;
      SETFLOAT(a, 0);
***************
*** 1284,1288 ****
  static t_symbol *sharptodollar(t_symbol *s) {
      if (*s->name != '#') return s;
!     return symsprintf("$%s",s->name+1);
  }
  
--- 1284,1288 ----
  static t_symbol *sharptodollar(t_symbol *s) {
      if (*s->name != '#') return s;
!     return symprintf("$%s",s->name+1);
  }
  
***************
*** 4050,4054 ****
          fd->min = fd->max = fd->scrmin = fd->scrmax = fd->quantum = 0;
      } else {
!         fd->varsym = symsprintf("%.*s",s1-s->name,s->name);
          t_int got = sscanf(s1, "(%f:%f)(%f:%f)(%f)", &fd->min, &fd->max, &fd->scrmin, &fd->scrmax, &fd->quantum);
          if (got < 2) goto fail;
--- 4050,4054 ----
          fd->min = fd->max = fd->scrmin = fd->scrmax = fd->quantum = 0;
      } else {
!         fd->varsym = symprintf("%.*s",s1-s->name,s->name);
          t_int got = sscanf(s1, "(%f:%f)(%f:%f)(%f)", &fd->min, &fd->max, &fd->scrmin, &fd->scrmax, &fd->quantum);
          if (got < 2) goto fail;
***************
*** 6218,6222 ****
  }
  
! t_symbol *pd_makebindsym(t_pd *x) {return symsprintf(".x%lx",(long)x);}
  
  t_iemgui *iemgui_new(t_class *qlass) {
--- 6218,6222 ----
  }
  
! t_symbol *pd_makebindsym(t_pd *x) {return symprintf(".x%lx",(long)x);}
  
  t_iemgui *iemgui_new(t_class *qlass) {





More information about the Pd-cvs mailing list