aboutsummaryrefslogtreecommitdiff
path: root/src/deny.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/deny.c')
-rw-r--r--src/deny.c14
1 files changed, 7 insertions, 7 deletions
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 <olaf.matthes@gmx.de>";
-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
+}