From 50a389bea35a91ddae1394c5d35a6f1c703f5bdd Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 9 Mar 2004 03:51:28 +0000 Subject: Checked in Olaf's 1.5.2 sources. Here are the changes: v 1.5.2 (17. december 2003): - modified netclient for not to drop received data: use of syspollfn instead of clock to poll for incoming data, circular recv buffer v 1.5 (18. october 2003): - added some usefull features to arraycopy (i.e. copying just parts of an array and copying to specified position in destination array) - new object: nchange - IRIX 6.5 port (for GCC 3.3) - OS X binary (Jaguar 10.2.6) v 1.4 (22. may 2003): - updated sources to compile with Pd0.37-test4 - new object: arraycopy v 1.3 (12. april 2003): - new objects: sync listfifo - all setup routines renamed to maxlib__setup() to avoid name clashes, old names still work via class_addcreator() - some improvements for the help files svn path=/trunk/externals/maxlib/; revision=1394 --- src/deny.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/deny.c') diff --git a/src/deny.c b/src/deny.c index 9d0ef35..d447adc 100644 --- a/src/deny.c +++ b/src/deny.c @@ -27,12 +27,12 @@ static char *version = "deny v0.1, written by Olaf Matthes "; -typedef struct deny -{ +typedef struct deny +{ t_object x_obj; t_outlet *x_out; t_atom *x_elem; // list of elemets that are denyed to pass - t_int x_numelem; // the number of elemetns in our deny-list + t_int x_numelem; // the number of elemetns in our deny-list } t_deny; /* we got a symbol... */ @@ -75,7 +75,7 @@ static void deny_free(t_deny *x) } static void *deny_new(t_symbol *s, int argc, t_atom *argv) -{ +{ t_deny *x = (t_deny *)pd_new(deny_class); x->x_numelem = argc; // get the number of elements @@ -86,10 +86,10 @@ static void *deny_new(t_symbol *s, int argc, t_atom *argv) // post("deny: got %d elements", x->x_numelem); - return (x); + return (x); } -#ifndef MAXLIB +#ifndef MAXLIB void deny_setup(void) { /* the object's class: */ @@ -111,4 +111,4 @@ void maxlib_deny_setup(void) #else class_sethelpsymbol(deny_class, gensym("maxlib/help-deny.pd")); #endif -} \ No newline at end of file +} -- cgit v1.2.1