From 26ee20ec18d74ad4975fecfe17cc61590ec6a681 Mon Sep 17 00:00:00 2001 From: Thomas O Fredericks Date: Fri, 16 Oct 2009 13:24:15 +0000 Subject: Restricted path to symbols svn path=/trunk/externals/tof/; revision=12595 --- src/path.c | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) (limited to 'src') 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"), -- cgit v1.2.1