Update of /cvsroot/pure-data/abstractions/pureunity In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8569
Modified Files: Makefile Added Files: pureunity.c Log Message: aliasing classes in order to exploit polymorphism
Index: Makefile =================================================================== RCS file: /cvsroot/pure-data/abstractions/pureunity/Makefile,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Makefile 31 Dec 2005 18:44:54 -0000 1.2 --- Makefile 2 Jan 2006 01:28:18 -0000 1.3 *************** *** 1,6 **** PD = /home/matju/pd_0_38_4/bin/pd -noaudio #PD = pd ! PDFLAGS = -noaudio -path generics -path specifics
! test:: $(PD) $(PDFLAGS) main.pd --- 1,16 ---- PD = /home/matju/pd_0_38_4/bin/pd -noaudio #PD = pd ! PDFLAGS = -lib pureunity -noaudio -path generics -path specifics
! test:: built $(PD) $(PDFLAGS) main.pd + + built: Makefile pureunity.pd_linux + # for z in associator commutator distributor invertor; do sed s/inlet/inlet~/ < generics/$$z.pd > generics/$$z~.pd; done + echo > built + + generic/%~.pd: generic/%.pd + + pureunity.pd_linux: pureunity.c Makefile + $(CC) -shared -o pureunity.pd_linux pureunity.c +
--- NEW FILE: pureunity.c --- /*#include <m_pd.h>*/ #include "../../pd/src/m_pd.h" void pureunity_setup() { t_pd *m = &pd_objectmaker; class_addcreator((t_newmethod)getfn(m,gensym( "inlet" )),gensym("f.inlet" ),A_GIMME,0); class_addcreator((t_newmethod)getfn(m,gensym( "inlet~")),gensym("~.inlet" ),A_GIMME,0); class_addcreator((t_newmethod)getfn(m,gensym("outlet" )),gensym("f.outlet"),A_GIMME,0); class_addcreator((t_newmethod)getfn(m,gensym("outlet~")),gensym("~.outlet"),A_GIMME,0); }