diff options
author | N.N. <krzyszcz@users.sourceforge.net> | 2005-05-10 18:02:20 +0000 |
---|---|---|
committer | N.N. <krzyszcz@users.sourceforge.net> | 2005-05-10 18:02:20 +0000 |
commit | cdd23c6b9523654eb3bf03542021404888fdbcba (patch) | |
tree | 1d3c3747faecfb2453eb05cc06087d9a22a0b063 /shared/unstable/fragile.c | |
parent | ff7abbbf9d312c021f2aee9b4e73c31ab15e8e50 (diff) |
toxy alpha17 and pddp alpha1 (see notes.txt for toxy, pddp and shared)
svn path=/trunk/externals/miXed/; revision=2940
Diffstat (limited to 'shared/unstable/fragile.c')
-rw-r--r-- | shared/unstable/fragile.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/shared/unstable/fragile.c b/shared/unstable/fragile.c index d91ea58..e65e6d4 100644 --- a/shared/unstable/fragile.c +++ b/shared/unstable/fragile.c @@ -15,15 +15,20 @@ int fragile_class_count(void) return (pd_objectmaker->c_nmethod); } -void fragile_class_getnames(t_atom *av) +int fragile_class_getnames(t_atom *av, int maxnames) { int ac = pd_objectmaker->c_nmethod; t_methodentry *mp = pd_objectmaker->c_methods; + if (ac > maxnames) + ac = maxnames; + else + maxnames = ac; while (ac--) { SETSYMBOL(av, mp->me_name); mp++; av++; } + return (maxnames); } /* Raising and voluntary mutation is a method of resolving name clashes. |