[PD-cvs] pd/src g_rtext.c, 1.4.8.4, 1.4.8.5 m_binbuf.c, 1.4.4.1.2.1, 1.4.4.1.2.2 m_atom.c, 1.2, 1.2.8.1 m_class.c, 1.3.4.7.2.8, 1.3.4.7.2.9

Mathieu Bouchard matju at users.sourceforge.net
Sun Nov 27 09:10:21 CET 2005


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

Modified Files:
      Tag: devel_0_39
	g_rtext.c m_binbuf.c m_atom.c m_class.c 
Log Message:
fixed warnings


Index: m_class.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/m_class.c,v
retrieving revision 1.3.4.7.2.8
retrieving revision 1.3.4.7.2.9
diff -C2 -d -r1.3.4.7.2.8 -r1.3.4.7.2.9
*** m_class.c	18 Nov 2005 23:20:16 -0000	1.3.4.7.2.8
--- m_class.c	27 Nov 2005 08:10:18 -0000	1.3.4.7.2.9
***************
*** 558,562 ****
  	sym1 = symhash + (hash2 & (HASHSIZE-1));
  #endif
!     while (sym2 = *sym1)
      {
          if (!strcmp(sym2->s_name, s)) return(sym2);
--- 558,562 ----
  	sym1 = symhash + (hash2 & (HASHSIZE-1));
  #endif
!     while ((sym2 = *sym1))
      {
          if (!strcmp(sym2->s_name, s)) return(sym2);
***************
*** 601,605 ****
  }
  
! static t_symbol *addfileextent(t_symbol *s)
  {
      char namebuf[MAXPDSTRING], *str = s->s_name;
--- 601,605 ----
  }
  
! /*static t_symbol *addfileextent(t_symbol *s)
  {
      char namebuf[MAXPDSTRING], *str = s->s_name;
***************
*** 609,613 ****
      strcpy(namebuf+ln, ".pd");
      return (gensym(namebuf));
! }
  
  static int tryingalready;
--- 609,613 ----
      strcpy(namebuf+ln, ".pd");
      return (gensym(namebuf));
! }*/
  
  static int tryingalready;
***************
*** 721,725 ****
  void pd_typedmess(t_pd *x, t_symbol *s, int argc, t_atom *argv)
  {
-     t_method *f;
      t_class *c = *x;
      t_methodentry *m;
--- 721,724 ----
***************
*** 773,777 ****
          if (argc > MAXPDARG) argc = MAXPDARG;
          if (x != &pd_objectmaker) *(ap++) = (t_int)x, narg++;
!         while (wanttype = *wp++)
          {
              switch (wanttype)
--- 772,776 ----
          if (argc > MAXPDARG) argc = MAXPDARG;
          if (x != &pd_objectmaker) *(ap++) = (t_int)x, narg++;
!         while ((wanttype = *wp++))
          {
              switch (wanttype)

Index: m_binbuf.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/m_binbuf.c,v
retrieving revision 1.4.4.1.2.1
retrieving revision 1.4.4.1.2.2
diff -C2 -d -r1.4.4.1.2.1 -r1.4.4.1.2.2
*** m_binbuf.c	28 Oct 2005 12:18:23 -0000	1.4.4.1.2.1
--- m_binbuf.c	27 Nov 2005 08:10:18 -0000	1.4.4.1.2.2
***************
*** 78,82 ****
      while (1)
      {
-         int type;
              /* skip leading space */
          while ((textp != etext) && (*textp == ' ' || *textp == '\n'
--- 78,81 ----
***************
*** 236,240 ****
      if (length && buf[length-1] == ' ')
      {
!         if (newbuf = (char *)t_resizebytes(buf, length, length-1))
          {
              buf = newbuf;
--- 235,240 ----
      if (length && buf[length-1] == ' ')
      {
!         newbuf = (char *)t_resizebytes(buf, length, length-1);
! 	if (newbuf)
          {
              buf = newbuf;
***************
*** 253,259 ****
      int newsize = x->b_n + argc, i;
      t_atom *ap;
!     if (ap = (t_atom *)t_resizebytes(x->b_vec, x->b_n * sizeof(*x->b_vec),
!         newsize * sizeof(*x->b_vec)))
!             x->b_vec = ap;
      else
      {
--- 253,259 ----
      int newsize = x->b_n + argc, i;
      t_atom *ap;
!     ap = (t_atom *)t_resizebytes(x->b_vec, x->b_n * sizeof(*x->b_vec),
!         newsize * sizeof(*x->b_vec));
!     if (ap) x->b_vec = ap;
      else
      {
***************
*** 363,369 ****
      int newsize = x->b_n + argc, i;
      t_atom *ap;
!     if (ap = (t_atom *)t_resizebytes(x->b_vec, x->b_n * sizeof(*x->b_vec),
!         newsize * sizeof(*x->b_vec)))
!             x->b_vec = ap;
      else
      {
--- 363,369 ----
      int newsize = x->b_n + argc, i;
      t_atom *ap;
!     ap = (t_atom *)t_resizebytes(x->b_vec, x->b_n * sizeof(*x->b_vec),
!         newsize * sizeof(*x->b_vec));
!     if (ap) x->b_vec = ap;
      else
      {

Index: g_rtext.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/g_rtext.c,v
retrieving revision 1.4.8.4
retrieving revision 1.4.8.5
diff -C2 -d -r1.4.8.4 -r1.4.8.5
*** g_rtext.c	28 Oct 2005 12:53:07 -0000	1.4.8.4
--- g_rtext.c	27 Nov 2005 08:10:18 -0000	1.4.8.5
***************
*** 48,52 ****
  {
      t_rtext *x = (t_rtext *)getbytes(sizeof *x);
-     int w = 0, h = 0, indx;
      x->x_height = -1;
      x->x_text = who;
--- 48,51 ----
***************
*** 302,306 ****
              char *decimal = 0, *nextchar, *ebuf = x->x_buf + bufsize,
                  *s1, *s2;
-             int ndecimals;
              for (decimal = x->x_buf; decimal < ebuf; decimal++)
                  if (*decimal == '.')
--- 301,304 ----
***************
*** 414,418 ****
  {
      int w = 0, h = 0, indx, i, newsize, ndel;
-     char *s1, *s2;
      if (keynum)
      {
--- 412,415 ----

Index: m_atom.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/m_atom.c,v
retrieving revision 1.2
retrieving revision 1.2.8.1
diff -C2 -d -r1.2 -r1.2.8.1
*** m_atom.c	6 Sep 2004 20:20:35 -0000	1.2
--- m_atom.c	27 Nov 2005 08:10:18 -0000	1.2.8.1
***************
*** 24,28 ****
  t_symbol *atom_getsymbol(t_atom *a)  /* LATER think about this more carefully */
  {
-     char buf[30];
      if (a->a_type == A_SYMBOL) return (a->a_w.w_symbol);
      else return (&s_float);
--- 24,27 ----





More information about the Pd-cvs mailing list