aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/source')
-rw-r--r--externals/grill/flext/source/flbase.cpp2
-rw-r--r--externals/grill/flext/source/flclass.h6
-rw-r--r--externals/grill/flext/source/fldsp.cpp6
-rw-r--r--externals/grill/flext/source/flext.cpp11
-rwxr-xr-xexternals/grill/flext/source/fllib.cpp4
-rw-r--r--externals/grill/flext/source/flthr.cpp2
-rwxr-xr-xexternals/grill/flext/source/flxlet.cpp2
7 files changed, 17 insertions, 16 deletions
diff --git a/externals/grill/flext/source/flbase.cpp b/externals/grill/flext/source/flbase.cpp
index b321fbf1..f1791884 100644
--- a/externals/grill/flext/source/flbase.cpp
+++ b/externals/grill/flext/source/flbase.cpp
@@ -37,9 +37,9 @@ bool flext_obj::process_attributes = false;
/////////////////////////////////////////////////////////
flext_obj :: flext_obj()
: x_obj(m_holder)
- , m_name(m_holdname)
, procattr(m_holdattr)
, init_ok(true)
+ , m_name(m_holdname)
{
#if FLEXT_SYS == FLEXT_SYS_PD
m_canvas = canvas_getcurrent();
diff --git a/externals/grill/flext/source/flclass.h b/externals/grill/flext/source/flclass.h
index 66da8e7a..dd51d85a 100644
--- a/externals/grill/flext/source/flclass.h
+++ b/externals/grill/flext/source/flclass.h
@@ -443,11 +443,11 @@ protected:
//! \brief Check if this class represents the current thread
bool Is(pthread_t id = pthread_self()) const { return pthread_equal(thrid,id) != 0; }
- bool active,shouldexit;
- pthread_t thrid;
+ flext_base *th;
void *(*meth)(thr_params *);
thr_params *params;
- flext_base *th;
+ pthread_t thrid;
+ bool active,shouldexit;
thr_entry *nxt;
};
diff --git a/externals/grill/flext/source/fldsp.cpp b/externals/grill/flext/source/fldsp.cpp
index f5a5d94e..0a0a3276 100644
--- a/externals/grill/flext/source/fldsp.cpp
+++ b/externals/grill/flext/source/fldsp.cpp
@@ -34,9 +34,6 @@ void flext_dsp::Setup(t_class *c)
}
flext_dsp::flext_dsp():
-#if FLEXT_SYS != FLEXT_SYS_MAX
- dspon(true),
-#endif
srate(sys_getsr()), // should we set it?
blksz(sys_getblksize()),
#if FLEXT_SYS == FLEXT_SYS_PD
@@ -48,6 +45,9 @@ flext_dsp::flext_dsp():
#else
#error
#endif
+#if FLEXT_SYS != FLEXT_SYS_MAX
+ dspon(true),
+#endif
invecs(NULL),outvecs(NULL)
{}
diff --git a/externals/grill/flext/source/flext.cpp b/externals/grill/flext/source/flext.cpp
index 764bfa98..e052e56a 100644
--- a/externals/grill/flext/source/flext.cpp
+++ b/externals/grill/flext/source/flext.cpp
@@ -120,12 +120,13 @@ bool flext_base::compatibility = true;
flext_base::flext_base():
inlist(NULL),outlist(NULL),
+ curtag(NULL),
incnt(0),outcnt(0),
insigs(0),outsigs(0),
- curtag(NULL),
- outlets(NULL),inlets(NULL),outattr(NULL),
+ outlets(NULL),outattr(NULL),
+ distmsgs(false),
methhead(NULL),attrhead(NULL),attrcnt(0),
- distmsgs(false)
+ inlets(NULL)
{
LOG1("%s - flext logging is on",thisName());
@@ -661,9 +662,9 @@ bool flext_base::m_method_(int inlet,const t_symbol *s,int argc,const t_atom *ar
flext_base::methitem::methitem(int in,const t_symbol *t):
- inlet(in),tag(t),
- fun(NULL),
+ tag(t),inlet(in),
argc(0),args(NULL),
+ fun(NULL),
nxt(NULL)
{}
diff --git a/externals/grill/flext/source/fllib.cpp b/externals/grill/flext/source/fllib.cpp
index 2f4e8e59..77f85dbc 100755
--- a/externals/grill/flext/source/fllib.cpp
+++ b/externals/grill/flext/source/fllib.cpp
@@ -113,7 +113,9 @@ public:
};
libobject::libobject(t_class *&cl,flext_obj *(*newf)(int,t_atom *),void (*freef)(flext_hdr *)):
- clss(cl),newfun(newf),freefun(freef),argc(0),argv(NULL)
+ newfun(newf),freefun(freef),
+ clss(cl),
+ argc(0),argv(NULL)
{}
// this class stands for one registered object name
diff --git a/externals/grill/flext/source/flthr.cpp b/externals/grill/flext/source/flthr.cpp
index 36184025..96e52b0d 100644
--- a/externals/grill/flext/source/flthr.cpp
+++ b/externals/grill/flext/source/flthr.cpp
@@ -174,8 +174,6 @@ void flext_base::PopThread()
// post("Pop thread");
- pthread_t id = pthread_self();
-
thr_entry *prv = NULL,*ti;
for(ti = thrhead; ti; prv = ti,ti = ti->nxt)
if(ti->Is()) break;
diff --git a/externals/grill/flext/source/flxlet.cpp b/externals/grill/flext/source/flxlet.cpp
index c360daf3..2804bae3 100755
--- a/externals/grill/flext/source/flxlet.cpp
+++ b/externals/grill/flext/source/flxlet.cpp
@@ -57,7 +57,7 @@ unsigned long flext_base::XletCode(xlet::type tp,...)
va_list marker;
va_start(marker,tp);
int cnt = 0;
- xlet::type *args = NULL,arg = tp;
+ xlet::type arg = tp;
for(; arg; ++cnt) {
#ifdef FLEXT_DEBUG
if(cnt > 9) {