From 576b21b58cced4bb319131114fca3590d58a3f6b Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Wed, 24 May 2006 12:20:57 +0000 Subject: enabled FLEXT_(C)ADDMETHOD as an alias of FLEXT_(C)ADDBANG bugfixes and optimizations, especially for DSP under Max/MSP added thisParent type attribute generation is now determined exclusively by the object class setup (not library as before). avoid trying to send empty message bundles - preprocessor symbol FLEXT_COMPATIBLE - if defined don't implement specialities of either PD or Max/MSP small changes for attribute functions - Max: fixed reported bug (#67), where list elements are distributed over inlets svn path=/trunk/; revision=5113 --- externals/grill/flext/source/fllib.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'externals/grill/flext/source/fllib.cpp') diff --git a/externals/grill/flext/source/fllib.cpp b/externals/grill/flext/source/fllib.cpp index 4670858b..13690a24 100755 --- a/externals/grill/flext/source/fllib.cpp +++ b/externals/grill/flext/source/fllib.cpp @@ -163,6 +163,7 @@ static flext_class *FindName(const t_symbol *s,flext_class *o = NULL) t_class *flext_obj::getClass(t_classid cl) { return cl->clss; } +bool flext_obj::HasAttributes(t_classid cl) { return cl->attr; } bool flext_obj::IsDSP(t_classid cl) { return cl->dsp; } bool flext_obj::IsLib(t_classid cl) { return cl->lib != NULL; } @@ -176,15 +177,13 @@ bool flext_obj::NeedDSP() const { return clss->dsp || (clss->lib && clss->lib->d static flext_library *curlib = NULL; -void flext_obj::lib_init(const char *name,void setupfun(),bool attr) +void flext_obj::lib_init(const char *name,void setupfun()) { // make new library instance curlib = new flext_library(MakeSymbol(name)); flext::Setup(); - process_attributes = attr; - // first register all classes try { setupfun(); @@ -236,7 +235,7 @@ void flext_obj::obj_add(bool lib,bool dsp,bool attr,const char *idname,const cha } else { FLEXT_ASSERT(!curlib); - process_attributes = attr; +// process_attributes = attr; } // set dynamic class pointer @@ -269,7 +268,7 @@ void flext_obj::obj_add(bool lib,bool dsp,bool attr,const char *idname,const cha flext_class *lo = new flext_class(*cl,newfun,freefun); lo->lib = curlib; lo->dsp = dsp; - lo->attr = process_attributes; + lo->attr = attr; // post("ADDCLASS %s,%s = %p -> LIBOBJ %p -> %p (lib=%i,dsp=%i)",idname,names,*cl,lo,lo->clss,lib?1:0,dsp?1:0); -- cgit v1.2.1