[PD-cvs] externals/grill/flext/source flattr_ed.cpp,1.15,1.16 flbase.h,1.21,1.22 fldefs.h,1.16,1.17 fldefs_attradd.h,1.1,1.2 fldefs_attrcb.h,1.2,1.3 fldefs_attrvar.h,1.3,1.4 fldefs_methadd.h,1.1,1.2 fldefs_methcall.h,1.1,1.2 fldefs_methcb.h,1.1,1.2 fldefs_setup.h,1.2,1.3 fldoxygen.h,1.7,1.8 flqueue.cpp,1.13,1.14 flsupport.h,1.58,1.59

xovo at users.sourceforge.net xovo at users.sourceforge.net
Fri Dec 12 04:32:58 CET 2003


Update of /cvsroot/pure-data/externals/grill/flext/source
In directory sc8-pr-cvs1:/tmp/cvs-serv3409/source

Modified Files:
	flattr_ed.cpp flbase.h fldefs.h fldefs_attradd.h 
	fldefs_attrcb.h fldefs_attrvar.h fldefs_methadd.h 
	fldefs_methcall.h fldefs_methcb.h fldefs_setup.h fldoxygen.h 
	flqueue.cpp flsupport.h 
Log Message:
 ""

Index: flattr_ed.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/flattr_ed.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** flattr_ed.cpp	12 Nov 2003 03:35:18 -0000	1.15
--- flattr_ed.cpp	12 Dec 2003 03:32:56 -0000	1.16
***************
*** 65,71 ****
  #endif
  
-     widgetbehavior.w_visfn =        cb_GfxVis;
-     class_setwidget(c, &widgetbehavior);
- 
  #if PD_MINOR_VERSION >= 37
      class_setpropertiesfn(c,cb_GfxProperties);
--- 65,68 ----
***************
*** 76,79 ****
--- 73,79 ----
  #endif
  
+     widgetbehavior.w_visfn =        cb_GfxVis;
+     class_setwidget(c, &widgetbehavior);
+ 
  	// generate the script for the property dialog
  
***************
*** 412,438 ****
  void flext_base::cb_GfxVis(t_gobj *c, t_glist *gl, int vis)
  {
! 	t_text *x = (t_text *)c;
  
! 	FLEXT_ASSERT(x->te_binbuf);
  
! 	int argc = binbuf_getnatom(x->te_binbuf);
! 	t_atom *argv = binbuf_getvec(x->te_binbuf);
! 	int cnt = CheckAttrib(argc,argv);
  
! 	if(cnt)	{
! 		t_binbuf *nb = binbuf_new();
! 		binbuf_restore(nb,cnt,argv);
! 		binbuf_free(x->te_binbuf);
! 		x->te_binbuf = nb;
! 	}
  
! 	t_rtext *rt = glist_findrtext(gl,x);
! 	rtext_retext(rt);
  
! #ifdef FLEXT_CLONEWIDGET
! 	text_widgetbehavior.w_visfn(c,gl,vis);
! #else
! 	ori_vis(c,gl,vis);
! #endif
  }
  
--- 412,442 ----
  void flext_base::cb_GfxVis(t_gobj *c, t_glist *gl, int vis)
  {
!     // show object if it's not a GOP
!     if(!gl->gl_isgraph || gl->gl_havewindow) {
  
! 	    t_text *x = (t_text *)c;
! 	    FLEXT_ASSERT(x->te_binbuf);
  
! 	    int argc = binbuf_getnatom(x->te_binbuf);
! 	    t_atom *argv = binbuf_getvec(x->te_binbuf);
! 	    int cnt = CheckAttrib(argc,argv);
  
! 	    if(cnt)	{
! 		    t_binbuf *nb = binbuf_new();
! 		    binbuf_restore(nb,cnt,argv);
! 		    binbuf_free(x->te_binbuf);
! 		    x->te_binbuf = nb;
! 	    }
  
! 	    t_rtext *rt = glist_findrtext(gl,x);
! 	    rtext_retext(rt);
  
!         // now display the changed text with the normal drawing function
!     #ifdef FLEXT_CLONEWIDGET
! 	    text_widgetbehavior.w_visfn(c,gl,vis);
!     #else
! 	    ori_vis(c,gl,vis);
!     #endif
!    }
  }
  

Index: flbase.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/flbase.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** flbase.h	15 Aug 2003 02:32:46 -0000	1.21
--- flbase.h	12 Dec 2003 03:32:56 -0000	1.22
***************
*** 140,146 ****
  
          //! Get the PD or Max/MSP object
! 		t_sigobj *thisHdr() { return &x_obj->obj; }
!         //! Get the PD or Max/MSP object
! 		const t_sigobj *thisHdr() const { return &x_obj->obj; }
          //! Get the class name (as a string)
  		const char *thisName() const { return GetString(m_name); } 
--- 140,145 ----
  
          //! Get the PD or Max/MSP object
! 		t_sigobj *thisHdr() { FLEXT_ASSERT(x_obj); return &x_obj->obj; }
! 		const t_sigobj *thisHdr() const { FLEXT_ASSERT(x_obj); return &x_obj->obj; }
          //! Get the class name (as a string)
  		const char *thisName() const { return GetString(m_name); } 
***************
*** 151,157 ****
          //! Get the class pointer
  #if FLEXT_SYS == FLEXT_SYS_PD
! 		t_class *thisClass() const { return (t_class *)((t_object *)(x_obj))->te_g.g_pd; }
  #elif FLEXT_SYS == FLEXT_SYS_MAX
! 		t_class *thisClass() const { return (t_class *)(((t_tinyobject *)x_obj)->t_messlist-1); } 
  #elif FLEXT_SYS == FLEXT_SYS_JMAX
  		t_class *thisClass() const { return fts_object_get_class((fts_object_t *)thisHdr()); }
--- 150,156 ----
          //! Get the class pointer
  #if FLEXT_SYS == FLEXT_SYS_PD
! 		t_class *thisClass() const { FLEXT_ASSERT(x_obj); return (t_class *)((t_object *)(x_obj))->te_g.g_pd; }
  #elif FLEXT_SYS == FLEXT_SYS_MAX
! 		t_class *thisClass() const { FLEXT_ASSERT(x_obj); return (t_class *)(((t_tinyobject *)x_obj)->t_messlist-1); } 
  #elif FLEXT_SYS == FLEXT_SYS_JMAX
  		t_class *thisClass() const { return fts_object_get_class((fts_object_t *)thisHdr()); }

Index: fldefs.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/fldefs.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** fldefs.h	20 Apr 2003 02:36:19 -0000	1.16
--- fldefs.h	12 Dec 2003 03:32:56 -0000	1.17
***************
*** 30,33 ****
--- 30,35 ----
  #endif
  
+ //!	@}  FLEXT_DEFS
+ 
  #include "fldefs_hdr.h"
  
***************
*** 65,72 ****
  
  #endif // FLEXT_ATTRIBUTES
- 
- 
- 
- //!	@}  FLEXT_DEFS
  
  #endif // __FLEXT_DEFS_H
--- 67,70 ----

Index: fldefs_attradd.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/fldefs_attradd.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** fldefs_attradd.h	20 Apr 2003 02:36:20 -0000	1.1
--- fldefs_attradd.h	12 Dec 2003 03:32:56 -0000	1.2
***************
*** 19,22 ****
--- 19,23 ----
  
  /*!	\defgroup FLEXT_D_CADDATTR Announce object attributes at class scope
+     \ingroup FLEXT_D_ATTRIB
  	\note These can only be used at class construction time
  	@{ 
***************
*** 68,71 ****
--- 69,73 ----
  
  /*!	\defgroup FLEXT_D_ADDATTR Announce object attributes 
+     \ingroup FLEXT_D_ATTRIB
  	\note These can only be used at object construction time
  	\note (in constructor or in Init() function before call to parent's Init())

Index: fldefs_attrcb.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/fldefs_attrcb.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** fldefs_attrcb.h	3 Aug 2003 02:36:46 -0000	1.2
--- fldefs_attrcb.h	12 Dec 2003 03:32:56 -0000	1.3
***************
*** 36,39 ****
--- 36,40 ----
  
  /*!	\defgroup FLEXT_DA_CALLSET Definition of attribute set handlers
+     \ingroup FLEXT_D_ATTRIB
  	@{ 
  */
***************
*** 76,79 ****
--- 77,81 ----
  
  /*!	\defgroup FLEXT_DA_CALLGET Definition of attribute get handlers
+     \ingroup FLEXT_D_ATTRIB
  	@{ 
  */
***************
*** 117,120 ****
--- 119,123 ----
  
  /*!	\defgroup FLEXT_DA_CALLVAR Definition of attribute transfer handlers (both get and set)
+     \ingroup FLEXT_D_ATTRIB
  	@{ 
  */

Index: fldefs_attrvar.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/fldefs_attrvar.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** fldefs_attrvar.h	3 Aug 2003 02:36:46 -0000	1.3
--- fldefs_attrvar.h	12 Dec 2003 03:32:56 -0000	1.4
***************
*** 18,22 ****
  
  
! /*! \brief Declare an implicite attribute set function
  	\internal
  */
--- 18,22 ----
  
  
! /*! \brief Declare an implicit attribute set function
  	\internal
  */
***************
*** 25,29 ****
  { FLEXT_CAST<thisType *>(c)->VAR = arg; return true; }
  
! /*! \brief Declare an implicite attribute get function
  	\internal
  */
--- 25,29 ----
  { FLEXT_CAST<thisType *>(c)->VAR = arg; return true; }
  
! /*! \brief Declare an implicit attribute get function
  	\internal
  */
***************
*** 34,57 ****
  
  
! /*!	\defgroup FLEXT_DA_ATTRSET Definition of implicite attribute set handlers
  	@{ 
  */
  
! //! Declare an implicite set function for a float attribute
  #define FLEXT_ATTRSET_F(VAR) \
  \
  FLEXT_ATTRSET_(VAR,float)
  
! //! Declare an implicite set function for an integer attribute
  #define FLEXT_ATTRSET_I(VAR) \
  \
  FLEXT_ATTRSET_(VAR,int)
  
! //! Declare an implicite set function for a symbol attribute
  #define FLEXT_ATTRSET_S(VAR) \
  \
  FLEXT_ATTRSET_(VAR,const t_symbol *)
  
! //! Declare an implicite set function for a boolean attribute
  #define FLEXT_ATTRSET_B(VAR) \
  \
--- 34,58 ----
  
  
! /*!	\defgroup FLEXT_DA_ATTRSET Definition of implicit attribute set handlers
!     \ingroup FLEXT_D_ATTRIB
  	@{ 
  */
  
! //! Declare an implicit set function for a float attribute
  #define FLEXT_ATTRSET_F(VAR) \
  \
  FLEXT_ATTRSET_(VAR,float)
  
! //! Declare an implicit set function for an integer attribute
  #define FLEXT_ATTRSET_I(VAR) \
  \
  FLEXT_ATTRSET_(VAR,int)
  
! //! Declare an implicit set function for a symbol attribute
  #define FLEXT_ATTRSET_S(VAR) \
  \
  FLEXT_ATTRSET_(VAR,const t_symbol *)
  
! //! Declare an implicit set function for a boolean attribute
  #define FLEXT_ATTRSET_B(VAR) \
  \
***************
*** 62,71 ****
  */
  
! //! Declare an implicite set function for an enum attribute
  #define FLEXT_ATTRSET_E(VAR,TP) \
  \
  FLEXT_ATTRSET_(VAR,TP)
  
! //! Declare an implicite set function for a variable list attribute
  #define FLEXT_ATTRSET_V(VAR) \
  static bool FLEXT_SET_PRE(VAR)(flext_base *c,AtomList *&arg) \
--- 63,72 ----
  */
  
! //! Declare an implicit set function for an enum attribute
  #define FLEXT_ATTRSET_E(VAR,TP) \
  \
  FLEXT_ATTRSET_(VAR,TP)
  
! //! Declare an implicit set function for a variable list attribute
  #define FLEXT_ATTRSET_V(VAR) \
  static bool FLEXT_SET_PRE(VAR)(flext_base *c,AtomList *&arg) \
***************
*** 74,97 ****
  //! @} FLEXT_DA_ATTRSET
  
! /*!	\defgroup FLEXT_DA_ATTRGET Definition of implicite attribute get handlers
  	@{ 
  */
  
! //! Declare an implicite get function for a float attribute
  #define FLEXT_ATTRGET_F(VAR) \
  \
  FLEXT_ATTRGET_(VAR,float)
  
! //! Declare an implicite get function for an integer attribute
  #define FLEXT_ATTRGET_I(VAR) \
  \
  FLEXT_ATTRGET_(VAR,int)
  
! //! Declare an implicite get function for a symbol attribute
  #define FLEXT_ATTRGET_S(VAR) \
  \
  FLEXT_ATTRGET_(VAR,const t_symbol *)
  
! //! Declare an implicite get function for a boolean attribute
  #define FLEXT_ATTRGET_B(VAR) \
  \
--- 75,99 ----
  //! @} FLEXT_DA_ATTRSET
  
! /*!	\defgroup FLEXT_DA_ATTRGET Definition of implicit attribute get handlers
!     \ingroup FLEXT_D_ATTRIB
  	@{ 
  */
  
! //! Declare an implicit get function for a float attribute
  #define FLEXT_ATTRGET_F(VAR) \
  \
  FLEXT_ATTRGET_(VAR,float)
  
! //! Declare an implicit get function for an integer attribute
  #define FLEXT_ATTRGET_I(VAR) \
  \
  FLEXT_ATTRGET_(VAR,int)
  
! //! Declare an implicit get function for a symbol attribute
  #define FLEXT_ATTRGET_S(VAR) \
  \
  FLEXT_ATTRGET_(VAR,const t_symbol *)
  
! //! Declare an implicit get function for a boolean attribute
  #define FLEXT_ATTRGET_B(VAR) \
  \
***************
*** 102,111 ****
  */
  
! //! Declare an implicite get function for an enum attribute
  #define FLEXT_ATTRGET_E(VAR,TP) \
  \
  FLEXT_ATTRGET_(VAR,TP)
  
! //! Declare an implicite get function for a variable list attribute
  #define FLEXT_ATTRGET_V(VAR) \
  static bool FLEXT_GET_PRE(VAR)(flext_base *c,AtomList *&arg) \
--- 104,113 ----
  */
  
! //! Declare an implicit get function for an enum attribute
  #define FLEXT_ATTRGET_E(VAR,TP) \
  \
  FLEXT_ATTRGET_(VAR,TP)
  
! //! Declare an implicit get function for a variable list attribute
  #define FLEXT_ATTRGET_V(VAR) \
  static bool FLEXT_GET_PRE(VAR)(flext_base *c,AtomList *&arg) \
***************
*** 115,148 ****
  
  
! /*!	\defgroup FLEXT_DA_ATTRVAR Definition of implicite attribute transfer handlers (both get and set)
  	@{ 
  */
  
! //! Declare both implicite get and set functions for a float attribute
  #define FLEXT_ATTRVAR_F(VAR) \
  \
  FLEXT_ATTRGET_F(VAR) FLEXT_ATTRSET_F(VAR) 
  
! //! Declare both implicite get and set functions for an integer attribute
  #define FLEXT_ATTRVAR_I(VAR) \
  \
  FLEXT_ATTRGET_I(VAR) FLEXT_ATTRSET_I(VAR) 
  
! //! Declare both implicite get and set functions for a symbol attribute
  #define FLEXT_ATTRVAR_S(VAR) \
  \
  FLEXT_ATTRGET_S(VAR) FLEXT_ATTRSET_S(VAR) 
  
! //! Declare both implicite get and set functions for a boolean attribute
  #define FLEXT_ATTRVAR_B(VAR) \
  \
  FLEXT_ATTRGET_B(VAR) FLEXT_ATTRSET_B(VAR) 
  
! //! Declare both implicite get and set functions for an enum attribute
  #define FLEXT_ATTRVAR_E(VAR,TP) \
  \
  FLEXT_ATTRGET_(VAR,TP) FLEXT_ATTRSET_(VAR,TP) 
  
! //! Declare both implicite get and set functions for a variable list attribute
  #define FLEXT_ATTRVAR_V(VAR) \
  \
--- 117,151 ----
  
  
! /*!	\defgroup FLEXT_DA_ATTRVAR Definition of implicit attribute transfer handlers (both get and set)
!     \ingroup FLEXT_D_ATTRIB
  	@{ 
  */
  
! //! Declare both implicit get and set functions for a float attribute
  #define FLEXT_ATTRVAR_F(VAR) \
  \
  FLEXT_ATTRGET_F(VAR) FLEXT_ATTRSET_F(VAR) 
  
! //! Declare both implicit get and set functions for an integer attribute
  #define FLEXT_ATTRVAR_I(VAR) \
  \
  FLEXT_ATTRGET_I(VAR) FLEXT_ATTRSET_I(VAR) 
  
! //! Declare both implicit get and set functions for a symbol attribute
  #define FLEXT_ATTRVAR_S(VAR) \
  \
  FLEXT_ATTRGET_S(VAR) FLEXT_ATTRSET_S(VAR) 
  
! //! Declare both implicit get and set functions for a boolean attribute
  #define FLEXT_ATTRVAR_B(VAR) \
  \
  FLEXT_ATTRGET_B(VAR) FLEXT_ATTRSET_B(VAR) 
  
! //! Declare both implicit get and set functions for an enum attribute
  #define FLEXT_ATTRVAR_E(VAR,TP) \
  \
  FLEXT_ATTRGET_(VAR,TP) FLEXT_ATTRSET_(VAR,TP) 
  
! //! Declare both implicit get and set functions for a variable list attribute
  #define FLEXT_ATTRVAR_V(VAR) \
  \

Index: fldefs_methadd.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/fldefs_methadd.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** fldefs_methadd.h	20 Apr 2003 02:36:20 -0000	1.1
--- fldefs_methadd.h	12 Dec 2003 03:32:56 -0000	1.2
***************
*** 19,22 ****
--- 19,23 ----
  
  /*!	\defgroup FLEXT_D_CADDMETHOD Add flext methods within class scope
+     \ingroup FLEXT_D_METHOD
  	\note These can only be used at class construction time
  	@{ 
***************
*** 109,112 ****
--- 110,114 ----
  
  /*!	\defgroup FLEXT_D_ADDMETHOD Add flext methods
+     \ingroup FLEXT_D_METHOD
  	\note These can only be used at object construction time 
  	\note (in constructor or in Init() function before call to parent's Init())

Index: fldefs_methcall.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/fldefs_methcall.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** fldefs_methcall.h	20 Apr 2003 02:36:20 -0000	1.1
--- fldefs_methcall.h	12 Dec 2003 03:32:56 -0000	1.2
***************
*** 19,22 ****
--- 19,23 ----
  
  /*!	\defgroup FLEXT_D_CALLMETHOD Call flext methods manually
+     \ingroup FLEXT_D_METHOD
  	@{ 
  */

Index: fldefs_methcb.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/fldefs_methcb.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** fldefs_methcb.h	20 Apr 2003 02:36:20 -0000	1.1
--- fldefs_methcb.h	12 Dec 2003 03:32:56 -0000	1.2
***************
*** 19,22 ****
--- 19,23 ----
  
  /*!	\defgroup FLEXT_D_CALLBACK Declare callbacks for class methods
+     \ingroup FLEXT_D_METHOD
  	@{ 
  */

Index: fldefs_setup.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/fldefs_setup.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** fldefs_setup.h	6 Jun 2003 02:32:51 -0000	1.2
--- fldefs_setup.h	12 Dec 2003 03:32:56 -0000	1.3
***************
*** 9,13 ****
  */
  
! /*! \file fldef_setup.h
      \brief This file contains all #defines for actual usage
      
--- 9,13 ----
  */
  
! /*! \file fldefs_setup.h
      \brief This file contains all #defines for actual usage
      
***************
*** 28,31 ****
--- 28,33 ----
      - There may be a help path prepended, separated by a colon
      - This help path doesn't work for Max/MSP. There you'll have to use a object mapping file (Max/MSP version >= 4.2)
+ 
+     @{
  */
  

Index: fldoxygen.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/fldoxygen.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** fldoxygen.h	10 Jun 2003 02:33:37 -0000	1.7
--- fldoxygen.h	12 Dec 2003 03:32:56 -0000	1.8
***************
*** 151,155 ****
  For each method that shall be exposed to the realtime-system (for receiving messages) and 
  every attribute (for setting and getting values) callbacks have to be set up.
! The functions in the groups "\ref FLEXT_D_CALLBACK" and "\ref FLEXT_D_ATTRIB" allow for their 
  convenient definition.
  
--- 151,155 ----
  For each method that shall be exposed to the realtime-system (for receiving messages) and 
  every attribute (for setting and getting values) callbacks have to be set up.
! The functions in the groups \ref FLEXT_D_CALLBACK and \ref FLEXT_D_ATTRIB allow for their 
  convenient definition.
  

Index: flqueue.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/flqueue.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** flqueue.cpp	12 Nov 2003 03:35:19 -0000	1.13
--- flqueue.cpp	12 Dec 2003 03:32:56 -0000	1.14
***************
*** 67,72 ****
  }
  
! static int qcnt = 0;
! static qmsg *qhead = NULL,*qtail = NULL;
  
  #ifdef FLEXT_QTHR
--- 67,72 ----
  }
  
! static volatile int qcnt = 0;
! static qmsg *volatile qhead = NULL,*volatile qtail = NULL;
  
  #ifdef FLEXT_QTHR
***************
*** 276,280 ****
  void flext_base::ToQueueBang(int o) const 
  {
! 	qmsg *m = new qmsg(const_cast<flext_base *>(this)); 
  	m->SetBang(o);
  	Queue(m);
--- 276,281 ----
  void flext_base::ToQueueBang(int o) const 
  {
! 	FLEXT_ASSERT(o >= 0);
!     	qmsg *m = new qmsg(const_cast<flext_base *>(this)); 
  	m->SetBang(o);
  	Queue(m);
***************
*** 283,286 ****
--- 284,288 ----
  void flext_base::ToQueueFloat(int o,float f) const
  {
+ 	FLEXT_ASSERT(o >= 0);
  	qmsg *m = new qmsg(const_cast<flext_base *>(this)); 
  	m->SetFloat(o,f);
***************
*** 290,293 ****
--- 292,296 ----
  void flext_base::ToQueueInt(int o,int f) const
  {
+ 	FLEXT_ASSERT(o >= 0);
  	qmsg *m = new qmsg(const_cast<flext_base *>(this)); 
  	m->SetInt(o,f);
***************
*** 297,300 ****
--- 300,304 ----
  void flext_base::ToQueueSymbol(int o,const t_symbol *s) const
  {
+ 	FLEXT_ASSERT(o >= 0);
  	qmsg *m = new qmsg(const_cast<flext_base *>(this)); 
  	m->SetSymbol(o,s);
***************
*** 304,307 ****
--- 308,312 ----
  void flext_base::ToQueueList(int o,int argc,const t_atom *argv) const
  {
+ 	FLEXT_ASSERT(o >= 0);
  	qmsg *m = new qmsg(const_cast<flext_base *>(this)); 
  	m->SetList(o,argc,argv);
***************
*** 311,314 ****
--- 316,320 ----
  void flext_base::ToQueueAnything(int o,const t_symbol *s,int argc,const t_atom *argv) const
  {
+ 	FLEXT_ASSERT(o >= 0);
  	qmsg *m = new qmsg(const_cast<flext_base *>(this)); 
  	m->SetAny(o,s,argc,argv);
***************
*** 319,322 ****
--- 325,329 ----
  void flext_base::ToSelfBang(int n) const 
  {
+     FLEXT_ASSERT(n >= 0);
      ToQueueBang(-1-n);
  }
***************
*** 324,327 ****
--- 331,335 ----
  void flext_base::ToSelfFloat(int n,float f) const
  {
+     FLEXT_ASSERT(n >= 0);
      ToQueueFloat(-1-n,f);
  }
***************
*** 329,332 ****
--- 337,341 ----
  void flext_base::ToSelfInt(int n,int f) const
  {
+     FLEXT_ASSERT(n >= 0);
      ToQueueInt(-1-n,f);
  }
***************
*** 334,337 ****
--- 343,347 ----
  void flext_base::ToSelfSymbol(int n,const t_symbol *s) const
  {
+     FLEXT_ASSERT(n >= 0);
      ToQueueSymbol(-1-n,s);
  }
***************
*** 339,342 ****
--- 349,353 ----
  void flext_base::ToSelfList(int n,int argc,const t_atom *argv) const
  {
+     FLEXT_ASSERT(n >= 0);
      ToQueueList(-1-n,argc,argv);
  }
***************
*** 344,347 ****
--- 355,359 ----
  void flext_base::ToSelfAnything(int n,const t_symbol *s,int argc,const t_atom *argv) const
  {
+     FLEXT_ASSERT(n >= 0);
      ToQueueAnything(-1-n,s,argc,argv);
  }

Index: flsupport.h
===================================================================
RCS file: /cvsroot/pure-data/externals/grill/flext/source/flsupport.h,v
retrieving revision 1.58
retrieving revision 1.59
diff -C2 -d -r1.58 -r1.59
*** flsupport.h	10 Dec 2003 03:32:53 -0000	1.58
--- flsupport.h	12 Dec 2003 03:32:56 -0000	1.59
***************
*** 19,22 ****
--- 19,26 ----
  #include <new>
  
+ /*!	\defgroup FLEXT_SUPPORT Flext support classes
+ 	@{
+ */
+ 
  class FLEXT_SHARE FLEXT_CLASSDEF(flext_root);
  typedef class FLEXT_CLASSDEF(flext_root) flext_root;
***************
*** 66,69 ****
--- 70,74 ----
  };
  
+ 
  #if !defined(_MSC_VER) && !defined(__BORLANDC__)
  #define NEWTHROW throw(std::bad_alloc)
***************
*** 1107,1111 ****
  inline bool operator >=(const t_atom &a,const t_atom &b) { return FLEXT_CLASSDEF(flext)::CmpAtom(a,b) >= 0; }
  
! 
  
  #endif
--- 1112,1116 ----
  inline bool operator >=(const t_atom &a,const t_atom &b) { return FLEXT_CLASSDEF(flext)::CmpAtom(a,b) >= 0; }
  
! //! @} // FLEXT_SUPPORT
  
  #endif






More information about the Pd-cvs mailing list