From de86cb7754d773a2dba3ae92eb0dfc4cb9d77cbd Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 29 Aug 2003 13:53:51 +0000 Subject: imported latest version 1.4 direct from Olaf svn path=/trunk/externals/maxlib/; revision=898 --- src/cauchy.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/cauchy.c') diff --git a/src/cauchy.c b/src/cauchy.c index 82592e3..7d85321 100644 --- a/src/cauchy.c +++ b/src/cauchy.c @@ -69,12 +69,21 @@ static void rand_cauchy_bang(t_rand_cauchy *x) outlet_float(x->x_obj.ob_outlet, x->x_alpha*tan(u)); } +#ifndef MAXLIB void cauchy_setup(void) { rand_cauchy_class = class_new(gensym("cauchy"), (t_newmethod)rand_cauchy_new, 0, sizeof(t_rand_cauchy), 0, A_DEFFLOAT, 0); class_addbang(rand_cauchy_class, rand_cauchy_bang); -#ifndef MAXLIB + class_sethelpsymbol(rand_cauchy_class, gensym("help-cauchy.pd")); post(version); +#else +void maxlib_cauchy_setup(void) +{ + rand_cauchy_class = class_new(gensym("maxlib_cauchy"), (t_newmethod)rand_cauchy_new, 0, + sizeof(t_rand_cauchy), 0, A_DEFFLOAT, 0); + class_addbang(rand_cauchy_class, rand_cauchy_bang); + class_addcreator((t_newmethod)rand_cauchy_new, gensym("cauchy"), A_DEFFLOAT, 0); + class_sethelpsymbol(rand_cauchy_class, gensym("maxlib/help-cauchy.pd")); #endif } -- cgit v1.2.1