From d93391da83966cb839cdd457038e982a1667b159 Mon Sep 17 00:00:00 2001 From: Martin Peach Date: Fri, 24 Apr 2009 02:17:11 +0000 Subject: removed unnecessary call to filelength. added name of function in post()s to console. svn path=/trunk/externals/mrpeach/; revision=11107 --- which/which.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/which/which.c b/which/which.c index b136e27..bcee712 100644 --- a/which/which.c +++ b/which/which.c @@ -108,7 +108,7 @@ static void which_bang(t_which *x) sys_lock(); x->x_canvas = canvas_getcurrent(); -post("canvas is %p", x->x_canvas); + post("which_bang: canvas is %p", x->x_canvas); //post("name is %s", x->x_object_name->s_name); //post("ext is %s", sys_dllextent); //post("ext2 is %s", sys_dllextent2); @@ -128,8 +128,7 @@ post("canvas is %p", x->x_canvas); outlet_symbol(x->x_obj.te_outlet, gensym("not found")); return; } - result = _filelength(fd); - result = close(fd);/* this is crashing pd in WinXP: why? */ + result = close(fd); //post("dirbuf: %s", dirbuf); //post("nameptr: %s", nameptr); /* rebuild the absolute pathname */ @@ -151,7 +150,7 @@ static void *which_new(t_symbol *s, int argc, t_atom *argv) if ((argc >= 1)&&(argv[0].a_type == A_SYMBOL)) x->x_object_name = argv[0].a_w.w_symbol; outlet_new(&x->x_obj, &s_anything); x->x_canvas = canvas_getcurrent();/* canvas_getcurrent only seems to work in the _new function: why? */ - post("canvas is %p", x->x_canvas); + post("which_new: canvas is %p", x->x_canvas); return (x); } -- cgit v1.2.1