aboutsummaryrefslogtreecommitdiff
path: root/src/allow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/allow.c')
-rw-r--r--src/allow.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/allow.c b/src/allow.c
index c5d57ac..f835dc5 100644
--- a/src/allow.c
+++ b/src/allow.c
@@ -27,12 +27,12 @@
static char *version = "allow v0.1, written by Olaf Matthes <olaf.matthes@gmx.de>";
-typedef struct allow
-{
+typedef struct allow
+{
t_object x_obj;
t_outlet *x_out;
t_atom *x_elem; // list of elemets that are allowed to pass
- t_int x_numelem; // the number of elemetns in our allow-list
+ t_int x_numelem; // the number of elemetns in our allow-list
} t_allow;
/* we got a symbol... */
@@ -73,7 +73,7 @@ static void allow_free(t_allow *x)
}
static void *allow_new(t_symbol *s, int argc, t_atom *argv)
-{
+{
t_allow *x = (t_allow *)pd_new(allow_class);
x->x_numelem = argc; // get the number of elements
@@ -84,10 +84,10 @@ static void *allow_new(t_symbol *s, int argc, t_atom *argv)
// post("allow: got %d elements", x->x_numelem);
- return (x);
+ return (x);
}
-#ifndef MAXLIB
+#ifndef MAXLIB
void allow_setup(void)
{
/* the object's class: */
@@ -109,4 +109,4 @@ void maxlib_allow_setup(void)
#else
class_sethelpsymbol(allow_class, gensym("maxlib/help-allow.pd"));
#endif
-} \ No newline at end of file
+}