aboutsummaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorThomas O Fredericks <mrtof@users.sourceforge.net>2009-10-16 13:24:15 +0000
committerThomas O Fredericks <mrtof@users.sourceforge.net>2009-10-16 13:24:15 +0000
commit26ee20ec18d74ad4975fecfe17cc61590ec6a681 (patch)
tree452e4f737f112ece674e5087d5c931525a141712 /src/path.c
parent6aaef3e55451b6eba7fe49c08c5eda0cf3205b12 (diff)
Restricted path to symbols
svn path=/trunk/externals/tof/; revision=12595
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/src/path.c b/src/path.c
index f18698a..d44ab95 100644
--- a/src/path.c
+++ b/src/path.c
@@ -140,11 +140,11 @@ static void path_bang(t_path *x)
}
-static void path_anything(t_path *x, t_symbol *s, int ac, t_atom* av) {
+static void path_symbol(t_path *x, t_symbol *s) {
-
- int length = tof_anything_to_string(s,ac,av,tof_buf_temp_a);
+ strcpy(tof_buf_temp_a,s->s_name);
+ int length = strlen(tof_buf_temp_a);
t_symbol* result;
if ( x->mode == x->s_relative ) {
@@ -193,22 +193,6 @@ static void path_anything(t_path *x, t_symbol *s, int ac, t_atom* av) {
-/*
-void path_list(t_path *x,t_symbol *s, int argc, t_atom *argv)
-{
-
-
- if ( argc >= 2) {
- x->value = atom_getfloat(argv);
- x->inc = atom_getfloat(argv+1);
- }
-
-
-}
-*/
-
-
-
static void path_free(t_path *x)
@@ -269,7 +253,7 @@ void path_setup(void) {
A_GIMME, 0);
class_addbang(path_class, path_bang);
- class_addanything(path_class,path_anything);
+ class_addsymbol(path_class,path_symbol);
//class_addmethod(path_class,
// (t_method)path_append, gensym("append"),