diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-02-09 23:53:34 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-02-09 23:53:34 +0000 |
commit | 98e3e1214cf71a62b2de938c9c7e07f6bdd0090c (patch) | |
tree | 022458056f8d2acd45d8470519dc779e744d577e | |
parent | c1ca9e1cdab9279cdda720aac3a31870e02a7302 (diff) |
make vv+ and vv- be vvplus and vvminus naturally
svn path=/trunk/externals/smlib/; revision=13157
-rw-r--r-- | help/vvminus-help.pd (renamed from help/vv--help.pd) | 0 | ||||
-rw-r--r-- | help/vvplus-help.pd (renamed from help/vv+-help.pd) | 0 | ||||
-rw-r--r-- | source/vvminus.c | 3 | ||||
-rw-r--r-- | source/vvplus.c | 3 |
4 files changed, 4 insertions, 2 deletions
diff --git a/help/vv--help.pd b/help/vvminus-help.pd index 48c626b..48c626b 100644 --- a/help/vv--help.pd +++ b/help/vvminus-help.pd diff --git a/help/vv+-help.pd b/help/vvplus-help.pd index 04c3065..04c3065 100644 --- a/help/vv+-help.pd +++ b/help/vvplus-help.pd diff --git a/source/vvminus.c b/source/vvminus.c index b6a8e1a..b8b7246 100644 --- a/source/vvminus.c +++ b/source/vvminus.c @@ -131,8 +131,9 @@ static void *vvminus_new(t_symbol *s, int argc, t_atom *argv) void vvminus_setup(void)
{
- vvminus_class = class_new(gensym("vv-"), (t_newmethod)vvminus_new,
+ vvminus_class = class_new(gensym("vvminus"), (t_newmethod)vvminus_new,
(t_method)vvminus_free, sizeof(t_vvminus), 0, A_GIMME, 0);
+ class_addcreator((t_newmethod)vvplus_new, gensym("vv-"), A_GIMME, 0);
class_addlist(vvminus_class, vvminus_lst);
class_addmethod (vvminus_class, (t_method)vvminus_lst2, gensym(""), A_GIMME, 0);
vvminus_scal_class = class_new(gensym("vv-"), 0, (t_method)vvminus_free,
diff --git a/source/vvplus.c b/source/vvplus.c index e2b323c..a49ce39 100644 --- a/source/vvplus.c +++ b/source/vvplus.c @@ -131,8 +131,9 @@ static void *vvplus_new(t_symbol *s, int argc, t_atom *argv) void vvplus_setup(void)
{
- vvplus_class = class_new(gensym("vv+"), (t_newmethod)vvplus_new,
+ vvplus_class = class_new(gensym("vvplus"), (t_newmethod)vvplus_new,
(t_method)vvplus_free, sizeof(t_vvplus), 0, A_GIMME, 0);
+ class_addcreator((t_newmethod)vvplus_new, gensym("vv+"), A_GIMME, 0);
class_addlist(vvplus_class, vvplus_lst);
class_addmethod (vvplus_class, (t_method)vvplus_lst2, gensym(""), A_GIMME, 0);
vvplus_scal_class = class_new(gensym("vv+"), 0, (t_method)vvplus_free,
|