Update of /cvsroot/pure-data/externals/grill/flext/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11646/source
Modified Files: flattr.cpp flclass.h Log Message: ""
Index: flattr.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/source/flattr.cpp,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** flattr.cpp 3 Apr 2004 02:21:04 -0000 1.22 --- flattr.cpp 20 Apr 2004 02:33:04 -0000 1.23 *************** *** 26,33 **** #endif
! flext_base::AttrItem::AttrItem(metharg tp,methfun f,int fl): Item(NULL),index(0), flags(fl|afl_shown), ! argtp(tp),fun(f), counter(NULL) {} --- 26,33 ---- #endif
! flext_base::AttrItem::AttrItem(const t_symbol *t,metharg tp,methfun f,int fl): Item(NULL),index(0), flags(fl|afl_shown), ! argtp(tp),fun(f),tag(t), counter(NULL) {} *************** *** 51,55 **** if(sfun) // if commented out, there will be a warning at run-time (more user-friendly) { ! a = new AttrItem(tp,sfun,AttrItem::afl_set); a->index = aa->Members(); aa->Add(a,asym); --- 51,55 ---- if(sfun) // if commented out, there will be a warning at run-time (more user-friendly) { ! a = new AttrItem(asym,tp,sfun,AttrItem::afl_set); a->index = aa->Members(); aa->Add(a,asym); *************** *** 65,69 **** if(gfun) // if commented out, there will be a warning at run-time (more user-friendly) { ! b = new AttrItem(tp,gfun,AttrItem::afl_get); b->index = aa->Members(); aa->Add(b,asym); --- 65,69 ---- if(gfun) // if commented out, there will be a warning at run-time (more user-friendly) { ! b = new AttrItem(asym,tp,gfun,AttrItem::afl_get); b->index = aa->Members(); aa->Add(b,asym); *************** *** 338,346 **** }
bool flext_base::DumpAttrib(const t_symbol *tag,AttrItem *a) const { AtomList la; bool ret = GetAttrib(tag,a,la); ! if(ret) ToOutAnything(GetOutAttr(),tag,la.Count(),la.Atoms()); return ret; } --- 338,349 ---- }
+ //! \param tag symbol "get[attribute]" bool flext_base::DumpAttrib(const t_symbol *tag,AttrItem *a) const { AtomList la; bool ret = GetAttrib(tag,a,la); ! if(ret) { ! ToOutAnything(GetOutAttr(),a->tag,la.Count(),la.Atoms()); ! } return ret; }
Index: flclass.h =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/source/flclass.h,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** flclass.h 6 Mar 2004 03:25:48 -0000 1.42 --- flclass.h 20 Apr 2004 02:33:04 -0000 1.43 *************** *** 678,682 **** { public: ! AttrItem(metharg tp,methfun fun,int flags);
enum { --- 678,682 ---- { public: ! AttrItem(const t_symbol *tag,metharg tp,methfun fun,int flags);
enum { *************** *** 697,700 **** --- 697,701 ---- methfun fun; AttrItem *counter; + const t_symbol *tag; };