aboutsummaryrefslogtreecommitdiff
path: root/gem_change.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-12-08 05:24:58 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-12-08 05:24:58 +0000
commited5f9b5db036f8bf420b38d674c9b3b1822b3b7b (patch)
treeb287269dec9a86175f1059cfb562754855e7f6af /gem_change.c
parent9b2014ed31750d9573d70d998cb3a3c3c4803b42 (diff)
converted things to fit in with the namespace
svn path=/trunk/externals/markex/; revision=4167
Diffstat (limited to 'gem_change.c')
-rw-r--r--gem_change.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/gem_change.c b/gem_change.c
deleted file mode 100644
index dc714ec..0000000
--- a/gem_change.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright (c) 1997-1999 Mark Danks.
- * For information on usage and redistribution, and for a DISCLAIMER OF ALL
- * WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution.
- */
-
-#include "m_pd.h"
-
-/* -------------------------- gem_change ------------------------------ */
-
-/* instance structure */
-
-static t_class *gem_change_class;
-
-typedef struct _gem_change
-{
- t_object x_obj; /* obligatory object header */
- float x_cur;
- t_outlet *t_out1; /* the outlet */
-} t_gem_change;
-
-static void gem_change_float(t_gem_change *x, t_floatarg n)
-{
- if (n != x->x_cur)
- {
- outlet_float(x->t_out1, n);
- x->x_cur = n;
- }
-}
-
-static void *gem_change_new(void) /* init vals in struc */
-{
- t_gem_change *x = (t_gem_change *)pd_new(gem_change_class);
- x->x_cur = -1.f;
- x->t_out1 = outlet_new(&x->x_obj, 0);
- return(x);
-}
-
-void gem_change_setup(void)
-{
- gem_change_class = class_new(gensym("gem_change"), (t_newmethod)gem_change_new, 0,
- sizeof(t_gem_change), 0, A_NULL);
- class_addfloat(gem_change_class, gem_change_float);
-
- #if PD_MINOR_VERSION < 37
- class_sethelpsymbol(gem_change_class, gensym("gem_change-help.pd"));
-#endif
-}