diff options
author | Martin Peach <mrpeach@users.sourceforge.net> | 2009-04-24 02:17:11 +0000 |
---|---|---|
committer | Martin Peach <mrpeach@users.sourceforge.net> | 2009-04-24 02:17:11 +0000 |
commit | d93391da83966cb839cdd457038e982a1667b159 (patch) | |
tree | c2126b65b3c5ef0550ccee9915e98f14fd3785eb /which | |
parent | c513c4b707adff355f1c9129e6386bd89d556167 (diff) |
removed unnecessary call to filelength.
added name of function in post()s to console.
svn path=/trunk/externals/mrpeach/; revision=11107
Diffstat (limited to 'which')
-rw-r--r-- | which/which.c | 7 |
1 files 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); } |