From e876da1b38221d8020d81b72926d2dee5c2bdc55 Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Fri, 15 Feb 2008 12:43:13 +0000 Subject: - Fixed bugs in xtract_flatness(), or at least added necessary documentation and error checking to avoid problems - Added xtract_is_denormal() helper function and XTRACT_DENORMAL_FOUND return code - Replaced all instances of log, sqrt, exp etc. with respective floating point counterparts (logf etc.) - Added check for architecture endianness to configure script - Bug fix to PD example, now no longer crashes if no arguments are given - Minor documentation updates --- examples/puredata/xtract~.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples/puredata/xtract~.c') diff --git a/examples/puredata/xtract~.c b/examples/puredata/xtract~.c index 7a33993..69595fe 100644 --- a/examples/puredata/xtract~.c +++ b/examples/puredata/xtract~.c @@ -168,6 +168,10 @@ static void *xtract_new(t_symbol *me, t_int argc, t_atom *argv) { else x->feature_name = atom_getsymbol(argv); } + else { + post("xtract~: No arguments given"); + return (void *)x; + } if(argc > 1){ if(x->is_subframe) x->feature_name = atom_getsymbol(argv+1); @@ -233,8 +237,6 @@ static void *xtract_new(t_symbol *me, t_int argc, t_atom *argv) { if(strcmp(author, "") && year) post("xtract~: %s(%d)", author, year); } - else - post("xtract~: No arguments given"); /* Adjust frame size if we are using subframe features */ if(x->is_subframe) -- cgit v1.2.3