aboutsummaryrefslogtreecommitdiff
path: root/src/bilex.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/bilex.c
parentfbc6df8b8cfcf9603df93b02e0625067feebb6f1 (diff)
imported latest version 1.4 direct from Olaf
svn path=/trunk/externals/maxlib/; revision=898
Diffstat (limited to 'src/bilex.c')
-rw-r--r--src/bilex.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/bilex.c b/src/bilex.c
index ca2afd3..ed7484f 100644
--- a/src/bilex.c
+++ b/src/bilex.c
@@ -70,12 +70,22 @@ static void rand_bilex_bang(t_rand_bilex *x)
outlet_float(x->x_obj.ob_outlet, s*log(u)/l);
}
+#ifndef MAXLIB
void bilex_setup(void)
{
rand_bilex_class = class_new(gensym("bilex"), (t_newmethod)rand_bilex_new, 0,
sizeof(t_rand_bilex), 0, A_DEFFLOAT, 0);
class_addbang(rand_bilex_class, rand_bilex_bang);
-#ifndef MAXLIB
+ class_sethelpsymbol(rand_bilex_class, gensym("help-bilex.pd"));
post(version);
-#endif
}
+#else
+void maxlib_bilex_setup(void)
+{
+ rand_bilex_class = class_new(gensym("maxlib_bilex"), (t_newmethod)rand_bilex_new, 0,
+ sizeof(t_rand_bilex), 0, A_DEFFLOAT, 0);
+ class_addbang(rand_bilex_class, rand_bilex_bang);
+ class_addcreator((t_newmethod)rand_bilex_new, gensym("bilex"), A_DEFFLOAT, 0);
+ class_sethelpsymbol(rand_bilex_class, gensym("maxlib/help-bilex.pd"));
+}
+#endif