aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classpath-help.pd9
-rw-r--r--classpath.c8
2 files changed, 7 insertions, 10 deletions
diff --git a/classpath-help.pd b/classpath-help.pd
index 94ca8a2..a0031e7 100644
--- a/classpath-help.pd
+++ b/classpath-help.pd
@@ -1,21 +1,18 @@
-#N canvas 375 22 466 316 10;
+#N canvas 77 22 466 316 10;
#X obj 40 130 classpath;
#X msg 37 99 bang;
#X obj 54 176 print;
#X symbolatom 29 213 0 0 0 0 - - -;
#X obj 101 151 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
-#X msg 79 102 reset;
#X text 19 22 This object returns each path in the global classpath
one at a time with each bang. [reset( refreshs the classpath data and
starts again at the top of the list \, like [textfile] or [qlist]'s
[reset(.;
#X text 124 153 <-- banged when the end of the list is reached;
-#X text 234 294 released under the GNU GPL;
-#X text 18 281 (C) Copyright 2006 Hans-Christoph Steiner <hans@at.or.at>
-;
+#X msg 79 102 rewind;
#X connect 0 0 2 0;
#X connect 0 0 3 0;
#X connect 0 1 4 0;
#X connect 1 0 0 0;
-#X connect 5 0 0 0;
+#X connect 7 0 0 0;
diff --git a/classpath.c b/classpath.c
index 10d33bb..fe5ab98 100644
--- a/classpath.c
+++ b/classpath.c
@@ -79,7 +79,7 @@ static void classpath_output(t_classpath* x)
}
-static void classpath_reset(t_classpath* x)
+static void classpath_rewind(t_classpath* x)
{
DEBUG(post("classpath_output"););
char buffer[MAXPDSTRING];
@@ -116,7 +116,7 @@ static void *classpath_new()
x->x_data_outlet = outlet_new(&x->x_obj, &s_symbol);
x->x_status_outlet = outlet_new(&x->x_obj, 0);
- classpath_reset(x);
+ classpath_rewind(x);
return (x);
}
@@ -140,8 +140,8 @@ void classpath_setup(void)
class_addbang(classpath_class,(t_method) classpath_output);
/* add inlet message methods */
- class_addmethod(classpath_class,(t_method) classpath_reset,
- gensym("reset"), 0);
+ class_addmethod(classpath_class,(t_method) classpath_rewind,
+ gensym("rewind"), 0);
class_addmethod(classpath_class,(t_method) classpath_add,gensym("add"),
A_DEFSYMBOL, 0);
}