[PD-cvs] externals/zexy/src dfreq~.c, 1.2, 1.3 index.c, 1.11, 1.12 limiter~.c, 1.3, 1.4 lpt.c, 1.10, 1.11 makesymbol.c, 1.4, 1.5 pdf~.c, 1.2, 1.3 prime.c, 1.3, 1.4 quantize~.c, 1.2, 1.3 sfplay.c, 1.5, 1.6 sfrecord.c, 1.5, 1.6 sigzero~.c, 1.2, 1.3 wrap.c, 1.3, 1.4 zexy.c, 1.11, 1.12
IOhannes m zmölnig
zmoelnig at users.sourceforge.net
Tue Jan 24 22:17:25 CET 2006
Update of /cvsroot/pure-data/externals/zexy/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22845
Modified Files:
dfreq~.c index.c limiter~.c lpt.c makesymbol.c pdf~.c prime.c
quantize~.c sfplay.c sfrecord.c sigzero~.c wrap.c zexy.c
Log Message:
made all possible (well, most) functions "static" to not interfere with functions of the same name of other libraries
Index: sigzero~.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/sigzero~.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** sigzero~.c 19 May 2005 09:42:55 -0000 1.2
--- sigzero~.c 24 Jan 2006 21:17:23 -0000 1.3
***************
*** 77,81 ****
}
! static void helper(void)
{
post("\n%c sigzero~-object :: for detecting whether a signal is currently zero or not", HEARTSYMBOL);
--- 77,81 ----
}
! static void sigzero_tilde_helper(void)
{
post("\n%c sigzero~-object :: for detecting whether a signal is currently zero or not", HEARTSYMBOL);
***************
*** 106,110 ****
class_addmethod(sigzero_class, (t_method)sigzero_dsp, gensym("dsp"), 0);
! class_addmethod(sigzero_class, (t_method)helper, gensym("help"), 0);
class_sethelpsymbol(sigzero_class, gensym("zexy/sigzero~"));
zexy_register("sigzero~");
--- 106,110 ----
class_addmethod(sigzero_class, (t_method)sigzero_dsp, gensym("dsp"), 0);
! class_addmethod(sigzero_class, (t_method)sigzero_tilde_helper, gensym("help"), 0);
class_sethelpsymbol(sigzero_class, gensym("zexy/sigzero~"));
zexy_register("sigzero~");
Index: makesymbol.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/makesymbol.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** makesymbol.c 14 Dec 2005 19:00:57 -0000 1.4
--- makesymbol.c 24 Jan 2006 21:17:23 -0000 1.5
***************
*** 119,123 ****
! static void helper(t_makesymbol *x)
{
post("\n%c makesymbol :: create a formatted symbol", HEARTSYMBOL);
--- 119,123 ----
! static void makesymbol_helper(t_makesymbol *x)
{
post("\n%c makesymbol :: create a formatted symbol", HEARTSYMBOL);
***************
*** 141,145 ****
class_addmethod(makesymbol_class, (t_method)reset_mask, gensym("sym1"), A_SYMBOL, 0);
! class_addmethod(makesymbol_class, (t_method)helper, gensym("help"), 0);
class_sethelpsymbol(makesymbol_class, gensym("zexy/makesymbol"));
zexy_register("makesymbol");
--- 141,145 ----
class_addmethod(makesymbol_class, (t_method)reset_mask, gensym("sym1"), A_SYMBOL, 0);
! class_addmethod(makesymbol_class, (t_method)makesymbol_helper, gensym("help"), 0);
class_sethelpsymbol(makesymbol_class, gensym("zexy/makesymbol"));
zexy_register("makesymbol");
Index: sfplay.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/sfplay.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** sfplay.c 9 Jun 2005 12:24:57 -0000 1.5
--- sfplay.c 24 Jan 2006 21:17:23 -0000 1.6
***************
*** 136,140 ****
! void helper(t_sfplay *x)
{
post("\nsfplay :: a soundfile-player (c) winfried ritsch 1999");
--- 136,140 ----
! static void sfplay_helper(t_sfplay *x)
{
post("\nsfplay :: a soundfile-player (c) winfried ritsch 1999");
***************
*** 158,162 ****
non buffered ones open read close */
! void sfplay_open(t_sfplay *x,t_symbol *filename,t_symbol *endian)
{
--- 158,162 ----
non buffered ones open read close */
! static void sfplay_open(t_sfplay *x,t_symbol *filename,t_symbol *endian)
{
***************
*** 303,307 ****
/* restart with bang */
! void sfplay_bang(t_sfplay* x)
{
x->skip = 1;
--- 303,307 ----
/* restart with bang */
! static void sfplay_bang(t_sfplay* x)
{
x->skip = 1;
***************
*** 649,653 ****
class_addmethod(sfplay_class, (t_method)sfplay_dsp, gensym("dsp"), 0);
! class_addmethod(sfplay_class, (t_method)helper, gensym("help"), A_NULL);
class_sethelpsymbol(sfplay_class, gensym("zexy/sf-play_record"));
--- 649,653 ----
class_addmethod(sfplay_class, (t_method)sfplay_dsp, gensym("dsp"), 0);
! class_addmethod(sfplay_class, (t_method)sfplay_helper, gensym("help"), A_NULL);
class_sethelpsymbol(sfplay_class, gensym("zexy/sf-play_record"));
Index: limiter~.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/limiter~.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** limiter~.c 9 Jun 2005 18:56:30 -0000 1.3
--- limiter~.c 24 Jan 2006 21:17:23 -0000 1.4
***************
*** 316,320 ****
}
! static void helper(t_limiter *x)
{
post("\n\n%c %d-channel limiter-object: mode %d", HEARTSYMBOL, x->number_of_inlets, x->mode);
--- 316,320 ----
}
! static void limiter_tilde_helper(t_limiter *x)
{
post("\n\n%c %d-channel limiter-object: mode %d", HEARTSYMBOL, x->number_of_inlets, x->mode);
***************
*** 570,591 ****
! #if 0
! static t_int *route_through(t_int *w)
! {
! t_float *in = (t_float *)w[1];
! t_float *out = (t_float *)w[2];
! int n = (int)w[3];
!
! while(n--)
! {
! *out++ = *in;
! *in++ = 0;
! }
!
! return (w+4);
! }
! #endif
!
! void limiter_dsp(t_limiter *x, t_signal **sp)
{
int i = 0;
--- 570,574 ----
! static void limiter_dsp(t_limiter *x, t_signal **sp)
{
int i = 0;
***************
*** 612,616 ****
// finally do the creation - things
! void *limiter_new(t_symbol *s, int argc, t_atom *argv)
{
t_limiter *x = (t_limiter *)pd_new(limiter_class);
--- 595,599 ----
// finally do the creation - things
! static void *limiter_new(t_symbol *s, int argc, t_atom *argv)
{
t_limiter *x = (t_limiter *)pd_new(limiter_class);
***************
*** 664,668 ****
}
! void limiter_free(t_limiter *x)
{
int i=0;
--- 647,651 ----
}
! static void limiter_free(t_limiter *x)
{
int i=0;
***************
*** 692,696 ****
class_addmethod(limiter_class, (t_method)limiter_dsp, gensym("dsp"), 0);
! class_addmethod(limiter_class, (t_method)helper, gensym("help"), 0);
class_addmethod(limiter_class, (t_method)status, gensym("print"), 0);
class_sethelpsymbol(limiter_class, gensym("zexy/limiter~"));
--- 675,679 ----
class_addmethod(limiter_class, (t_method)limiter_dsp, gensym("dsp"), 0);
! class_addmethod(limiter_class, (t_method)limiter_tilde_helper, gensym("help"), 0);
class_addmethod(limiter_class, (t_method)status, gensym("print"), 0);
class_sethelpsymbol(limiter_class, gensym("zexy/limiter~"));
Index: sfrecord.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/sfrecord.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** sfrecord.c 9 Jun 2005 12:24:57 -0000 1.5
--- sfrecord.c 24 Jan 2006 21:17:23 -0000 1.6
***************
*** 120,124 ****
non buffered ones open read close */
! void sfrecord_open(t_sfrecord *x,t_symbol *filename,t_symbol *endian)
{
--- 120,124 ----
non buffered ones open read close */
! static void sfrecord_open(t_sfrecord *x,t_symbol *filename,t_symbol *endian)
{
***************
*** 220,224 ****
/* say what state we´re in */
! void sfrecord_bang(t_sfrecord* x)
{
if (x->state == SFRECORD_WRITE) state_out(x, 1); else state_out(x, 0);
--- 220,224 ----
/* say what state we´re in */
! static void sfrecord_bang(t_sfrecord* x)
{
if (x->state == SFRECORD_WRITE) state_out(x, 1); else state_out(x, 0);
***************
*** 558,562 ****
! static void helper(void)
{
post("\nsfplay :: a raw-data soundfile-recorder");
--- 558,562 ----
! static void sfrecord_helper(void)
{
post("\nsfplay :: a raw-data soundfile-recorder");
***************
*** 598,602 ****
/* some help */
! class_addmethod(sfrecord_class, (t_method)helper, gensym("help"), A_NULL);
class_sethelpsymbol(sfrecord_class, gensym("zexy/sf-play_record"));
zexy_register("sfrecord");
--- 598,602 ----
/* some help */
! class_addmethod(sfrecord_class, (t_method)sfrecord_helper, gensym("help"), A_NULL);
class_sethelpsymbol(sfrecord_class, gensym("zexy/sf-play_record"));
zexy_register("sfrecord");
Index: dfreq~.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/dfreq~.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** dfreq~.c 19 May 2005 09:42:55 -0000 1.2
--- dfreq~.c 24 Jan 2006 21:17:23 -0000 1.3
***************
*** 92,96 ****
}
! static void helper(void)
{
post("\n%c dfreq~\t :: pitch-detector that counts zero-crossings", HEARTSYMBOL);
--- 92,96 ----
}
! static void dfreq_tilde_helper(void)
{
post("\n%c dfreq~\t :: pitch-detector that counts zero-crossings", HEARTSYMBOL);
***************
*** 107,111 ****
class_addmethod(dfreq_class, (t_method)dfreq_dsp, gensym("dsp"), 0);
! class_addmethod(dfreq_class, (t_method)helper, gensym("help"), 0);
class_sethelpsymbol(dfreq_class, gensym("zexy/dfreq~"));
zexy_register("dfreq~");
--- 107,111 ----
class_addmethod(dfreq_class, (t_method)dfreq_dsp, gensym("dsp"), 0);
! class_addmethod(dfreq_class, (t_method)dfreq_tilde_helper, gensym("help"), 0);
class_sethelpsymbol(dfreq_class, gensym("zexy/dfreq~"));
zexy_register("dfreq~");
Index: wrap.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/wrap.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** wrap.c 9 Jun 2005 18:56:30 -0000 1.3
--- wrap.c 24 Jan 2006 21:17:23 -0000 1.4
***************
*** 27,31 ****
! void wrap_float(t_wrap *x, t_float f)
{
if (x->f_lower==x->f_upper)
--- 27,31 ----
! static void wrap_float(t_wrap *x, t_float f)
{
if (x->f_lower==x->f_upper)
***************
*** 38,42 ****
}
}
! void wrap_set(t_wrap *x, t_symbol *s, int argc, t_atom *argv){
t_float f1, f2;
switch (argc){
--- 38,42 ----
}
}
! static void wrap_set(t_wrap *x, t_symbol *s, int argc, t_atom *argv){
t_float f1, f2;
switch (argc){
***************
*** 57,61 ****
}
! void *wrap_new(t_symbol *s, int argc, t_atom*argv)
{
t_wrap *x = (t_wrap *)pd_new(wrap_class);
--- 57,61 ----
}
! static void *wrap_new(t_symbol *s, int argc, t_atom*argv)
{
t_wrap *x = (t_wrap *)pd_new(wrap_class);
***************
*** 65,69 ****
inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("float"), gensym("set"));
! return (void *)x;
}
--- 65,69 ----
inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("float"), gensym("set"));
! return (x);
}
Index: zexy.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/zexy.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** zexy.c 23 Jan 2006 17:56:42 -0000 1.11
--- zexy.c 24 Jan 2006 21:17:23 -0000 1.12
***************
*** 119,123 ****
{
t_zexy *x = (t_zexy *)pd_new(zexy_class);
! return (void *)x;
}
--- 119,123 ----
{
t_zexy *x = (t_zexy *)pd_new(zexy_class);
! return (x);
}
Index: prime.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/prime.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** prime.c 9 Jun 2005 18:56:30 -0000 1.3
--- prime.c 24 Jan 2006 21:17:23 -0000 1.4
***************
*** 27,31 ****
! void prime_float(t_prime *x, t_float f)
{
--- 27,31 ----
! static void prime_float(t_prime *x, t_float f)
{
***************
*** 55,59 ****
}
! void *prime_new(void)
{
t_prime *x = (t_prime *)pd_new(prime_class);
--- 55,59 ----
}
! static void *prime_new(void)
{
t_prime *x = (t_prime *)pd_new(prime_class);
***************
*** 61,65 ****
outlet_new(&x->x_obj, &s_float);
! return (void *)x;
}
--- 61,65 ----
outlet_new(&x->x_obj, &s_float);
! return (x);
}
Index: lpt.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/lpt.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** lpt.c 23 Jan 2006 18:11:20 -0000 1.10
--- lpt.c 24 Jan 2006 21:17:23 -0000 1.11
***************
*** 281,285 ****
! static void helper(t_lpt *x)
{
post("\n%c lpt :: direct access to the parallel port", HEARTSYMBOL);
--- 281,285 ----
! static void lpt_helper(t_lpt *x)
{
post("\n%c lpt :: direct access to the parallel port", HEARTSYMBOL);
***************
*** 300,304 ****
class_addbang(lpt_class, (t_method)lpt_bang);
! class_addmethod(lpt_class, (t_method)helper, gensym("help"), 0);
class_sethelpsymbol(lpt_class, gensym("zexy/lpt"));
zexy_register("lpt");
--- 300,304 ----
class_addbang(lpt_class, (t_method)lpt_bang);
! class_addmethod(lpt_class, (t_method)lpt_helper, gensym("help"), 0);
class_sethelpsymbol(lpt_class, gensym("zexy/lpt"));
zexy_register("lpt");
Index: quantize~.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/quantize~.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** quantize~.c 19 May 2005 09:42:55 -0000 1.2
--- quantize~.c 24 Jan 2006 21:17:23 -0000 1.3
***************
*** 74,78 ****
}
! static void helper(t_quantize *x)
{
post("%c quantize~-object\t:: used for quantizing signals by various degrees", HEARTSYMBOL);
--- 74,78 ----
}
! static void quantize_tilde_helper(t_quantize *x)
{
post("%c quantize~-object\t:: used for quantizing signals by various degrees", HEARTSYMBOL);
***************
*** 108,112 ****
class_addmethod(quantize_class, (t_method)quantize_16bit, gensym("16bit"), 0);
! class_addmethod(quantize_class, (t_method)helper, gensym("help"), 0);
class_sethelpsymbol(quantize_class, gensym("zexy/quantize~"));
zexy_register("quantize~");
--- 108,112 ----
class_addmethod(quantize_class, (t_method)quantize_16bit, gensym("16bit"), 0);
! class_addmethod(quantize_class, (t_method)quantize_tilde_helper, gensym("help"), 0);
class_sethelpsymbol(quantize_class, gensym("zexy/quantize~"));
zexy_register("quantize~");
Index: index.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/index.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** index.c 23 Jan 2006 17:56:42 -0000 1.11
--- index.c 24 Jan 2006 21:17:23 -0000 1.12
***************
*** 53,57 ****
/************************************
! * helpers
*/
--- 53,57 ----
/************************************
! * index_helpers
*/
***************
*** 321,325 ****
! static void helper(t_index *x)
{
post("\n%c index :: index symbols to indices", HEARTSYMBOL);
--- 321,325 ----
! static void index_helper(t_index *x)
{
post("\n%c index :: index symbols to indices", HEARTSYMBOL);
***************
*** 365,369 ****
class_addmethod(index_class, (t_method)index_dump, gensym("dump"), 0);
! class_addmethod(index_class, (t_method)helper, gensym("help"), 0);
class_sethelpsymbol(index_class, gensym("zexy/index"));
zexy_register("index");
--- 365,369 ----
class_addmethod(index_class, (t_method)index_dump, gensym("dump"), 0);
! class_addmethod(index_class, (t_method)index_helper, gensym("help"), 0);
class_sethelpsymbol(index_class, gensym("zexy/index"));
zexy_register("index");
Index: pdf~.c
===================================================================
RCS file: /cvsroot/pure-data/externals/zexy/src/pdf~.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** pdf~.c 19 May 2005 09:42:55 -0000 1.2
--- pdf~.c 24 Jan 2006 21:17:23 -0000 1.3
***************
*** 113,117 ****
}
! static void helper(void)
{
post("\n%c pdf~\t:: get the probability density function of a signal (-1.0 to +1.0)", HEARTSYMBOL);
--- 113,117 ----
}
! static void pdf_tilde_helper(void)
{
post("\n%c pdf~\t:: get the probability density function of a signal (-1.0 to +1.0)", HEARTSYMBOL);
***************
*** 135,139 ****
class_addfloat(pdf_class, pdf_float);
! class_addmethod(pdf_class, (t_method)helper, gensym("help"), 0);
class_sethelpsymbol(pdf_class, gensym("zexy/pdf~"));
zexy_register("pdf~");
--- 135,139 ----
class_addfloat(pdf_class, pdf_float);
! class_addmethod(pdf_class, (t_method)pdf_tilde_helper, gensym("help"), 0);
class_sethelpsymbol(pdf_class, gensym("zexy/pdf~"));
zexy_register("pdf~");
More information about the Pd-cvs
mailing list