aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/prepend
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2002-12-28 04:37:42 +0000
committerThomas Grill <xovo@users.sourceforge.net>2002-12-28 04:37:42 +0000
commit562dcc336797951b2a8707413aa44177484c9f2a (patch)
tree162adc736d99b6edf4c03e50061831006ac0f5c4 /externals/grill/prepend
parent7b0d76e0a6c7b58f6a7a373755c46bde52ebea79 (diff)
""
svn path=/trunk/; revision=309
Diffstat (limited to 'externals/grill/prepend')
-rw-r--r--externals/grill/prepend/main.cpp27
1 files changed, 15 insertions, 12 deletions
diff --git a/externals/grill/prepend/main.cpp b/externals/grill/prepend/main.cpp
index 466ae70f..91a9a5ff 100644
--- a/externals/grill/prepend/main.cpp
+++ b/externals/grill/prepend/main.cpp
@@ -10,16 +10,16 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#include <flext.h>
-#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 202)
-#error You need at least flext version 0.2.2
+#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 401)
+#error You need at least flext version 0.4.1
#endif
-#define PREPEND_VERSION "0.0.2"
+#define PREPEND_VERSION "0.0.3"
class prepend:
public flext_base
{
- FLEXT_HEADER(prepend, flext_base)
+ FLEXT_HEADER_S(prepend, flext_base, Setup)
public:
prepend(int argc,t_atom *argv);
@@ -34,6 +34,8 @@ protected:
private:
+ static void Setup(t_class *c);
+
class reg_t
{
public:
@@ -49,12 +51,12 @@ private:
} reg[2];
FLEXT_CALLBACK(m_bang)
- FLEXT_CALLBACK_G(m_set)
+ FLEXT_CALLBACK_V(m_set)
FLEXT_CALLBACK_A(m_any0)
FLEXT_CALLBACK_A(m_any1)
};
-FLEXT_NEW_G("prepend",prepend)
+FLEXT_NEW_V("prepend",prepend)
@@ -62,16 +64,17 @@ prepend::prepend(int argc,t_atom *argv)
{
AddInAnything(2);
AddOutAnything();
- SetupInOut(); // set up inlets and outlets
-
- FLEXT_ADDMETHOD_(0,"bang",m_bang);
-// FLEXT_ADDMETHOD_(0,"set",m_set);
- FLEXT_ADDMETHOD(0,m_any0);
- FLEXT_ADDMETHOD(1,m_any1);
m_set(argc,argv);
}
+void prepend::Setup(t_class *c)
+{
+ FLEXT_CADDMETHOD_(c,0,"bang",m_bang);
+// FLEXT_CADDMETHOD_(c,0,"set",m_set);
+ FLEXT_CADDMETHOD(c,0,m_any0);
+ FLEXT_CADDMETHOD(c,1,m_any1);
+}
void prepend::reg_t::Store(const t_symbol *s,int argc,t_atom *argv)
{