Update of /cvsroot/pure-data/externals/zexy/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5268
Modified Files: index.c list2symbol.c operating_system.c sgn~.c sigzero~.c Log Message: reduced warnings by properly declaring functions and avoidance of variable shadowing
Index: sigzero~.c =================================================================== RCS file: /cvsroot/pure-data/externals/zexy/src/sigzero~.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** sigzero~.c 5 Apr 2006 11:27:26 -0000 1.5 --- sigzero~.c 12 Nov 2006 12:55:01 -0000 1.6 *************** *** 88,92 **** }
! static void *sigzero_new() { t_sigzero *x = (t_sigzero *)pd_new(sigzero_class); --- 88,92 ---- }
! static void *sigzero_new(void) { t_sigzero *x = (t_sigzero *)pd_new(sigzero_class);
Index: operating_system.c =================================================================== RCS file: /cvsroot/pure-data/externals/zexy/src/operating_system.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** operating_system.c 19 May 2006 14:04:32 -0000 1.6 --- operating_system.c 12 Nov 2006 12:55:01 -0000 1.7 *************** *** 50,54 **** }
! static void *operating_system_new() { t_operating_system *x = (t_operating_system *)pd_new(operating_system_class); --- 50,54 ---- }
! static void *operating_system_new(void) { t_operating_system *x = (t_operating_system *)pd_new(operating_system_class);
Index: sgn~.c =================================================================== RCS file: /cvsroot/pure-data/externals/zexy/src/sgn~.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** sgn~.c 5 Apr 2006 11:27:26 -0000 1.5 --- sgn~.c 12 Nov 2006 12:55:01 -0000 1.6 *************** *** 135,139 **** }
! static void *sgnTilde_new() { t_sgnTilde *x = (t_sgnTilde *)pd_new(sgnTilde_class); --- 135,139 ---- }
! static void *sgnTilde_new(void) { t_sgnTilde *x = (t_sgnTilde *)pd_new(sgnTilde_class);
Index: list2symbol.c =================================================================== RCS file: /cvsroot/pure-data/externals/zexy/src/list2symbol.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** list2symbol.c 28 Jun 2006 15:53:01 -0000 1.9 --- list2symbol.c 12 Nov 2006 12:55:01 -0000 1.10 *************** *** 63,74 ****
while(i--){ ! int len=0; if(A_SYMBOL==argv->a_type){ ! len=strlen(argv->a_w.w_symbol->s_name); } else { atom_string(argv, buffer, MAXPDSTRING); ! len=strlen(buffer); } ! length+=len; argv++; } --- 63,74 ----
while(i--){ ! int len2=0; if(A_SYMBOL==argv->a_type){ ! len2=strlen(argv->a_w.w_symbol->s_name); } else { atom_string(argv, buffer, MAXPDSTRING); ! len2=strlen(buffer); } ! length+=len2; argv++; }
Index: index.c =================================================================== RCS file: /cvsroot/pure-data/externals/zexy/src/index.c,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** index.c 5 Apr 2006 11:27:26 -0000 1.15 --- index.c 12 Nov 2006 12:55:01 -0000 1.16 *************** *** 170,174 **** static void index_delete(t_index *x, t_symbol *s, int argc, t_atom*argv) { ! int index=-1; ZEXY_USEVAR(s); if(argc!=1){ --- 170,174 ---- static void index_delete(t_index *x, t_symbol *s, int argc, t_atom*argv) { ! int idx=-1; ZEXY_USEVAR(s); if(argc!=1){ *************** *** 177,183 **** } else { if(argv->a_type==A_FLOAT){ ! index=atom_getint(argv)-1; } else if (argv->a_type==A_SYMBOL){ ! index=find_item(atom_getsymbol(argv),x->names, x->maxentries); } else { error("index :: delete what ?"); --- 177,183 ---- } else { if(argv->a_type==A_FLOAT){ ! idx=atom_getint(argv)-1; } else if (argv->a_type==A_SYMBOL){ ! idx=find_item(atom_getsymbol(argv),x->names, x->maxentries); } else { error("index :: delete what ?"); *************** *** 186,191 **** }
! if ( index >= 0 && index < x->maxentries) { ! x->names[index]=0; x->entries--; outlet_float(x->x_obj.ob_outlet, 0.0); --- 186,191 ---- }
! if ( idx >= 0 && idx < x->maxentries) { ! x->names[idx]=0; x->entries--; outlet_float(x->x_obj.ob_outlet, 0.0);