Commit e16f2713 authored by thomas's avatar thomas
Browse files

no message


git-svn-id: https://svn.grrrr.org/ext/trunk@260 4d9ac71a-51e6-0310-8455-cad1006bcd31
parent 296a2b56
......@@ -52,8 +52,8 @@ OBJPATH=sd
# all the source files from the package
SRCS=flbase.cpp flext.cpp flbuf.cpp fldsp.cpp fllib.cpp flxlet.cpp flsetup.cpp flutil.cpp flatom.cpp flthr.cpp
HDRS=flstdc.h flbase.h flclass.h fldefs.h flext.h flthr.h fldsp.h
IHDRS=flinternal.h
HDRS=flstdc.h flbase.h flclass.h fldefs.h flext.h flthr.h fldsp.h flinternal.h
IHDRS=
#default target
......
......@@ -32,8 +32,8 @@ CFLAGS=-6 -O2 -OS -ff -tWD
# all the source files from the package
SRCS=flbase.cpp flext.cpp flbuf.cpp fldsp.cpp fllib.cpp flxlet.cpp flsetup.cpp flutil.cpp flatom.cpp
HDRS=flstdc.h flbase.h flclass.h fldefs.h flext.h
IHDRS=flinternal.h
HDRS=flstdc.h flbase.h flclass.h fldefs.h flext.h flinternal.h
IHDRS=
#default target
......
......@@ -32,8 +32,8 @@ NAME=flext
# all the source files from the package
SRCS=flbase.cpp flext.cpp flbuf.cpp fldsp.cpp fllib.cpp flxlet.cpp flsetup.cpp flutil.cpp flatom.cpp flthr.cpp
HDRS=flstdc.h flbase.h flclass.h fldefs.h flext.h fldsp.h flthr.h
IHDRS=flinternal.h
HDRS=flstdc.h flbase.h flclass.h fldefs.h flext.h fldsp.h flthr.h flinternal.h
IHDRS=
MAKEFILE=makefile.pd-cygwin
TARGET=$(TARGDIR)/$(NAME)-pdwin.lib
......
......@@ -28,8 +28,8 @@ NAME=flext
# all the source files from the package
SRCS=flbase.cpp flext.cpp flbuf.cpp fldsp.cpp fllib.cpp flxlet.cpp flsetup.cpp \
flutil.cpp flatom.cpp flthr.cpp
HDRS=flstdc.h flbase.h flclass.h fldefs.h flext.h flthr.h fldsp.h
IHDRS=flinternal.h
HDRS=flstdc.h flbase.h flclass.h fldefs.h flext.h flthr.h fldsp.h flinternal.h
IHDRS=
MAKEFILE=makefile.pd-linux
TARGET=$(TARGDIR)/$(NAME).a
......
......@@ -85,6 +85,7 @@ Version history:
- bugfix for threaded methods with var list or anything arguments
- added threaded method for arbitrary (void *) data structs
- ThrMutex: added lock count functions Push() and Pop()
- eliminated dangerous SetThing,GetThing and introduced DoBind,DoUnbind,GetBound instead
0.3.1:
- added some more functionality to the AtomList class
......
......@@ -192,11 +192,14 @@ flext_base::~flext_base()
if(inlets) {
for(int ix = 0; ix < incnt; ++ix)
if(inlets[ix]) {
object_free(inlets[ix]->obj);
/*
#ifdef PD
pd_free(&inlets[ix]->obj.ob_pd);
#elif defined(MAXMSP)
freeobject((object *)inlets[ix]);
#endif
*/
}
delete[] inlets;
}
......@@ -246,11 +249,14 @@ bool flext_base::SetupInOut()
if(inlets) {
for(int ix = 0; ix < incnt; ++ix)
if(inlets[ix]) {
object_free(inlets[ix]->obj);
/*
#ifdef PD
pd_free(&inlets[ix]->obj.ob_pd);
#elif defined(MAXMSP)
freeobject(inlets[ix]);
#endif
*/
}
delete[] inlets;
inlets = NULL;
......
......@@ -24,6 +24,11 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#ifdef PD
#define object_new(clss) pd_new(clss)
#define object_free(obj) pd_free(&(obj).ob_pd)
#define add_dsp(clss,meth) class_addmethod(clss, (t_method)meth,gensym("dsp"),A_NULL)
#define add_bang(clss,meth) class_addbang(clss, (t_method)meth)
#define add_float(clss,meth) class_addfloat(clss, (t_method)meth)
......@@ -67,6 +72,9 @@ typedef _inlet t_inlet;
typedef void t_outlet;
//typedef _outlet t_outlet;
#define object_new(clss) pd_new(clss)
#define object_free(obj) freeobject((object *)obj)
#define add_dsp(clss,meth) addmess((method)meth,"dsp",A_CANT,A_NOTHING)
#define add_bang(clss,meth) addbang((method)meth)
#define add_float(clss,meth) addfloat((method)meth)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment