Update of /cvsroot/pure-data/externals/grill/flext/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32104/source
Modified Files: flinternal.h flqueue.cpp flsupport.cpp flsupport.h Log Message: Max: use high-priority click instead of qelem for message-posting
Index: flqueue.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/source/flqueue.cpp,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** flqueue.cpp 26 Jan 2005 05:02:00 -0000 1.25 --- flqueue.cpp 28 Jan 2005 04:57:18 -0000 1.26 *************** *** 208,212 **** static flext::ThrCond qthrcond; #elif FLEXT_QMODE == 0 ! static t_qelem *qclk = NULL; #endif
--- 208,213 ---- static flext::ThrCond qthrcond; #elif FLEXT_QMODE == 0 ! //static t_qelem *qclk = NULL; ! static t_clock *qclk = NULL; #endif
*************** *** 309,313 **** #elif FLEXT_SYS == FLEXT_SYS_MAX #if FLEXT_QMODE == 0 ! qelem_set(qclk); #endif #elif FLEXT_SYS == FLEXT_SYS_JMAX --- 310,315 ---- #elif FLEXT_SYS == FLEXT_SYS_MAX #if FLEXT_QMODE == 0 ! // qelem_front(qclk); ! clock_delay(qclk,0); #endif #elif FLEXT_SYS == FLEXT_SYS_JMAX *************** *** 345,349 **** LaunchThread(QWorker,NULL); #elif FLEXT_QMODE == 0 && (FLEXT_SYS == FLEXT_SYS_PD || FLEXT_SYS == FLEXT_SYS_MAX) ! qclk = (t_qelem *)(qelem_new(NULL,(t_method)QTick)); #else #error Not implemented! --- 347,352 ---- LaunchThread(QWorker,NULL); #elif FLEXT_QMODE == 0 && (FLEXT_SYS == FLEXT_SYS_PD || FLEXT_SYS == FLEXT_SYS_MAX) ! // qclk = (t_qelem *)(qelem_new(NULL,(t_method)QTick)); ! qclk = (t_clock *)(clock_new(NULL,(t_method)QTick)); #else #error Not implemented!
Index: flsupport.cpp =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/source/flsupport.cpp,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** flsupport.cpp 26 Jan 2005 05:02:03 -0000 1.42 --- flsupport.cpp 28 Jan 2005 04:57:18 -0000 1.43 *************** *** 31,34 **** --- 31,35 ---- const t_symbol *flext::sym_pointer = NULL; const t_symbol *flext::sym_int = NULL; + const t_symbol *flext::sym_signal = NULL;
#if FLEXT_SYS != FLEXT_SYS_JMAX *************** *** 36,42 **** #endif
- #if FLEXT_SYS == FLEXT_SYS_PD - const t_symbol *flext::sym_signal = NULL; - #endif
int flext::Version() { return FLEXT_VERSION; } --- 37,40 ---- *************** *** 52,63 ****
#if FLEXT_SYS == FLEXT_SYS_PD ! sym__ = gensym(""); ! sym_anything = gensym("anything"); ! sym_pointer = gensym("pointer"); ! sym_float = gensym("float"); ! sym_symbol = gensym("symbol"); ! sym_bang = gensym("bang"); ! sym_list = gensym("list"); ! sym_signal = gensym("signal"); sym_int = gensym("int"); #elif FLEXT_SYS == FLEXT_SYS_MAX --- 50,61 ----
#if FLEXT_SYS == FLEXT_SYS_PD ! sym__ = &s_; ! sym_anything = &s_anything; ! sym_pointer = &s_pointer; ! sym_float = &s_float; ! sym_symbol = &s_symbol; ! sym_bang = &s_bang; ! sym_list = &s_list; ! sym_signal = &s_signal; sym_int = gensym("int"); #elif FLEXT_SYS == FLEXT_SYS_MAX *************** *** 69,72 **** --- 67,71 ---- sym_list = gensym("list"); sym_anything = gensym("anything"); + sym_signal = gensym("signal"); #elif FLEXT_SYS == FLEXT_SYS_JMAX sym__ = fts_new_symbol("");; // is there a static symbol for that?
Index: flsupport.h =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/source/flsupport.h,v retrieving revision 1.76 retrieving revision 1.77 diff -C2 -d -r1.76 -r1.77 *** flsupport.h 26 Jan 2005 05:02:04 -0000 1.76 --- flsupport.h 28 Jan 2005 04:57:18 -0000 1.77 *************** *** 347,356 **** static const t_symbol *sym_pointer;
! #if FLEXT_SYS == FLEXT_SYS_PD ! /*! \brief Symbol constant for "signal" ! \note PD only ! */ static const t_symbol *sym_signal; - #endif
//! \note This is used in macros where the type of the arg is not clear --- 347,352 ---- static const t_symbol *sym_pointer;
! //! Symbol constant for "signal" static const t_symbol *sym_signal;
//! \note This is used in macros where the type of the arg is not clear
Index: flinternal.h =================================================================== RCS file: /cvsroot/pure-data/externals/grill/flext/source/flinternal.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** flinternal.h 26 Jan 2005 05:01:48 -0000 1.11 --- flinternal.h 28 Jan 2005 04:57:03 -0000 1.12 *************** *** 47,56 ****
! #define newout_signal(clss) outlet_new(clss,gensym("signal")) ! #define newout_float(clss) outlet_new(clss,gensym("float")) ! #define newout_flint(clss) outlet_new(clss,gensym("float")) ! #define newout_list(clss) outlet_new(clss,gensym("list")) ! #define newout_symbol(clss) outlet_new(clss,gensym("symbol")) ! #define newout_anything(clss) outlet_new(clss,gensym("anything"))
#define outlet_flint(o,v) outlet_float(o,(float)(v)) --- 47,56 ----
! #define newout_signal(clss) outlet_new(clss,const_cast<t_symbol *>(flext::sym_signal)) ! #define newout_float(clss) outlet_new(clss,const_cast<t_symbol *>(flext::sym_float)) ! #define newout_flint(clss) outlet_new(clss,const_cast<t_symbol *>(flext::sym_float)) ! #define newout_list(clss) outlet_new(clss,const_cast<t_symbol *>(flext::sym_list)) ! #define newout_symbol(clss) outlet_new(clss,const_cast<t_symbol *>(flext::sym_symbol)) ! #define newout_anything(clss) outlet_new(clss,const_cast<t_symbol *>(flext::sym_anything))
#define outlet_flint(o,v) outlet_float(o,(float)(v)) *************** *** 61,64 **** --- 61,65 ---- #define qelem_free clock_free #define qelem_set clock_set + #define qelem_front clock_set #define qelem_unset clock_unset