aboutsummaryrefslogtreecommitdiff
path: root/src/weibull.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-08-29 13:53:51 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-08-29 13:53:51 +0000
commitde86cb7754d773a2dba3ae92eb0dfc4cb9d77cbd (patch)
treeb84e943785318f49e99423980235c207d2f2435c /src/weibull.c
parentfbc6df8b8cfcf9603df93b02e0625067feebb6f1 (diff)
imported latest version 1.4 direct from Olaf
svn path=/trunk/externals/maxlib/; revision=898
Diffstat (limited to 'src/weibull.c')
-rw-r--r--src/weibull.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/weibull.c b/src/weibull.c
index 8df527e..1dbf4aa 100644
--- a/src/weibull.c
+++ b/src/weibull.c
@@ -73,12 +73,23 @@ static void rand_weibull_bang(t_rand_weibull *x)
outlet_float(x->x_obj.ob_outlet, x->x_s*pow(log(a), tinv));
}
+#ifndef MAXLIB
void weibull_setup(void)
{
rand_weibull_class = class_new(gensym("weibull"), (t_newmethod)rand_weibull_new, 0,
sizeof(t_rand_weibull), 0, A_DEFFLOAT, A_DEFFLOAT, 0);
- class_addbang(rand_weibull_class, rand_weibull_bang);
+#else
+void maxlib_weibull_setup(void)
+{
+ rand_weibull_class = class_new(gensym("maxlib_weibull"), (t_newmethod)rand_weibull_new, 0,
+ sizeof(t_rand_weibull), 0, A_DEFFLOAT, A_DEFFLOAT, 0);
+ class_addcreator((t_newmethod)rand_weibull_new, gensym("weibull"), A_DEFFLOAT, A_DEFFLOAT, 0);
+#endif
+ class_addbang(rand_weibull_class, rand_weibull_bang);
#ifndef MAXLIB
+ class_sethelpsymbol(rand_weibull_class, gensym("help-weibull.pd"));
post(version);
+#else
+ class_sethelpsymbol(rand_weibull_class, gensym("maxlib/help-weibull.pd"));
#endif
}